[jboss-user] [Beginners Corner] - Problem running Hello-jsf.war

rodosa do-not-reply at jboss.com
Fri Feb 1 07:01:26 EST 2008


Hello!!!

    I've installed JBoss jBPM and configure it to works with MySQL. Now I would like to buit an small application that uses managed beans ... but It doesn´t work ... I have some problems that I've related in this post http://www.jboss.org/index.html?module=bb&op=viewtopic&t=128803


   But ... I've download the hello-jsf example form [url][http://wiki.jboss.org/wiki/Wiki.jsp?page=HelloJSF/url] but It doesn´t work at all. I point your browser to http://localhost:8080/hellojsf and this is  the error reported:



  | description The server encountered an internal error () that prevented it from fulfilling this request.
  | 
  | exception
  | 
  | javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
  | 	org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 	org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 	org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 	java.lang.Thread.run(Thread.java:619)
  | 
  | root cause
  | 
  | 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>
  | 
  | 	javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
  | 	javax.faces.webapp.FacesServlet.init(FacesServlet.java:102)
  | 	org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | 	org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 	org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 	java.lang.Thread.run(Thread.java:619)
  | 
  | 

I put a lib folder in the WEB-INF where libraries and put 
  | 	<listener>
  |   <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  | </listener>
  |     
in the faces-config.xml file and 

But know the error is the following one.

  | type Status report
  | 
  | message /hellojsf/index.faces
  | 
  | description The requested resource (/hellojsf/index.faces) is not available.
  | 
  | 


Any ideas?

Thanks,

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125485#4125485

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125485




More information about the jboss-user mailing list