2 Replies Latest reply on Oct 4, 2008 10:59 PM by Alan Stock

    todo example as a seam-gen project

    Alan Stock Newbie

      Hi,


      I am a seam newbie and experimenting with jBPM. I am trying to transfer the todo example to a seam-gen project, but running into an exception (see below).


      Here are the steps I took.
      I am using jboss-seam-2.0.2.SP1 and jboss-4.2.2.GA



      1. seam setup


      2. seam create-project


      3. copied hibernate.cfg.xml, todo.jpdl.xml to resources of the seam-gen project


      4. converted login.jsp with the following, renamed it to login.xhtml and copied it to view directory




      5. converted todo.jsp and renamed it to todo.xhtml and copied it to view directory



      <html xmlns="http://www.w3.org/1999/xhtml"
                              xmlns:ui="http://java.sun.com/www/facelets"
                              xmlns:f="http://java.sun.com/www/html"
                              xmlns:h="http://java.sun.com/www/core"
                              xmlns:s="http://jboss.com/products/seam/taglib">
      <head>
      <title>Todo List</title>
      </head>
      <body>
      <ui:debug hotkey="d" rendered="true"/>
      <h1>Todo List</h1>
         <h:form id="list">
            <div>
               <h:outputText value="There are no todo items." rendered="#{empty taskInstancePriorityList}"/>
               <h:dataTable value="#{taskInstancePriorityList}" var="task" rendered="#{not empty taskInstancePriorityList}">
                  <h:column>
                      <f:facet name="header">
                          <h:outputText value="Description"/>
                      </f:facet>
                      <h:inputText value="#{task.description}" style="width: 400"/>
                  </h:column>
                  <h:column>
                      <f:facet name="header">
                          <h:outputText value="Created"/>
                      </f:facet>
                      <h:outputText value="#{task.taskMgmtInstance.processInstance.start}">
                          <s:convertDateTime type="date" dateStyle="short"/>
                      </h:outputText>
                  </h:column>
                  <h:column>
                      <f:facet name="header">
                          <h:outputText value="Priority"/>
                      </f:facet>
                      <h:inputText value="#{task.priority}" style="width: 30"/>
                  </h:column>
                  <h:column>
                      <f:facet name="header">
                          <h:outputText value="Due Date"/>
                      </f:facet>
                      <h:inputText value="#{task.dueDate}" style="width: 100">
                         <s:convertDateTime type="date" dateStyle="short"/>
                      </h:inputText>
                  </h:column>
                  <h:column>
                      <s:button action="#{todoList.done}" taskInstance="#{task}" value="Done"/>
                  </h:column>
               </h:dataTable>
            </div>
            <div>
            <h:messages/>
            </div>
            <div>
               <h:commandButton value="Update Items" rendered="#{not empty taskInstanceList}"/>
            </div>
         </h:form>
         <h:form id="new">
            <div>
               <h:inputText value="#{todoList.description}" style="width: 400"/>
               <h:commandButton value="Create New Item" action="#{todoList.createTodo}"/>
            </div>
         </h:form>
      </body>
      </html>
      



      6. changed index.html to

      <meta http-equiv="Refresh" content="0; URL=login.seam">



      7. changed pages.xml top element to:    


      <pages xmlns="http://jboss.com/products/seam/pages"
                             xmlns:xsi="http://www.w3.org 2001/XMLSchema-instance"
                         xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd"
      
                      no-conversation-view-id="/login.xhtml"
                      login-view-id="/login.xhtml">



      8. enabled process definition in components.xml by adding (namespace was already defined)


         

      <bpm:jbpm>
              <bpm:process-definitions>
                      <value>todo.jpdl.xml</value>
              </bpm:process-definitions>
          </bpm:jbpm>


         


      9. copied TodoList.java and Login.java to

      \todo2\src\action\org\jboss\seam\example\todo\



      10. ant deploy it


      11. started jboss-4.2.2.GA


      12. http://localhost:8080/todo2/login.seam loads fine.




      But after I login I am getting the exception below.


      What is the reason for this exception ?


      Thank you very much!


      Alan




      Exception during request processing:
      Caused by javax.servlet.ServletException with message: "/login.xhtml @13,42 value="#{login.user}": Target Unreachable, identifier 'login' resolved to null"
      
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
      org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      java.lang.Thread.run(Thread.java:595)
      
      Caused by javax.el.PropertyNotFoundException with message: "/login.xhtml @13,42 value="#{login.user}": Target Unreachable, identifier 'login' resolved to null"
      
      com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
      com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:81)
      javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
      javax.faces.component.UIInput.validate(UIInput.java:860)
      javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
      javax.faces.component.UIInput.processValidators(UIInput.java:666)
      javax.faces.component.UIForm.processValidators(UIForm.java:229)
      javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
      javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
      org.ajax4jsf.component.AjaxViewRoot.access$201(AjaxViewRoot.java:57)
      org.ajax4jsf.component.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:319)
      org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
      org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:170)
      org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:333)
      com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
      com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
      org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
      org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      java.lang.Thread.run(Thread.java:595)




      seam-gen.properties


      #Generated by seam setup
      #Wed Oct 01 16:55:09 CEST 2008
      hibernate.connection.password=
      workspace.home=e\:/terra
      model.package=com.terran
      driver.jar=../lib/hsqldb.jar
      action.package=com.terran
      test.package=com.terran.test
      database.type=hsql
      richfaces.skin=blueSky
      hibernate.default_catalog.null=
      hibernate.default_schema.null=
      database.drop=n
      project.name=todo2
      hibernate.connection.username=sa
      hibernate.connection.driver_class=org.hsqldb.jdbcDriver
      hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
      project.type=ear
      icefaces.home=
      database.exists=n
      jboss.home=e\:/jboss/jboss-4.2.2.GA
      hibernate.dialect=org.hibernate.dialect.HSQLDialect
      hibernate.connection.url=jdbc\:hsqldb\:.
      icefaces=n


        • 1. Re: todo example as a seam-gen project
          Alan Stock Newbie
          Here are more details on how the exeception is thrown.

          The whole thing happen in three stages.
          First, after having submit on the login page, several warnings are logged by the server. Then the login page is returned and I resubmit a login. Here, the exception in the previous message is thrown.

          Hope this help that will give an hint of the cause.

          Many thanks!
          Alan


          * Server log warnings part 1
          (before having submiting first time the login page, ie. just after server )


          23:55:46,156 WARN  [CacheFactory] read-only cache configured for mutable class:
          jboss-seam-dvd_ear,jboss-seam-dvd_jar,dvdDatabase.com.jboss.dvd.seam.Category
          23:55:46,390 WARN  [SessionFactoryObjectFactory] InitialContext did not implemen
          t EventContext
          23:55:50,046 INFO  [ContextConfig] WARNING: Security role name NONE used in an <
          auth-constraint> without being defined in a <security-role>
          23:55:53,250 WARN  [Initialization] Did not install PojoCache due to NoClassDefF
          oundError: org/jgroups/MembershipListener
          23:55:53,859 WARN  [Component] Stateful session beans was bound to the APPLICATI
          ON context - note that it is not safe to make concurrent calls to the bean: inde
          xer
          23:56:08,296 WARN  [LoadContexts] fail-safe cleanup (collections) : org.hibernat
          e.engine.loading.CollectionLoadContext@dcdc8b<rs=org.hsqldb.jdbc.jdbcResultSet@1
          e16028>

          [.. many of similar warnings.. ]

          23:56:39,031 WARN  [SessionFactoryObjectFactory] InitialContext did not implemen
          t EventContext
          23:56:45,015 WARN  [Initialization] Did not install PojoCache due to NoClassDefF
          oundError: org/jgroups/MembershipListener
          23:56:56,937 WARN  [SessionFactoryObjectFactory] InitialContext did not implemen
          t EventContext
          23:57:01,250 WARN  [Initialization] Did not install PojoCache due to NoClassDefF
          oundError: org/jgroups/MembershipListener
          23:55:46,156 WARN  [CacheFactory] read-only cache configured for mutable class:
          jboss-seam-dvd_ear,jboss-seam-dvd_jar,dvdDatabase.com.jboss.dvd.seam.Category



          * Server log warnings part 2
          (after having submitted first time the login page)


          23:57:45,203 INFO  [Contexts] starting up: org.jboss.seam.security.identity
          23:57:46,046 INFO  [RuleBase] parsing rules: /security.drl
          23:57:46,312 INFO  [Contexts] starting up: org.jboss.seam.web.session
          23:57:48,265 ERROR [STDERR] Oct 1, 2008 11:57:48 PM com.sun.facelets.compiler.Ta
          gLibraryConfig loadImplicit
          INFO: Added Library from: jar:file:/E:/jboss/jboss-4.2.2.GA/server/default/tmp/d
          eploy/tmp10371todo2.ear-contents/todo2-exp.war/WEB-INF/lib/jboss-seam-mail.jar!/
          META-INF/seam-mail.taglib.xml
          23:57:48,265 ERROR [STDERR] Oct 1, 2008 11:57:48 PM com.sun.facelets.compiler.Ta
          gLibraryConfig loadImplicit
          INFO: Added Library from: jar:file:/E:/jboss/jboss-4.2.2.GA/server/default/tmp/d
          eploy/tmp10371todo2.ear-contents/todo2-exp.war/WEB-INF/lib/jboss-seam-pdf.jar!/M
          ETA-INF/seam-pdf.taglib.xml
          23:57:48,296 ERROR [STDERR] Oct 1, 2008 11:57:48 PM com.sun.facelets.compiler.Ta
          gLibraryConfig loadImplicit
          INFO: Added Library from: jar:file:/E:/jboss/jboss-4.2.2.GA/server/default/tmp/d
          eploy/tmp10371todo2.ear-contents/todo2-exp.war/WEB-INF/lib/jboss-seam-ui.jar!/ME
          TA-INF/s.taglib.xml
          23:57:48,343 ERROR [STDERR] Oct 1, 2008 11:57:48 PM com.sun.facelets.compiler.Ta
          gLibraryConfig loadImplicit
          INFO: Added Library from: jar:file:/E:/jboss/jboss-4.2.2.GA/server/default/tmp/d
          eploy/tmp10371todo2.ear-contents/todo2-exp.war/WEB-INF/lib/jsf-facelets.jar!/MET
          A-INF/jsf-core.taglib.xml
          23:57:48,359 ERROR [STDERR] Oct 1, 2008 11:57:48 PM com.sun.facelets.compiler.Ta
          gLibraryConfig loadImplicit
          INFO: Added Library from: jar:file:/E:/jboss/jboss-4.2.2.GA/server/default/tmp/d
          eploy/tmp10371todo2.ear-contents/todo2-exp.war/WEB-INF/lib/jsf-facelets.jar!/MET
          A-INF/jsf-html.taglib.xml
          23:57:48,375 ERROR [STDERR] Oct 1, 2008 11:57:48 PM com.sun.facelets.compiler.Ta
          gLibraryConfig loadImplicit
          INFO: Added Library from: jar:file:/E:/jboss/jboss-4.2.2.GA/server/default/tmp/d
          eploy/tmp10371todo2.ear-contents/todo2-exp.war/WEB-INF/lib/jsf-facelets.jar!/MET
          A-INF/jsf-ui.taglib.xml
          23:57:48,390 ERROR [STDERR] Oct 1, 2008 11:57:48 PM com.sun.facelets.compiler.Ta
          gLibraryConfig loadImplicit
          INFO: Added Library from: jar:file:/E:/jboss/jboss-4.2.2.GA/server/default/tmp/d
          eploy/tmp10371todo2.ear-contents/todo2-exp.war/WEB-INF/lib/jsf-facelets.jar!/MET
          A-INF/jstl-core.taglib.xml
          23:57:48,406 ERROR [STDERR] Oct 1, 2008 11:57:48 PM com.sun.facelets.compiler.Ta
          gLibraryConfig loadImplicit
          INFO: Added Library from: jar:file:/E:/jboss/jboss-4.2.2.GA/server/default/tmp/d
          eploy/tmp10371todo2.ear-contents/todo2-exp.war/WEB-INF/lib/jsf-facelets.jar!/MET
          A-INF/jstl-fn.taglib.xml
          23:57:48,437 ERROR [STDERR] Oct 1, 2008 11:57:48 PM com.sun.facelets.compiler.Ta
          gLibraryConfig loadImplicit
          INFO: Added Library from: jar:file:/E:/jboss/jboss-4.2.2.GA/server/default/tmp/d
          eploy/tmp10371todo2.ear-contents/todo2-exp.war/WEB-INF/lib/richfaces-ui.jar!/MET
          A-INF/a4j.taglib.xml
          23:57:48,437 ERROR [STDERR] Oct 1, 2008 11:57:48 PM com.sun.facelets.compiler.Ta
          gLibraryConfig loadImplicit
          INFO: Added Library from: jar:file:/E:/jboss/jboss-4.2.2.GA/server/default/tmp/d
          eploy/tmp10371todo2.ear-contents/todo2-exp.war/WEB-INF/lib/richfaces-ui.jar!/MET
          A-INF/ajax4jsf.taglib.xml
          23:57:48,500 ERROR [STDERR] Oct 1, 2008 11:57:48 PM com.sun.facelets.compiler.Ta
          gLibraryConfig loadImplicit
          INFO: Added Library from: jar:file:/E:/jboss/jboss-4.2.2.GA/server/default/tmp/d
          eploy/tmp10371todo2.ear-contents/todo2-exp.war/WEB-INF/lib/richfaces-ui.jar!/MET
          A-INF/rich.taglib.xml
          23:57:48,531 ERROR [STDERR] Oct 1, 2008 11:57:48 PM com.sun.facelets.compiler.Ta
          gLibraryConfig loadImplicit
          INFO: Added Library from: jar:file:/E:/jboss/jboss-4.2.2.GA/server/default/tmp/d
          eploy/tmp10371todo2.ear-contents/todo2-exp.war/WEB-INF/lib/richfaces-ui.jar!/MET
          A-INF/richfaces.taglib.xml


          * Server log warnings part 3
          (after having submitted second time the login page)


          23:59:49,671 INFO  [STDOUT] Hibernate: select this_.ID_ as ID1_265_0_, this_.VER
          SION_ as VERSION3_265_0_, this_.NAME_ as NAME4_265_0_, this_.DESCRIPTION_ as DES
          CRIPT5_265_0_, this_.ACTORID_ as ACTORID6_265_0_, this_.CREATE_ as CREATE7_265_0
          _, this_.START_ as START8_265_0_, this_.END_ as END9_265_0_, this_.DUEDATE_ as D
          UEDATE10_265_0_, this_.PRIORITY_ as PRIORITY11_265_0_, this_.ISCANCELLED_ as ISC
          ANCE12_265_0_, this_.ISSUSPENDED_ as ISSUSPE13_265_0_, this_.ISOPEN_ as ISOPEN14
          _265_0_, this_.ISSIGNALLING_ as ISSIGNA15_265_0_, this_.ISBLOCKING_ as ISBLOCKIN
          G16_265_0_, this_.TASK_ as TASK17_265_0_, this_.TOKEN_ as TOKEN18_265_0_, this_.
          PROCINST_ as PROCINST19_265_0_, this_.SWIMLANINSTANCE_ as SWIMLAN20_265_0_, this
          _.TASKMGMTINSTANCE_ as TASKMGM21_265_0_ from JBPM_TASKINSTANCE this_ where this_
          .ACTORID_=? and this_.ISOPEN_=? and this_.ISSUSPENDED_<>? order by this_.PRIORIT
          Y_ asc
          23:59:49,671 INFO  [STDOUT] Hibernate: select this_.ID_ as ID1_265_0_, this_.VER
          SION_ as VERSION3_265_0_, this_.NAME_ as NAME4_265_0_, this_.DESCRIPTION_ as DES
          CRIPT5_265_0_, this_.ACTORID_ as ACTORID6_265_0_, this_.CREATE_ as CREATE7_265_0
          _, this_.START_ as START8_265_0_, this_.END_ as END9_265_0_, this_.DUEDATE_ as D
          UEDATE10_265_0_, this_.PRIORITY_ as PRIORITY11_265_0_, this_.ISCANCELLED_ as ISC
          ANCE12_265_0_, this_.ISSUSPENDED_ as ISSUSPE13_265_0_, this_.ISOPEN_ as ISOPEN14
          _265_0_, this_.ISSIGNALLING_ as ISSIGNA15_265_0_, this_.ISBLOCKING_ as ISBLOCKIN
          G16_265_0_, this_.TASK_ as TASK17_265_0_, this_.TOKEN_ as TOKEN18_265_0_, this_.
          PROCINST_ as PROCINST19_265_0_, this_.SWIMLANINSTANCE_ as SWIMLAN20_265_0_, this
          _.TASKMGMTINSTANCE_ as TASKMGM21_265_0_ from JBPM_TASKINSTANCE this_ where this_
          .ACTORID_=? and this_.ISOPEN_=? and this_.ISSUSPENDED_<>? order by this_.PRIORIT
          Y_ asc
          23:59:49,687 INFO  [STDOUT] Hibernate: select this_.ID_ as ID1_265_0_, this_.VER
          SION_ as VERSION3_265_0_, this_.NAME_ as NAME4_265_0_, this_.DESCRIPTION_ as DES
          CRIPT5_265_0_, this_.ACTORID_ as ACTORID6_265_0_, this_.CREATE_ as CREATE7_265_0
          _, this_.START_ as START8_265_0_, this_.END_ as END9_265_0_, this_.DUEDATE_ as D
          UEDATE10_265_0_, this_.PRIORITY_ as PRIORITY11_265_0_, this_.ISCANCELLED_ as ISC
          ANCE12_265_0_, this_.ISSUSPENDED_ as ISSUSPE13_265_0_, this_.ISOPEN_ as ISOPEN14
          _265_0_, this_.ISSIGNALLING_ as ISSIGNA15_265_0_, this_.ISBLOCKING_ as ISBLOCKIN
          G16_265_0_, this_.TASK_ as TASK17_265_0_, this_.TOKEN_ as TOKEN18_265_0_, this_.
          PROCINST_ as PROCINST19_265_0_, this_.SWIMLANINSTANCE_ as SWIMLAN20_265_0_, this
          _.TASKMGMTINSTANCE_ as TASKMGM21_265_0_ from JBPM_TASKINSTANCE this_ where this_
          .ACTORID_=? and this_.ISOPEN_=? and this_.ISSUSPENDED_<>? order by this_.PRIORIT
          Y_ asc
          23:59:49,812 INFO  [STDOUT] Hibernate: select taskinstan0_.ID_ as ID1_265_, task
          instan0_.VERSION_ as VERSION3_265_, taskinstan0_.NAME_ as NAME4_265_, taskinstan
          0_.DESCRIPTION_ as DESCRIPT5_265_, taskinstan0_.ACTORID_ as ACTORID6_265_, taski
          nstan0_.CREATE_ as CREATE7_265_, taskinstan0_.START_ as START8_265_, taskinstan0
          _.END_ as END9_265_, taskinstan0_.DUEDATE_ as DUEDATE10_265_, taskinstan0_.PRIOR
          ITY_ as PRIORITY11_265_, taskinstan0_.ISCANCELLED_ as ISCANCE12_265_, taskinstan
          0_.ISSUSPENDED_ as ISSUSPE13_265_, taskinstan0_.ISOPEN_ as ISOPEN14_265_, taskin
          stan0_.ISSIGNALLING_ as ISSIGNA15_265_, taskinstan0_.ISBLOCKING_ as ISBLOCKING16
          _265_, taskinstan0_.TASK_ as TASK17_265_, taskinstan0_.TOKEN_ as TOKEN18_265_, t
          askinstan0_.PROCINST_ as PROCINST19_265_, taskinstan0_.SWIMLANINSTANCE_ as SWIML
          AN20_265_, taskinstan0_.TASKMGMTINSTANCE_ as TASKMGM21_265_ from JBPM_TASKINSTAN
          CE taskinstan0_ where taskinstan0_.ACTORID_=? and taskinstan0_.ISSUSPENDED_<>1 a
          nd taskinstan0_.ISOPEN_=1
          23:59:49,843 ERROR [STDERR] Oct 1, 2008 11:59:49 PM com.sun.facelets.FaceletView
          Handler handleRenderException
          SEVERE: Error Rendering View[/todo.xhtml]
          javax.el.ELException: /todo.xhtml: Property 'createTodo' not found on type org.j
          boss.seam.example.todo.TodoList_$$_javassist_4
                  at com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruc
          tion.java:53)
                  at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.j
          ava:39)
                  at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149)
                  at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
                  at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.jav
          a:592)
                  at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWra
          pper.java:108)
                  at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.j
          ava:216)
                  at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha
          se.java:106)
                  at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                  at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:290)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:83)
                  at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
          a:68)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:69)
                  at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:69)
                  at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:69)
                  at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:69)
                  at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)

                  at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                  at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:69)
                  at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
          .java:69)
                  at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:235)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
                  at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
          lter.java:96)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
          icationFilterChain.java:235)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
          ilterChain.java:206)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
          alve.java:230)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
          alve.java:175)
                  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
          yAssociationValve.java:179)
                  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
          torBase.java:432)
                  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
          e.java:84)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
          ava:127)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
          ava:102)
                  at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
          onnectionValve.java:157)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
          ve.java:109)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
          a:262)
                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
          :844)
                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
          ss(Http11Protocol.java:583)
                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
          6)
                  at java.lang.Thread.run(Thread.java:595)
          • 2. Re: todo example as a seam-gen project
            Alan Stock Newbie

            I changed the target to war instead of ear. It returns me the following exeception.
            Thank you very much for any help/advice you could have.


            Alan




            javax.el.ELException: /todo.xhtml: Property 'createTodo' not found on type org.jboss.seam.example.todo.TodoList_$$_javassist_4
                 at com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:53)
                 at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
                 at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149)
                 at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
                 at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                 at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                 at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                 at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                 at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                 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(Thread.java:595)