Hi,
I am testing a application which needs FormAuthentification with WebLogic.
Therefore I have created a ServletTestCase to execute Business Logic ( EJB
). My Problem is the following stacktrace where the client comlaines that a
Cookie name is missing.
What do I have to set on the WebRequest in the method beginXX(..)
to get a correct login ?
If have already check the information regarding authentification in the
cactus web page but found no solution.
Thank you for your help

Kind Regards

Martin Hassan Zadeh
org.apache.cactus.util.ChainedRuntimeException: Failed to authenticate the
principal
        at
org.apache.cactus.client.authentication.FormAuthentication.authenticate_arou
ndBody6(FormAuthentication.java:314)
        at
org.apache.cactus.client.authentication.FormAuthentication.authenticate_arou
ndBody7$advice(FormAuthentication.java:158)
        at
org.apache.cactus.client.authentication.FormAuthentication.authenticate(Form
Authentication.java)
        at
org.apache.cactus.client.authentication.FormAuthentication.configure_aroundB
ody0(FormAuthentication.java:155)
        at
org.apache.cactus.client.authentication.FormAuthentication.configure_aroundB
ody1$advice(FormAuthentication.java:158)
        at
org.apache.cactus.client.authentication.FormAuthentication.configure(FormAut
hentication.java)
        at
org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect_a
roundBody0(HttpClientConnectionHelper.java:126)
        at
org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect_a
roundBody1$advice(HttpClientConnectionHelper.java:240)
        at
org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect(H
ttpClientConnectionHelper.java)
        at
org.apache.cactus.client.connector.http.DefaultHttpClient.callRunTest(Defaul
tHttpClient.java:201)
        at
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody0
(DefaultHttpClient.java:119)
        at
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody1
$advice(DefaultHttpClient.java:240)
        at
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttp
Client.java)
        at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebCl
ientTestCaseDelegate.java:333)
        at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(W
ebClientTestCaseDelegate.java:281)
        at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClien
tTestCaseDelegate.java:257)
        at
org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:300)
        at
org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:392)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
java:276)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
.java:167)
java.lang.NullPointerException: missing cookie name
        at org.apache.cactus.Cookie.<init>(Cookie.java:132)
        at
org.apache.cactus.BaseWebRequest.addCookie_aroundBody20(BaseWebRequest.java:
421)
        at
org.apache.cactus.BaseWebRequest.addCookie_aroundBody21$advice(BaseWebReques
t.java:158)
        at org.apache.cactus.BaseWebRequest.addCookie(BaseWebRequest.java)
        at
org.apache.cactus.BaseWebRequest.addCookie_aroundBody18(BaseWebRequest.java:
403)
        at
org.apache.cactus.BaseWebRequest.addCookie_aroundBody19$advice(BaseWebReques
t.java:158)
        at org.apache.cactus.BaseWebRequest.addCookie(BaseWebRequest.java)
        at
org.apache.cactus.client.authentication.FormAuthentication.authenticate_arou
ndBody6(FormAuthentication.java:292)
        at
org.apache.cactus.client.authentication.FormAuthentication.authenticate_arou
ndBody7$advice(FormAuthentication.java:158)
        at
org.apache.cactus.client.authentication.FormAuthentication.authenticate(Form
Authentication.java)
        at
org.apache.cactus.client.authentication.FormAuthentication.configure_aroundB
ody0(FormAuthentication.java:155)
        at
org.apache.cactus.client.authentication.FormAuthentication.configure_aroundB
ody1$advice(FormAuthentication.java:158)
        at
org.apache.cactus.client.authentication.FormAuthentication.configure(FormAut
hentication.java)
        at
org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect_a
roundBody0(HttpClientConnectionHelper.java:126)
        at
org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect_a
roundBody1$advice(HttpClientConnectionHelper.java:240)
        at
org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect(H
ttpClientConnectionHelper.java)
        at
org.apache.cactus.client.connector.http.DefaultHttpClient.callRunTest(Defaul
tHttpClient.java:201)
        at
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody0
(DefaultHttpClient.java:119)
        at
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody1
$advice(DefaultHttpClient.java:240)
        at
org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttp
Client.java)
        at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebCl
ientTestCaseDelegate.java:333)
        at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(W
ebClientTestCaseDelegate.java:281)
        at
org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClien
tTestCaseDelegate.java:257)
        at
org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:300)
        at
org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:392)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
java:276)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
.java:167)




Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.



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

Reply via email to