0 Replies Latest reply on Mar 29, 2006 5:04 AM by eekboom

    Classloader problem with clickable lists and myfaces

    eekboom

      I implemented some clickable lists pretty much like the tutorial examples does.
      myfaces are already part of the default jboss installation, so I did not include the myfaces jars in my ear.

      However that does not work - I get an error when myfaces wants to de-serialize the base64 encoded objects (see stacktrace below).

      When I include the myfaces jars in my ear it works.

      It's not that urgent, but is there anything I can do about it?
      A better error message would have also been nicer - took me a while to figure it out.
      Well, at least now the next one who falls into this trap can find this thread on the forum...


      11:39:15,984 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      javax.faces.FacesException: java.lang.ClassNotFoundException: No ClassLoaders found for: com.fortis.texas.test_client.UserList
      at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.decode64(HtmlResponseStateManager.java:243)
      at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getComponentStateToRestore(HtmlResponseStateManager.java:215)
      at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:95)
      at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:185)
      at org.jboss.seam.jsf.SeamPhaseListener$StateManagerInterceptor.restoreView(SeamPhaseListener.java:205)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)
      at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:124)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
      ...
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: com.fortis.texas.test_client.UserList
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:490)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:392)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)