2 Replies Latest reply on Nov 2, 2007 1:28 PM by easmith

    JBoss 4.2.1 - Rich Faces - Demo program -

      I am having no luck using RichFaces. I would like to use RichFaces or some variation of AJAX4JSF, I am getting an error on the app start up whenever I have tried typing in examples, or when I have tried downloading and running examples.

      Has anyone had any luck with RichFaces 3.1.2 with Jboss 4.2.1? I would like to use this with Jsp, and not using seam. Has anyone had any luck with this configuration?

      I downloaded an example war from this site. It claimed to work with JBoss 4.2
      http://jboss.com/index.html?module=bb&op=viewtopic&t=104575


      When I deployed it got the following error on start up.


      11:14:00,271 INFO [application] JSF1048: PostConstruct/PreDestroy annotations p
      resent. ManagedBeans methods marked with these annotations will have said annot
      ations processed.
      11:14:04,834 ERROR [[/richfaces-demo]] Exception sending context initialized eve
      nt to listener instance of class com.sun.faces.config.ConfigureListener
      java.lang.LinkageError: loader constraints violated when linking javax/el/Expres
      sionFactory class
      at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerW
      ithJsp(ConfigureListener.java:1570)

        • 1. Re: JBoss 4.2.1 - Rich Faces - Demo program -
          alexsmirnov

          Remove el-api.jar and el-impl.jar from your application.
          In the Jboss 4.2 , there libraries provided by container.
          Also, you can't use JSF JSP pages in the Jboss 4.2, as far as it contain Tomcat 5.5 container, but JSF requred Servlet 2.5 container.

          • 2. Re: JBoss 4.2.1 - Rich Faces - Demo program -

            The el-api.jar and el-impl.jar files are only in the ../default/lib directory. I presume they should stay in there. They are not in the application war file.

            JSF/JSP seems to work ok for me in JBoss 4.2.1 I only have a problem when the application starts up after I add the richfaces jar files in the web-inf/lib and add the richfaces filter in the web.xml