• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsf app not able to deploy in jboss

 
satish bodas
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
I have been trying to deploy a sample jsf application for the past two days and I repeatedly get the following exception ::


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


I am using Jboss 4.2.2 GA

The problem happens when I add the following to web.xml ::

<servlet>
<servlet-name>faces</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>


The order of elements in my web.xml is ::
<!-- Seam Filter -->
<!-- Tomahawk Filter -->
<!-- Trinidad Filter -->


<!-- Seam Listener -->

<!-- Trinidad ResourceLoader Servlet-->
<!-- Seam Resource Servlet -->
<!-- Faces Servlet -->

Any help is welcome .
Thanks ,
~satish
 
satish bodas
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My bad .
I had blindly copied a huge number of jar files into web-inf lib folder

After removing all the jars except ::
tomahawk-1.1.7-SNAPSHOT.jar
trinidad-api-1.2.5.jar
trinidad-impl-1.2.5.jar
jboss-seam.jar

Things worked .

Thanks ,
~satish
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This behaviour can indeed be caused by having multiple JSF implementations in the classpath (e.g. Sun Mojarra and Apache MyFaces mixed together).
[ August 28, 2008: Message edited by: Bauke Scholtz ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!