Affects Version/s: 4.4.0-fuse-00-27
Fix Version/s: None
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;
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:
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.