Hi,
I am trying to deploy the Appfuse program onto Sun Java Enterprise 8.1 for
development. Appfuse is using Acegi on Spring framework for security.
However, after I deploy the war file to the server, when I enter login
details on the login page and clicked login button, an exception occurs
below:
[#|2005-08-08T16:46:19.126+0800|SEVERE|sun-appserver-pe8.1_02|javax.enterpri
se.system.container.web|_ThreadID=15;|StandardWrapperValve[jsp]:
Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException:
net.sf.acegisecurity.providers.UsernamePasswordAuthenticationToken
at
com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListen
er.java:130)
at
com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.j
ava:68)
at
org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.j
ava:189)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:192)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:178)
at
net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Filte
rChainProxy.java:292)
at
net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSe
curityInterceptor.java:84)
at
net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(Securi
tyEnforcementFilter.java:182)
at
net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Filte
rChainProxy.java:303)
at
net.sf.acegisecurity.wrapper.ContextHolderAwareRequestFilter.doFilter(Contex
tHolderAwareRequestFilter.java:50)
at
net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Filte
rChainProxy.java:303)
at
net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(Ht
tpSessionContextIntegrationFilter.java:225)
at
net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Filte
rChainProxy.java:303)
at
net.sf.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:17
3)
at
net.sf.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:
125)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:210)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:178)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:263)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:225)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:173)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161
)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:132)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask
.java:653)
at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask
.java:534)
at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.
java:403)
at
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:
55)
|#]
Anybody has idea on this, and any advice on how to solve this problem?
Thanks
Clarence
---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
Home: http://acegisecurity.sourceforge.net
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer