RE: StrutsTestCase using weblogic 8.1

2003-08-14 Thread Chalmers, Doug
Hi Sachin.

No, I'm getting the same problem with both versions. It must be an environment problem 
of some kind. When using the mock method I get 404 errors returned, which causes the 
tests to fail. A failed login should not need database access as I have set this up to 
check validation. The classpath issue is preventing me from getting any further with 
the in-container method.

Thanks,

Doug

-Original Message-
From: Sachin [mailto:[EMAIL PROTECTED]
Sent: 06 August 2003 13:14
To: Chalmers, Doug
Cc: Struts Users Mailing List (E-mail)
Subject: RE: StrutsTestCase using weblogic 8.1


Hi Doug,
 Have you able to write TestCases for Struts1.1 in StrutsTestCases
becuase i can able to run with Struts1.0 but not with Struts1.1

Thanks
sachin

-Original Message-
From: Chalmers, Doug [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 8:07 PM
To: [EMAIL PROTECTED]
Subject: StrutsTestCase using weblogic 8.1


Hi folks,

I'm trying to set up Cactus/StrutsTestCase etc to try out testing methods on
an existing (ongoing) application and coming across several problems. I've
got the mock method almost working, but it's failing cos the test I've tried
needs database access. Trying to get it to run the tests when the app is
deployed in weblogic but keep getting NoClassDefFound errors for aspectj
classes. I've tried different version of the jar file but the classes it
complains about are always there. Im pretty sure the classpath is fine, but
it just doesn't like it. I've tried adding the classpath to the application
but that didn't make any difference. Anyone seen this problem before?

Weblogic 8.1
Struts 1.0/1.1
Cactus 1.4
StrutsTestCase  - tried various versions for 1.0 and 1.1 of struts. All 2.3
Servlet.

Cheers,

Doug Chalmers
Software Development
Petrotechnics Ltd.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



StrutsTestCase using weblogic 8.1

2003-08-04 Thread Chalmers, Doug
Hi folks,

I'm trying to set up Cactus/StrutsTestCase etc to try out testing methods on an 
existing (ongoing) application and coming across several problems. I've got the mock 
method almost working, but it's failing cos the test I've tried needs database access. 
Trying to get it to run the tests when the app is deployed in weblogic but keep 
getting NoClassDefFound errors for aspectj classes. I've tried different version of 
the jar file but the classes it complains about are always there. Im pretty sure the 
classpath is fine, but it just doesn't like it. I've tried adding the classpath to the 
application but that didn't make any difference. Anyone seen this problem before?

Weblogic 8.1
Struts 1.0/1.1
Cactus 1.4
StrutsTestCase  - tried various versions for 1.0 and 1.1 of struts. All 2.3 Servlet.

Cheers,

Doug Chalmers
Software Development
Petrotechnics Ltd.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Russian I18n problems

2003-01-23 Thread Chalmers, Doug
Solved this now. The resources file needed to be converted to UTF-8 and THEN converted 
using native2ascii. No UTF settings needed at all.

Cheers,

Doug

-Original Message-
From: Chalmers, Doug 
Sent: 22 ?? 2003 ?. 10:24
To: Struts User
Subject: Russian I18n problems


Hi all,

I have a problem which isn't strictly Struts related but I'm hoping someone has done 
this before. (Thanks to Craig McClanahan and Aaron Rustad for their help so far on 
this.)

I'm trying to get a Russian version of an existing application working. So far, I've 
set up Russian text resources and these work fine by specifying the following line at 
the top of the JSP (at the top of a template JSP in this case):

<%@ page contentType="text/html;charset=UTF-8" language="java"%> and this line in the 
Action class:

response.setContentType("text/html; charset=UTF-8"); 

This is fine, but it won't submit and maintain (show on page again) Russian text when 
entered in e.g. a Struts Text Area

In order to get submitted text working I've also done the following:

Inserted the following in web.xml:


  weblogic.httpd.inputCharset./*
  windows-1251


and having the following line at the top of the JSP page (NB, not at the top of the 
template as above)

<%@ page contentType="text/html;charset=windows-1251" language="java"%> and

response.setContentType("text/html; charset=windows-1251");

The problem is that both will not work together. I've seen solutions that utilise 
HttpServletRequest.setCharacterEncoding(), but I can't use that as we're stuck with 
Weblogic 5.1 which only uses EE1.2.1. I've also seen the use of filters but they 
utilise the Servlet2.3 spec too.

Any help with this is greatly appreciated. Getting both working but not together is a 
bit maddening as you can imagine!

Software used:

Weblogic 5.1
Struts 1.0.2
JDK1.2 / EE1.2.1
IE 5 - submits charset Cp1251

Thanks,

Doug Chalmers
Software Developer
Petrotechnics Ltd.
Tel. +44 (0) 1224 337236
www.petrotechnics.co.uk/index.htm


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Russian I18n problems

2003-01-22 Thread Chalmers, Doug
Hi all,

I have a problem which isn't strictly Struts related but I'm hoping someone has done 
this before. (Thanks to Craig McClanahan and Aaron Rustad for their help so far on 
this.)

I'm trying to get a Russian version of an existing application working. So far, I've 
set up Russian text resources and these work fine by specifying the following line at 
the top of the JSP (at the top of a template JSP in this case):

<%@ page contentType="text/html;charset=UTF-8" language="java"%> and this line in the 
Action class:

response.setContentType("text/html; charset=UTF-8"); 

This is fine, but it won't submit and maintain (show on page again) Russian text when 
entered in e.g. a Struts Text Area

In order to get submitted text working I've also done the following:

Inserted the following in web.xml:


  weblogic.httpd.inputCharset./*
  windows-1251


and having the following line at the top of the JSP page (NB, not at the top of the 
template as above)

<%@ page contentType="text/html;charset=windows-1251" language="java"%> and

response.setContentType("text/html; charset=windows-1251");

The problem is that both will not work together. I've seen solutions that utilise 
HttpServletRequest.setCharacterEncoding(), but I can't use that as we're stuck with 
Weblogic 5.1 which only uses EE1.2.1. I've also seen the use of filters but they 
utilise the Servlet2.3 spec too.

Any help with this is greatly appreciated. Getting both working but not together is a 
bit maddening as you can imagine!

Software used:

Weblogic 5.1
Struts 1.0.2
JDK1.2 / EE1.2.1
IE 5 - submits charset Cp1251

Thanks,

Doug Chalmers
Software Developer
Petrotechnics Ltd.
Tel. +44 (0) 1224 337236
www.petrotechnics.co.uk/index.htm


--
To unsubscribe, e-mail:   
For additional commands, e-mail: