1 Reply Latest reply on Jun 25, 2008 2:19 PM by Mike Kuul

    JBPM Example todo: jsp file

    Mike Kuul Newbie

      I'm trying to make the todo example run on my own by copying the code from the tutorial.
      I prepared everything, even the hibernate.cfg.xml and components.xml file but I get this error file executing the login.jsp file:



      13:45:58,855 ERROR [ExceptionFilter] handling uncaught exception
      org.apache.jasper.JasperException: An exception occurred processing JSP page /login.jsp at line 9
      
      6: </head>
      7: <body>
      8: <h1>Login</h1>
      9: <f:view>
      10:     <h:form>
      11:       <div>
      12:         <h:inputText value="#{login.user}"/>
      
      
      Stacktrace:
              at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:415)
              at 
      
      ...
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
              at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.RuntimeException: Cannot find FacesContext
              at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1796)
              at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1613)
              at 
      
      ...
      
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
              ... 40 more
      13:45:58,855 ERROR [ExceptionFilter] exception root cause
      java.lang.RuntimeException: Cannot find FacesContext
              at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1796)
              at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1613)
              at 
      ...
      
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
              at java.lang.Thread.run(Unknown Source)
      


      Please tell how to fix this problem.
      Please.