----- Original Message -----
From: "Perry Hoekstra" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 12:19 PM
Subject: Problem with ServletHttpClient


> Greet the sun all:
>
> I am having trouble getting off the dime with cactus and my current
> project.  When I invoke the test, I receive the following stack trace:
>
> E
> Time: 0.891
> There was 1 error:
> 1) testCreate(com.ingenix.hisit.subrotrack.test.SubroPersonTest)
> java.io.FileNotFoundException:
> http://127.0.0.1:8080/subrotrack/ServletRedirector
> at
>
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:574)
> at
>
org.apache.commons.cactus.client.AutoReadHttpURLConnection.getInputStream(Au
toReadHttpURLConnection.java:119)
> at
>
org.apache.commons.cactus.client.ServletHttpClient.doTest(ServletHttpClient.
java:123)
> at
>
org.apache.commons.cactus.ServletTestCase.runGenericTest(ServletTestCase.jav
a:158)
> at
>
org.apache.commons.cactus.ServletTestCase.runTest(ServletTestCase.java:128)
> at
>
org.apache.commons.cactus.AbstractTestCase.runBare(AbstractTestCase.java:281
)
> at com.ingenix.hisit.subrotrack.test.SubroPersonTest.main(Unknown Source)
>
> What have I done to resolve the issue?
>
> 1) the address listed in the stack trace came from the properties file
> so I know the properties file is in the classpath
>
> 2) If I invoke the URL from a browser, I receive the following:
>
> 500 Internal Server Error
>
> Servlet error: Missing parameter [ServletTestRedirector_Service] in HTTP
> request.
>
>
> This means that the URL is being resolved to the ServerRedirector and
> invoked correctly
>
> 3)  I put some printlns in the ServletHttpClient.doTest method.  Within
> the doTest method, if I look as ServletTestRequest.getURL it is null.
> If I look at the connection passed to AutoReadHttpURLConnection, I see:
>
>
sun.net.www.protocol.http.HttpURLConnection:http://127.0.0.1:8080/subrotrack
/ServletRedirector
>
> I am kinda at a loss on what I am doing wrong.  Thoughts?
>

I have no idea so far ... Can you activate the Cactus logs and send them to
the list (both cactus_client.log and cactus_server.log). Check
http://jakarta.apache.org/cactus/howto_config.html for how to do that.

> This is my second project with cactus and I had no problems like this on
> the first project.  By the way, I am using Orion 1.5.2 if it makes any
> difference.

I have tested Cactus with Orion 1.5.2 and it works fine so that shouldn't be
a problem.
Thanks
-Vincent

Reply via email to