Uploaded image for project: 'FUSE ESB'
  1. FUSE ESB
  2. ESB-1529

Fuse ESB 4 (Pax Web + Karaf) does not support JSF2 + Primefaces

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.4.0-fuse-00-27
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I have been tring to get JSF2 + Primefaces component working in Fuse ESB 4 container. Firstly I tried to use Sun JSF2 implementation (Mojarra project) with Primefaces (http://www.primefaces.org/), however, I could not get it working at all as I always got an exception that is similar to this one when I deployed into Fuse ESB 4.4:

      java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
      If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
      A typical config looks like this;
      <listener>
      <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
      </listener>

      Then I had to use Apache Myfaces JSF2 implementation. I then downloaded a simple20 demo war from Myfaces Tomahawk project and with a bit modification, I could get page rendered so it seems at least partially working. Then I also added Primefaces jar and in the starting page home.xhtml, I added primefaces namespace "http://primefaces.prime.com.tr/ui" in the home.xhtml file as:

      <html xmlns="http://www.w3.org/1999/xhtml"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:ui="http://java.sun.com/jsf/facelets"
              xmlns:t="http://myfaces.apache.org/tomahawk"
              xmlns:p="http://primefaces.prime.com.tr/ui">
      

      And also added some primefaces tags with hope that it would render primefaces tags. However, it does not render primefaces tags at all after I deploy the modified war into Fuse ESB 4.4.0-fuse-00-43. I even upgraded Pax Web to the latest 2.0.0.SNAPSHOT but still got the same result.

      When I deployed the same war file into Tomcat 6, it works perfectly and I can see that the primefaces tags were rendered and functioning well.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  joe.luo Joe Luo
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: