0 Replies Latest reply on Feb 1, 2008 7:01 AM by rodosa

    Problem running Hello-jsf.war

    rodosa

      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,