This discussion is archived
0 Replies Latest reply: May 7, 2013 2:07 AM by 1007476 RSS

Deploying JSF in Websphere

1007476 Newbie
Currently Being Moderated
Hi,

I am getting below exception While deploying JSF application in Websphere.

[5/7/13 14:19:10:585 IST] 0000002d FacesConfigur I Reading config /WEB-INF/faces-config.xml
[5/7/13 14:19:10:636 IST] 0000002d FacesConfigur E Circular references detected when sorting application config resources. Use absolute ordering instead.
[5/7/13 14:19:10:638 IST] 0000002d AbstractFaces E An error occured while initializing MyFaces: Circular references detected when sorting application config resources. Use absolute ordering instead.
javax.faces.FacesException: Circular references detected when sorting application config resources. Use absolute ordering instead.
at org.apache.myfaces.config.FacesConfigurator.applySortingAlgorithm(FacesConfigurator.java:1232)
at org.apache.myfaces.config.FacesConfigurator.orderAndFeedArtifacts(FacesConfigurator.java:1016)

at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1620)

[5/7/13 14:19:10:775 IST] 0000002d servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper init Uncaught.init.exception.thrown.by.servlet
[5/7/13 14:19:10:768 IST] 0000002d FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on E:\IBM\WAS8.0\AppServer\profiles\AppSrv02\logs\ffdc\server1_1a04d15d_13.05.07_14.19.10.6708028578684570000270.txt com.ibm.ws.webcontainer.servlet.ServletInstance.init 181
[5/7/13 14:19:10:798 IST] 0000002d webapp E com.ibm.ws.webcontainer.webapp.WebApp commonInitializationFinally SRVE0266E: Error occured while initializing servlets: {0}
javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:391)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1274)
at com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:575)

at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1620)
Caused by: 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>

at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:172)
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:112)
at com.ibm.ws.cache.servlet.ServletWrapper.init(ServletWrapper.java:238)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:329)
... 113 more
Please help me to resolve this problem.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points