0 Replies Latest reply on Apr 15, 2008 8:48 AM by Ali Reza Mohseni

    Seam and jbpm4jsf

    Ali Reza Mohseni Newbie

      Hello!
      
      I use Seam to work with jBPM.
      
      
      how to i can show the form which generated in process definition (In developer studio -> task -> generate form) .
      
      
      i used jbpm4jsf lib and i can get form info ,variables and transitions , but the buttons dosent work and throws exception (transition=null), and in seam messeage i have this exceptions(Error loading task instance- 
      
      Error updating variable map- 
      
      Closing the database context failed- 
      
      ) . 
      
      
      and in console i have this exceptions:
      
      
      
      
      10:29:53,716 ERROR [Services] problem closing service 'persistence'
      
      org.jbpm.JbpmException: setRollbackOnly was invoked while configuration specifies user managed transactions
      
           at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:206)
      
           at org.jbpm.svc.Services.close(Services.java:225)
      
           at org.jbpm.JbpmContext.close(JbpmContext.java:139)
      
           at org.jbpm.jsf.core.phase.JbpmPhaseListener.closeContext(JbpmPhaseListener.java:94)
      
           at org.jbpm.jsf.core.phase.JbpmPhaseListener.afterPhase(JbpmPhaseListener.java:41)
      
           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
      
           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
      
           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.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.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
      
           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:433)
      
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      
           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:241)
      
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      
           at java.lang.Thread.run(Unknown Source)
      
      10:29:53,763 ERROR [STDERR] Apr 15, 2008 10:29:53 AM com.sun.facelets.impl.DefaultFacelet refresh
      
      INFO: Facelet[/1/form.money.xhtml] was modified @ 10:29:53 AM, flushing component applied @ 10:29:53 AM
      
      
      
      
      
      
      
      
      
      
      my jbpm-cfg:
      
      
      <code>
      
      <service name="persistence">
      
                     <factory>
      
                          <bean
      
                               class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
      
                               <field name="isTransactionEnabled">
      
                                    <false />
      
                               </field>
      
                          </bean>
      
                     </factory>
      
                </service>
      
                <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
      
                <service name="message"
      
                     factory="org.jbpm.msg.db.DbMessageServiceFactory" />
      
                <service name="scheduler"
      
                     factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
      
                <service name="logging"
      
                     factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
      
                <service name="authentication"
      
                     factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
      
      
      </code>
      
      if i use default jbpm-cfg of jbpm-console , project deploy failed.\
      
      
      tanx .