jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Guyver <michael.guy...@camelotinteractive.com>
Subject RE: Antwort: RE: Error404 in WebSphere 5.0 Server requesting Serv letRedirector
Date Wed, 30 Apr 2003 10:15:07 GMT
What response do you get if you manually ping the server using a browser
with the parameters added to the URL?

Mike

-----Original Message-----
From: Anton_Grimm@mn.man.de [mailto:Anton_Grimm@mn.man.de]
Sent: 30 April 2003 11:06
To: Cactus Users List
Subject: Antwort: RE: Error404 in WebSphere 5.0 Server requesting
ServletRedirector



Hi Mike,

thanks a lot for your response.

When I enable Cactus-Logging I can find the following entry for my
testcases ...

###

2003-04-30 11:56:39,914 DEBUG [main] client.AutoReadHttpURLConnection (
1k):138)     - Original connection =
org.apache.cactus.util.HttpURLConnection:
http://localhost:8080/mandeploymantwebapp/
ServletTestRedirector?Cactus_TestMethod=testExecuteDeploymantActionFailure&C
actus_TestClass=iutest.de.man.mn.pcm.deploymant.struts.action.DeploymantActi
onTest&Cactus_AutomaticSession=true&Cactus_Service=CALL_TEST
2003-04-30 11:56:39,917 DEBUG [main] util.HttpURLConnection         (
1k):1215)     - <getHeaderField([content-length])2003-04-30 11:56:39,920
DEBUG [main] util.HttpURLConnection         (          1k):1232)     -
>getHeaderField = [null]
2003-04-30 11:56:39,924 DEBUG [main] client.AutoReadHttpURLConnection (
1k):209)     - Content-Length : [-1]
2003-04-30 11:56:39,927 DEBUG [main] util.HttpURLConnection         (
1k):1215)     - <getHeaderField([content-length])2003-04-30 11:56:39,930
DEBUG [main] util.HttpURLConnection         (          1k):1232)     -
>getHeaderField = [null]
2003-04-30 11:56:39,933 DEBUG [main] client.AutoReadHttpURLConnection (
1k):248)     - Read [326]: [<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
2.0//EN">\r<HTML><HEAD>\r<TITLE>404 Not Found</TITLE>\r</HEAD><BODY>
\r<H1>Not Found</H1>\rThe requested URL
/mandeploymantwebapp/ServletTestRedirector was not found on this server.<P>
\r<HR>\r<ADDRESS>IBM_HTTP_SERVER/1.3.26  Apache/1.3.26 Server at mm009436
Port 8080</ADDRESS>\r</BODY></HTML>\r]

###

Because of this I don't think it is the problem you mentioned. Anyway I
tried it out but the result
is the same as before. Maybe I am doing anything else wrong.

Please take a look at my JUnit-Task:

###

    <junit
      printsummary="yes"
      haltonfailure="no" failureproperty="test-failed"
      fork="yes"
    >
        <classpath>
            <!-- The Servlet API jar -->
            <pathelement location="
${global.was.extlib.dir}/JavaJ2ee_r1-3.jar"/>

            <!-- all libraries needed by this project      -->
            <fileset dir="${global.src.dir}/${web-inf.dir}/lib">
              <include name="*.jar"/>
              <include name="*.zip"/>
            </fileset>

            <!-- all classes of this project               -->
            <pathelement location="${global.build.dir}"/>
        </classpath>

        <formatter type="xml" usefile="true"/>

        <!-- test name="your.package.YourTestCaseClass1"/ -->
        <!-- sysproperty key="cactus.contextURL" value
="http://localhost:8080/${webapp.was.app.context}"/ -->
        <sysproperty key="cactus.servletRedirectorName" value
="ServletTestRedirector"/>
        <sysproperty key="cactus.jspRedirectorName" value="JspRedirector"/>
        <sysproperty key="cactus.filterRedirectorName" value
="FilterRedirector"/>
        <jvmarg value="-Dlog4j.configuration=file:
${global.dev.dir}/log4j.properties"/>
        <!-- jvmarg value="-Dcactus.contextURL=http://localhost:8080/
${webapp.was.app.context}"/ -->
        <jvmarg value="
-Dcactus.servletRedirectorName=ServletTestRedirector"/>
        <test
          name="de.man.mn.sys.test.MANJUnitUnitTest"
          haltonerror="no"
          outfile="./doc/UnitTestReport"
        />
        <test
          name="de.man.mn.sys.test.MANJUnitIntegrationTest"
          haltonerror="no"
          outfile="./doc/IntegrationTestReport"
        />

        <!-- Or you can gather all the tests in a TestAll class that start
             them all -->
        <!-- Or you can use the junit task batchtest nested element -->
    </junit>

###

Anyway I had a similar problem you described with the log4j.properties
file.
I solved it using a jvmarg-element. But it did not help for the
cactus.properties too.

Thanks again

Toni

---------------------------------------------------------------
Anton Grimm
MAN Nutzfahrzeuge AG
IDP - Software Produktionsumgebungen
Dachauerstr.667
D - 80995 München

Fon:       +49-89-1580-1054
Fax:       +49-89-1580-911054
mailto:    Anton_Grimm@mn.man.de
Internet: http://www.man-trucks.com
---------------------------------------------------------------




 

                      Michael Guyver

                      <michael.guyver@camelotinter        An:       "'Cactus
Users List'" <cactus-user@jakarta.apache.org>                        
                      active.com>                         Kopie:

                                                          Thema:    RE:
Error404 in WebSphere 5.0 Server requesting ServletRedirector             
                      04/30/2003 11:09 AM

                      Bitte antworten an "Cactus

                      Users List"

 

 






Date: Wed, 30 Apr 2003 10:05:31 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
             charset="iso-8859-1"
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

Hi Toni,

I've had some serious problems using Cactus with WAS 5 running within WSAD.
It seems I cannot make the cactus.properties file available to cactus by
including it within the classpath, setting the cactus.config system
property
to point to it or any of the variations using -D options. I've had the same
error as you:

> org.apache.cactus.util.ChainedRuntimeException: Failed to get the test
results. This is
> probably due to an error that happened on the server side when trying to
execute the
> tests. Here is what was returned by the server
...
> The requested URL /mandeploymantwebapp/ServletRedirector was not found on
this server.

Using Ant to run the cactus tests worked for me, as I could directly set
the
values for the various cactus properties *within* the <JUNIT> task:

<sysproperty key="cactus.contextURL"
value="http://localhost:8080/your_context"/>
<sysproperty key="cactus.servletRedirectorName"
value="ServletTestRedirector"/>
<sysproperty key="cactus.jspRedirectorName"     value="JspRedirector"/>
<sysproperty key="cactus.filterRedirectorName " value="FilterRedirector"/>

If you are going to test your cactus installation using a browser, you'll
need to add some properties to the URL to make it action the tests
properly:

http://localhost:9080/mcguyver-web/ServletTestRedirector?Cactus_AutomaticSes

sion=true&Cactus_TestMethod=testConvert&Cactus_TestClass=uk.co.mcguyver.ejb.

ConverterTest&Cactus_Service=CALL_TEST

http://localhost:9080/mcguyver-web/ServletTestRedirector?Cactus_AutomaticSes

sion=true&Cactus_TestMethod=testConvert&Cactus_TestClass=uk.co.mcguyver.ejb.

ConverterTest&Cactus_Service=GET_RESULTS

Sorry if these aren't too readable, but the keys are:

Cactus_AutomaticSession
Cactus_TestMethod
Cactus_TestClass
Cactus_Service = either CALL_TEST or GET_RESULTS

Obviously substitute your own context!

Hope this helps...

Cheers

Mike

-----Original Message-----
From: Anton_Grimm@mn.man.de [mailto:Anton_Grimm@mn.man.de]
Sent: 30 April 2003 09:35
To: cactus-user@jakarta.apache.org
Subject: Error404 in WebSphere 5.0 Server requesting ServletRedirector


I'm working with Cactus 1.4.1 and StrutsTestCase 1.9
in my J2EE 1.3 Struts-Application.

My CactusStrutsTestCases are running fine in my WebSphere Studio
Application Developer 5.0 environment using Tomcat 4.1.18.

Anyway during deployment I run the same testcases against our new
WebSphere 5.0 Test-Environment on Linux.

The following exception is reported by cactus for all CactusTests:

#####




   org.apache.cactus.util.ChainedRuntimeException: Failed to get the test
results. This is probably due to an
   error that happened on the server side when trying to execute the tests.
Here is what was returned by the
   server : [<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

   <HTML><HEAD>

   <TITLE>404 Not Found</TITLE>

   </HEAD><BODY>

   <H1>Not Found</H1>

   The requested URL /mandeploymantwebapp/ServletRedirector was not found
on
this server.<P>
   <HR>

   <ADDRESS>IBM_HTTP_SERVER/1.3.26 Apache/1.3.26 Server at mm009436 Port
8080</ADDRESS>
   </BODY></HTML>

   ]

   at org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest






#####

Trying to access the ServletRedirector with my Browser (InternetExplorer
6.0.26) using
      http://mm009436:8080/mandeploymantwebapp/ServletRedirector
i get an error 500 with the following log-entry:
      "GET /mandeploymantwebapp/ServletRedirector HTTP/1.1" 500 121

Using a telnet connection to the HTTPServer (IBMHTTPServer 1.3.26) using
      GET /mandeploymantwebapp/ServletRedirector HTTP/1.1
I get the following (Error 400) in the access-log:
      "GET /mandeploymantwebapp/ServletRedirector HTTP/1.1" 400 435
When changing the HTTP Version for the request I get an Error 500
      "GET /mandeploymantwebapp/ServletRedirector HTTP/1.0" 500 109

Why do I always get different ErrorCodes?
Is this a known problem with WebSphere? Does anybody know how to solve
this?

Thanks for your help.
Best regards

Toni Grimm

---------------------------------------------------------------
Anton Grimm
MAN Nutzfahrzeuge AG
IDP - Software Produktionsumgebungen
Dachauerstr.667
D - 80995 München

Fon:       +49-89-1580-1054
Fax:       +49-89-1580-911054
mailto:    Anton_Grimm@mn.man.de
Internet: http://www.man-trucks.com
---------------------------------------------------------------




This message and any attachments are confidential and may be privileged or
otherwise protected from disclosure.
If you are not the intended recipient, please telephone or email the sender
and delete this message and any attachment
from your system. If you are not the intended recipient, you must not copy
this message or attachment or disclose the
contents to any other person.


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


**********************************************************************
The information contained in this e-mail may be confidential. It is
intended only for for the use
of the named recipient. If you are not the named recipient please delete
this e-mail. If you have
received this e-mail and are not the named recipient, any disclosure,
reproduction, distribution
or other dissemination or use of the information contained in this e-mail
is strictly prohibited.
E-mail transmission cannot be guaranteed to be secure or error free as
information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses.
The sender therefore does not accept liability for any errors or omissions
in the contents of this
message which arise as a result of e-mail transmission.  If verification is
required please
request a hard copy version.
Registered Office:
Camelot Group plc
Tolpits Lane
Watford
WD18 9RN
Tel: 01923 425000
Registered in England and Wales
No. 2822203
**********************************************************************


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org






This message and any attachments are confidential and may be privileged or
otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the sender
and delete this message and any attachment 
from your system. If you are not the intended recipient, you must not copy
this message or attachment or disclose the 
contents to any other person.


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Mime
View raw message