<$BlogItemTitle$>

Thursday, June 21, 2012

 
Issue deploying jsf2.x application on tomcat 

I came across following exception when deploying my app in tomcat 6.x . I was using jsf2.x.

java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
        at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306)


You can try following things:
1. Try1:
Make sure you don't have two different versions of jsf-api.jar and jsf-impl.jar.
Search for jsf jars / classes and make sure its one and only one version.
Remove the ones which are not needed and try starting your app.

2. Try2:
Remember  facelets supporting classes are included in jsf2.x ,
where as previous versions of jsf needed facelet jar in case you were planing to use facelets.
So if you are using jsf2.x try looking for any facelet jar, remove it from class path and try starting your app.


2.Try2:
If you have file facelet.taglib.xml.
Open it and see what classes are being loaded . E.g. you might have defined your own tag-name and components.
Make sure all those classes are available at runtime.


Good Luck.


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?