2 Replies Latest reply on Nov 2, 2007 11:27 AM by rkapil

    Serious Classloader Problems

    rkapil

      Our JBoss instance has several JSF web applications with their own JSF implementations, so we had to remove the jars in jbossweb-tomcat55.sar\jsf-libs so they wouldn't conflict.

      So now I want to experiment with Seam, but when I try to deploy the 1.2.1.GA examples it starts puking about not having the myfaces classes:

      java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener

      The problem is that adding those myfaces jars to the jboss-seam-booking war's WEB-INF/lib directory just causes other exceptions like:

      java.lang.NoClassDefFoundError: javax/faces/context/FacesContext

      So I guess my question is this: how do I get this to work? Where should I put the faces jars?

      Any help would be much appreciated.

        • 1. Re: Serious Classloader Problems
          thejavafreak

          What JBoss version are you using? Try using JBoss 4.0.5 and don't add myfaces library in WEB-INF/lib.

          • 2. Re: Serious Classloader Problems
            rkapil

             

            "thejavafreak" wrote:
            What JBoss version are you using? Try using JBoss 4.0.5 and don't add myfaces library in WEB-INF/lib.

            I'm using 4.0.5GA. Like I said, we had to remove the myfaces libraries from jbossweb-tomcat55.sar\jsf-libs because they conflicted with the JSF libraries used by other web applications we already have deployed.