4 Replies Latest reply on Dec 11, 2007 7:57 AM by magdam

    Myfaces, seam 2.0 and Jboss 4.2.2

    magdam

      Hello
      I need to use MyFaces with Seam 2.0 on JBoss 4.2.2.
      Libraries myfaces-api-1.1.5.jar and myfaces-imp-1.1.5.jar I have in war in my application web-inf/lib.
      I removed the JSF impl from /deploy/jboss-web.deployer/jsf-libs and comment listeners in /deploy/jboss-web.deployer/conf/web.xml
      (http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105235#4105235)

      So I have error
      12:42:17,546 WARN [JspServlet] Failed to load engineOptionsClass
      java.lang.reflect.InvocationTargetException

      at sun.reflect.GeneratedConstructorAccessor47.newInstance(Unknown Source)
      ...
      Caused by: java.lang.NoClassDefFoundError: org/jboss/web/jsf/integration/config/JBossJSFConfigureListener

      Where should I search a solution?

        • 1. Re: Myfaces, seam 2.0 and Jboss 4.2.2
          magdam

          When I want to use jsf-api.jar and jsf-impl.jar instead of myfaces-api-1.1.5.jar and myfaces-imp-1.1.5.jar
          I have error:

          Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "javax.faces.application.Application.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/jboss/web/tomcat/service/WebAppClassLoader) of the current class, com/sun/facelets/compiler/Compiler, and the class loader (instance of org/jboss/mx/loading/UnifiedClassLoader3) for resolved class, javax/faces/application/Application, have different Class objects for the type javax/el/ExpressionFactory used in the signature

          • 2. Re: Myfaces, seam 2.0 and Jboss 4.2.2
            magdam

            I think that this errors caused by el-api.jar in my application.
            I deleted el-api.jar and el-ri.jar from my application.
            java.lang.NoClassDefFoundError: org/jboss/el/lang/EvaluationContext org.jboss.seam.jsf.SeamApplication.getExpressionFactory(SeamApplication.java:346)
            Where should I search a solution?

            • 3. Re: Myfaces, seam 2.0 and Jboss 4.2.2
              magdam

              This error
              ava.lang.NoClassDefFoundError: org/jboss/el/lang/EvaluationContext org.jboss.seam.jsf.SeamApplication.getExpressionFactory(SeamApplication.java:346)
              I have when I start my application.

              • 4. Re: Myfaces, seam 2.0 and Jboss 4.2.2
                magdam

                I added library jboss-el.jar to
                server\all\deploy\jboss-web.deployer\jsf-libs\
                and application works fine.