Greetings,
I am attempting to run the following beginXXX method.
public void beginTestFormAuthentication(WebRequest theRequest) {
FormAuthentication form =
new FormAuthentication( "testUser", "testPassword" ) ;
theRequest.setRedirectorName("ServletRedirectorSecure");
theRequest.setAuthentication( form ) ;
}
On the serverside I see the following trace.
<Oct 5, 2007 1:49:14 PM EDT> <Error> <HTTP> <BEA-101017>
<[EMAIL PROTECTED] - name:
'/myibfs', context-path: '/myibfs'] Root cause of ServletException.
javax.servlet.ServletException: Missing service name parameter
[Cactus_Service]
in HTTP request. Received query string is [].
at
org.apache.cactus.internal.server.AbstractWebTestController.getServiceNa
me(AbstractWebTestController.java:171)
at
org.apache.cactus.internal.server.AbstractWebTestController.handleReques
t_aroundBody0(AbstractWebTestController.java:81)
at
org.apache.cactus.internal.server.AbstractWebTestController.handleReques
t_aroundBody1$advice(AbstractWebTestController.java:217)
at
org.apache.cactus.internal.server.AbstractWebTestController.handleReques
t(AbstractWebTestController.java)
at
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servle
tTestRedirector.java:101)
On the client side I get this trace. I have read many posts of others
seemingly having very similar problems but I don't seem to get closer to
a fix. Any assistance would be deeply appreciated. BTW...running BEA
9.1.
<error message="Failed to connect to the secured redirector:
http://localhost:7001/myibfs/ServletRedirectorSecure"
type="org.apache.cactus.util.ChainedRuntimeException">org.apache.cactus.
util.ChainedRuntimeException: Failed to connect to the secured
redirector: http://localhost:7001/myibfs/ServletRedirectorSecure
at
org.apache.cactus.client.authentication.FormAuthentication.getSecureSess
ionIdCookie(FormAuthentication.java:315)
at
org.apache.cactus.client.authentication.FormAuthentication.authenticate_
aroundBody10(FormAuthentication.java:354)
at
org.apache.cactus.client.authentication.FormAuthentication.authenticate_
aroundBody11$advice(FormAuthentication.java:224)
at
org.apache.cactus.client.authentication.FormAuthentication.authenticate(
FormAuthentication.java)
at
org.apache.cactus.client.authentication.FormAuthentication.configure_aro
undBody0(FormAuthentication.java:105)
at
org.apache.cactus.client.authentication.FormAuthentication.configure_aro
undBody1$advice(FormAuthentication.java:224)
at
org.apache.cactus.client.authentication.FormAuthentication.configure(For
mAuthentication.java)
at
org.apache.cactus.internal.client.connector.http.HttpClientConnectionHel
per.connect_aroundBody0(HttpClientConnectionHelper.java:103)
at
org.apache.cactus.internal.client.connector.http.HttpClientConnectionHel
per.connect_aroundBody1$advice(HttpClientConnectionHelper.java:306)
at
org.apache.cactus.internal.client.connector.http.HttpClientConnectionHel
per.connect(HttpClientConnectionHelper.java)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callR
unTest(DefaultHttpClient.java:162)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
t_aroundBody0(DefaultHttpClient.java:80)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
t_aroundBody1$advice(DefaultHttpClient.java:306)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
t(DefaultHttpClient.java)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
WebTest(HttpProtocolHandler.java:159)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
Test_aroundBody0(HttpProtocolHandler.java:80)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
Test_aroundBody1$advice(HttpProtocolHandler.java:306)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
Test(HttpProtocolHandler.java)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTes
tCaseCaller.java:144)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(Abstract
CactusTestCase.java:215)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactus
TestCase.java:133)
java.lang.Exception: Received a status code [500] and was expecting less
than 400
at
org.apache.cactus.client.authentication.FormAuthentication.checkPreAuthR
esponse(FormAuthentication.java:270)
at
org.apache.cactus.client.authentication.FormAuthentication.getSecureSess
ionIdCookie(FormAuthentication.java:311)
at
org.apache.cactus.client.authentication.FormAuthentication.authenticate_
aroundBody10(FormAuthentication.java:354)
at
org.apache.cactus.client.authentication.FormAuthentication.authenticate_
aroundBody11$advice(FormAuthentication.java:224)
at
org.apache.cactus.client.authentication.FormAuthentication.authenticate(
FormAuthentication.java)
at
org.apache.cactus.client.authentication.FormAuthentication.configure_aro
undBody0(FormAuthentication.java:105)
at
org.apache.cactus.client.authentication.FormAuthentication.configure_aro
undBody1$advice(FormAuthentication.java:224)
at
org.apache.cactus.client.authentication.FormAuthentication.configure(For
mAuthentication.java)
at
org.apache.cactus.internal.client.connector.http.HttpClientConnectionHel
per.connect_aroundBody0(HttpClientConnectionHelper.java:103)
at
org.apache.cactus.internal.client.connector.http.HttpClientConnectionHel
per.connect_aroundBody1$advice(HttpClientConnectionHelper.java:306)
at
org.apache.cactus.internal.client.connector.http.HttpClientConnectionHel
per.connect(HttpClientConnectionHelper.java)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callR
unTest(DefaultHttpClient.java:162)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
t_aroundBody0(DefaultHttpClient.java:80)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
t_aroundBody1$advice(DefaultHttpClient.java:306)
at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
t(DefaultHttpClient.java)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
WebTest(HttpProtocolHandler.java:159)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
Test_aroundBody0(HttpProtocolHandler.java:80)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
Test_aroundBody1$advice(HttpProtocolHandler.java:306)
at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
Test(HttpProtocolHandler.java)
at
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTes
tCaseCaller.java:144)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(Abstract
CactusTestCase.java:215)
at
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactus
TestCase.java:133)
</error>
</testcase>
<system-out><![CDATA[]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>
Regards,
gwmays
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]