You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Michael Guyver <mi...@camelotinteractive.com> on 2003/04/08 17:26:14 UTC

404 Error when trying to "get results"

Hi there, 

I'm new to Cactus and to this list, so firstly my apologies if this is an
old issue. I've had a look through the more recent threads on the mailing
list, but I haven't come across any that match. 

I'm using Cactus-1.4.1 with the WebSphere 5 (WAS5) test server which can be
managed from within WebSphere Studio Application Developer (WSAD). 

I'm trying to get the sample EJB-test code (in the Jakarta docs) to work as
a proof of concept. I've been able to spoof the automated testing by
building up a test and a result URL as follows:

http://localhost:9080/mcguyver-web/ServletTestRedirector?Cactus_AutomaticSes
sion=true&Cactus_TestMethod=testConvert&Cactus_TestClass=uk.co.mcguyver.ejb.
ConverterTest&Cactus_Service=CALL_TEST

The "get results" URL is the same except the last parameter, which is
"GET_RESULTS". That works - it looks up the EJB fine and it behaves as
expected.

However, when running the test case from an Ant script, the response from
the test framework is as follows: 

<testcase name="testConvert" time="0.203">
  <error message="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 : 
    [Error 404: File not found: ServletTestRedirector ]"
     type="org.apache.cactus.util.ChainedRuntimeException">
    
    [...]

  </error>
</testcase>

Have pored over the source code, it seems that somehow the
Client_Service=GET_RESULTS parameter isn't being received by the WAS5
instance. The appears that the error is generated in: 

org.apache.cactus.client.AbstractHttpClient.callGetResult(AbstractAuthentica
tion)

and caught at:

org.apache.cactus.client.AbstractHttpClient.doTest(WebRequest)

which provides the stack-trace.

So my questions are, essentially:

a) Is this a known issue with either Cactus or WebSphere 5?
b) Is there an error within the sample "Converter" application?
c) If neither of the above, what's going on? Why doesn't the test return the
results?

Thanks very much if you've read this far!

Best wishes,

Michael


**********************************************************************
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
________________________________________________________________________

RE: 404 Error when trying to "get results"

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Michael,

What the error means is that Cactus was *not* able to call the
ServletTestRedirector at all (nothing to do with the get result). It
means you probably have a configuration issue.

In order to better help you, we would need your cactus client side logs
so that we know exactly what URL was called by the Cactus client side
code.

Thanks
-Vincent

> -----Original Message-----
> From: Michael Guyver [mailto:michael.guyver@camelotinteractive.com]
> Sent: 08 April 2003 17:26
> To: 'cactus-user@jakarta.apache.org'
> Subject: 404 Error when trying to "get results"
> 
> Hi there,
> 
> I'm new to Cactus and to this list, so firstly my apologies if this is
an
> old issue. I've had a look through the more recent threads on the
mailing
> list, but I haven't come across any that match.
> 
> I'm using Cactus-1.4.1 with the WebSphere 5 (WAS5) test server which
can
> be
> managed from within WebSphere Studio Application Developer (WSAD).
> 
> I'm trying to get the sample EJB-test code (in the Jakarta docs) to
work
> as
> a proof of concept. I've been able to spoof the automated testing by
> building up a test and a result URL as follows:
> 
> http://localhost:9080/mcguyver-
> web/ServletTestRedirector?Cactus_AutomaticSes
>
sion=true&Cactus_TestMethod=testConvert&Cactus_TestClass=uk.co.mcguyver.
ej
> b.
> ConverterTest&Cactus_Service=CALL_TEST
> 
> The "get results" URL is the same except the last parameter, which is
> "GET_RESULTS". That works - it looks up the EJB fine and it behaves as
> expected.
> 
> However, when running the test case from an Ant script, the response
from
> the test framework is as follows:
> 
> <testcase name="testConvert" time="0.203">
>   <error message="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 :
>     [Error 404: File not found: ServletTestRedirector ]"
>      type="org.apache.cactus.util.ChainedRuntimeException">
> 
>     [...]
> 
>   </error>
> </testcase>
> 
> Have pored over the source code, it seems that somehow the
> Client_Service=GET_RESULTS parameter isn't being received by the WAS5
> instance. The appears that the error is generated in:
> 
>
org.apache.cactus.client.AbstractHttpClient.callGetResult(AbstractAuthen
ti
> ca
> tion)
> 
> and caught at:
> 
> org.apache.cactus.client.AbstractHttpClient.doTest(WebRequest)
> 
> which provides the stack-trace.
> 
> So my questions are, essentially:
> 
> a) Is this a known issue with either Cactus or WebSphere 5?
> b) Is there an error within the sample "Converter" application?
> c) If neither of the above, what's going on? Why doesn't the test
return
> the
> results?
> 
> Thanks very much if you've read this far!
> 
> Best wishes,
> 
> Michael
> 
> 
> **********************************************************************
> 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



RE: 404 Error when trying to "get results"

Posted by Vincent Massol <vm...@octo.com>.
Hi Michael,

What the error means is that Cactus was *not* able to call the
ServletTestRedirector at all (nothing to do with the get result). It
means you probably have a configuration issue.

In order to better help you, we would need your cactus client side logs
so that we know exactly what URL was called by the Cactus client side
code.

Thanks
-Vincent

> -----Original Message-----
> From: Michael Guyver [mailto:michael.guyver@camelotinteractive.com]
> Sent: 08 April 2003 17:26
> To: 'cactus-user@jakarta.apache.org'
> Subject: 404 Error when trying to "get results"
> 
> Hi there,
> 
> I'm new to Cactus and to this list, so firstly my apologies if this is
an
> old issue. I've had a look through the more recent threads on the
mailing
> list, but I haven't come across any that match.
> 
> I'm using Cactus-1.4.1 with the WebSphere 5 (WAS5) test server which
can
> be
> managed from within WebSphere Studio Application Developer (WSAD).
> 
> I'm trying to get the sample EJB-test code (in the Jakarta docs) to
work
> as
> a proof of concept. I've been able to spoof the automated testing by
> building up a test and a result URL as follows:
> 
> http://localhost:9080/mcguyver-
> web/ServletTestRedirector?Cactus_AutomaticSes
>
sion=true&Cactus_TestMethod=testConvert&Cactus_TestClass=uk.co.mcguyver.
ej
> b.
> ConverterTest&Cactus_Service=CALL_TEST
> 
> The "get results" URL is the same except the last parameter, which is
> "GET_RESULTS". That works - it looks up the EJB fine and it behaves as
> expected.
> 
> However, when running the test case from an Ant script, the response
from
> the test framework is as follows:
> 
> <testcase name="testConvert" time="0.203">
>   <error message="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 :
>     [Error 404: File not found: ServletTestRedirector ]"
>      type="org.apache.cactus.util.ChainedRuntimeException">
> 
>     [...]
> 
>   </error>
> </testcase>
> 
> Have pored over the source code, it seems that somehow the
> Client_Service=GET_RESULTS parameter isn't being received by the WAS5
> instance. The appears that the error is generated in:
> 
>
org.apache.cactus.client.AbstractHttpClient.callGetResult(AbstractAuthen
ti
> ca
> tion)
> 
> and caught at:
> 
> org.apache.cactus.client.AbstractHttpClient.doTest(WebRequest)
> 
> which provides the stack-trace.
> 
> So my questions are, essentially:
> 
> a) Is this a known issue with either Cactus or WebSphere 5?
> b) Is there an error within the sample "Converter" application?
> c) If neither of the above, what's going on? Why doesn't the test
return
> the
> results?
> 
> Thanks very much if you've read this far!
> 
> Best wishes,
> 
> Michael
> 
> 
> **********************************************************************
> 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