[jboss-user] [JBoss Seam] - Re: Stateless Converter: First works, then ClassNotFoundExce
bfo81
do-not-reply at jboss.com
Wed Jul 26 08:50:02 EDT 2006
Errrrr.....
what confuses me:
It seems like the Exception is thrown in the decode64()-method of org.apache.myfaces.renderkit.html.HtmlResponseStateManager. I had a look in the MyFaces-Impl-Jar that came with Seam.... and guess what? This method doesn't exist there. And I found out that Seam has MyFaces 1.1.3, but it seems that JBoss-4.0.4.GA uses MyFaces 1.1.1 which is in $JBOSS_HOME/server/default/deploy/jbossweb-tomcat55.sar/jsf-libs. And the 1.1.1 version has that decode64() method, so the old version is being used.
...HOWEVER...
I overwrote the old MyFaces Jars with the new ones, but the error persists... with a slightly different Exception (but still ClassNotFound):
2006-07-26 14:45:21,890 ERROR [org.apache.myfaces.lifecycle.PhaseListenerManager] Exception in PhaseListener RESTORE_VIEW(1) afterPhase
| java.lang.NullPointerException
| at org.jboss.seam.contexts.PageContext.getAttributeMap(PageContext.java:103)
| at org.jboss.seam.contexts.PageContext.<init>(PageContext.java:40)
| at org.jboss.seam.contexts.Lifecycle.resumePage(Lifecycle.java:323)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.restoreAnyConversationContext(AbstractSeamPhaseListener.java:39)
| at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:63)
| at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.afterPhase(SeamExtendedManagedPersistencePhaseListener.java:55)
| at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
| at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:181)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| 2006-07-26 14:45:21,890 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
| javax.faces.FacesException: java.lang.ClassNotFoundException: No ClassLoaders found for: de.beffo.test.converter.PersonConverter
| at org.apache.myfaces.shared_impl.util.StateUtils.getAsObject(StateUtils.java:283)
| at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:217)
| at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getComponentStateToRestore(HtmlResponseStateManager.java:221)
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:186)
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:287)
| at org.jboss.seam.jsf.SeamStateManager.restoreView(SeamStateManager.java:41)
| at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)
| at org.jboss.seam.jsf.SeamViewHandler.restoreView(SeamViewHandler.java:64)
| at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:353)
| at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:141)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: de.beffo.test.converter.PersonConverter
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:242)
| at java.io.ObjectInputStream.resolveProxyClass(ObjectInputStream.java:656)
| at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1499)
| at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1462)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1698)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)
| at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1633)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1298)
| at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1633)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1298)
| at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1633)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1298)
| at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1633)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1298)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
| at java.util.ArrayList.readObject(ArrayList.java:591)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
| at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1818)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1718)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)
| at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1633)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1298)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
| at java.util.ArrayList.readObject(ArrayList.java:591)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
| at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1818)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1718)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)
| at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1633)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1298)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
| at java.util.ArrayList.readObject(ArrayList.java:591)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
| at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1818)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1718)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)
| at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1633)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1298)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
| at org.apache.myfaces.shared_impl.util.StateUtils.getAsObject(StateUtils.java:274)
| ... 32 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960967#3960967
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960967
More information about the jboss-user
mailing list