I am runing my unit tests with cactus on websphere 5.1. When I changed the
authentication mechanism to LTPA(Light weight third party authentication),
tests are not able to run. I am also getting a message "cookie is null" in
stack trace below).  Now LTPA puts a authentication cookie in browser.  Any
suggestions will be very much appreciated. I am using form based
authentication.

--Stack Trace -----
                                                                                       
                                                               
                                                                                       
                                                               
   Failed to authenticate the principal                                                
                                                               
                                                                                       
                                                               
   org.apache.cactus.util.ChainedRuntimeException: Failed to authenticate the 
principal                                                               
   at 
org.apache.cactus.client.authentication.FormAuthentication.authenticate_aroundBody10(FormAuthentication.java:383)
                               
   at 
org.apache.cactus.client.authentication.FormAuthentication.authenticate_aroundBody11$advice(FormAuthentication.java:124)
                        
   at 
org.apache.cactus.client.authentication.FormAuthentication.authenticate(FormAuthentication.java)
                                                
   at 
org.apache.cactus.client.authentication.FormAuthentication.configure_aroundBody0(FormAuthentication.java:105)
                                   
   at 
org.apache.cactus.client.authentication.FormAuthentication.configure_aroundBody1$advice(FormAuthentication.java:124)
                            
   at 
org.apache.cactus.client.authentication.FormAuthentication.configure(FormAuthentication.java)
                                                   
   at 
org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect_aroundBody0(HttpClientConnectionHelper.java:103)
            
   at 
org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect_aroundBody1$advice(HttpClientConnectionHelper.java:206)
     
   at 
org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect(HttpClientConnectionHelper.java)
                            
   at 
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callRunTest(DefaultHttpClient.java:162)
                                      
   at 
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:80)
                                
   at 
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:206)
                        
   at 
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
                                               
   at 
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.java:159)
                                   
   at 
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocolHandler.java:80)
                           
   at 
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpProtocolHandler.java:206)
                   
   at 
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler.java)
                                          
   at 
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144)
                                                   
   at 
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
                                                
   at 
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
                                                      
   at hennepin.co.docc.afs.webcontainer.util.HennepinTestRunner.runSingleTest(Unknown 
Source)                                                         
   at hennepin.co.docc.afs.webcontainer.util.HennepinTestRunner.doGet(Unknown Source)  
                                                               
   at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))          
                                                               
   at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))          
                                                               
   at 
com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java(Inlined 
Compiled Code))                                              
   at com.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java(Compiled Code)) 
                                                               
   at com.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java(Compiled Code))  
                                                               
   at com.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java(Compiled 
Code))                                                             
   at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled
 Code))                                      
   at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled
 Code))                                     
   at 
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled
 Code))                                            
   at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined
 Compiled Code))                              
   at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled 
Code))                                                    
   at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled
 Code))                             
   at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined
 Compiled Code))                         
   at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled
 Code))                        
   at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled
 Code))                                    
   at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled
 Code))                                     
   at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled 
Code))                                                          
   at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled
 Code))                                               
   at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled
 Code))                                
   at 
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java(Compiled
 Code))                      
   at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled
 Code))                                  
   at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled
 Code))                                              
   at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled 
Code))                                                   
   at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled 
Code))                                                         
   at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))           
                                                               
   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))            
                                                               
   java.lang.IllegalStateException: The cookie cannot be null                          
                                                               
   at 
org.apache.cactus.internal.BaseWebRequest.addCookie_aroundBody22(BaseWebRequest.java:326)
                                                       
   at 
org.apache.cactus.internal.BaseWebRequest.addCookie_aroundBody23$advice(BaseWebRequest.java:124)
                                                
   at org.apache.cactus.internal.BaseWebRequest.addCookie(BaseWebRequest.java)         
                                                               
   at 
org.apache.cactus.client.authentication.FormAuthentication.authenticate_aroundBody10(FormAuthentication.java:368)
                               
   at 
org.apache.cactus.client.authentication.FormAuthentication.authenticate_aroundBody11$advice(FormAuthentication.java:124)
                        
   at 
org.apache.cactus.client.authentication.FormAuthentication.authenticate(FormAuthentication.java)
                                                
   at 
org.apache.cactus.client.authentication.FormAuthentication.configure_aroundBody0(FormAuthentication.java:105)
                                   
   at 
org.apache.cactus.client.authentication.FormAuthentication.configure_aroundBody1$advice(FormAuthentication.java:124)
                            
   at 
org.apache.cactus.client.authentication.FormAuthentication.configure(FormAuthentication.java)
                                                   
   at 
org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect_aroundBody0(HttpClientConnectionHelper.java:103)
            
   at 
org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect_aroundBody1$advice(HttpClientConnectionHelper.java:206)
     
   at 
org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect(HttpClientConnectionHelper.java)
                            
   at 
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callRunTest(DefaultHttpClient.java:162)
                                      
   at 
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:80)
                                
   at 
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:206)
                        
   at 
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java)
                                               
   at 
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.java:159)
                                   
   at 
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocolHandler.java:80)
                           
   at 
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpProtocolHandler.java:206)
                   
   at 
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(HttpProtocolHandler.java)
                                          
   at 
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144)
                                                   
   at 
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
                                                
   at 
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
                                                      
   at hennepin.co.docc.afs.webcontainer.util.HennepinTestRunner.runSingleTest(Unknown 
Source)                                                         
   at hennepin.co.docc.afs.webcontainer.util.HennepinTestRunner.doGet(Unknown Source)  
                                                               
   at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))          
                                                               
   at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))          
                                                               
   at 
com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java(Inlined 
Compiled Code))                                              
   at com.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java(Compiled Code)) 
                                                               
   at com.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java(Compiled Code))  
                                                               
   at com.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java(Compiled 
Code))                                                             
   at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled
 Code))                                      
   at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled
 Code))                                     
   at 
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java(Compiled
 Code))                                            
   at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined
 Compiled Code))                              
   at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled 
Code))                                                    
   at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled
 Code))                             
   at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined
 Compiled Code))                         
   at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled
 Code))                        
   at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled
 Code))                                    
   at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled
 Code))                                     
   at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(Compiled 
Code))                                                          
   at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java(Compiled
 Code))                                               
   at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java(Compiled
 Code))                                
   at 
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java(Compiled
 Code))                      
   at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java(Compiled
 Code))                                  
   at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java(Compiled
 Code))                                              
   at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java(Compiled 
Code))                                                   
   at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled 
Code))                                                         
   at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled Code))           
                                                               
   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))            
                                                               
                                                                                       
                                                               
                                                                                       
                                                               



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

Reply via email to