13 Replies Latest reply on Mar 24, 2009 6:39 PM by Ronald van Kuijk

    jBPM 3.1 + Spring 2.0 + Tomcat 5 + TX demo app

    dslevine Newbie

      No one had one to share, so I'll post mine now that I figured it out... somewhat. VERY rough demo app posted here:

      http://wiki.jboss.org/wiki/Wiki.jsp?page=Jbpm31AndSpring20Demo

      There is no identity integration yet, but the app runs with Spring, Hibernate, Tomcat, Transactions. More info on the wiki page.

      Let me know if there are any issues with getting it running -- I haven't done extensive testing.

      dan

        • 1. Re: jBPM 3.1 + Spring 2.0 + Tomcat 5 + TX demo app
          Cutberto Ocampo Newbie

          Dan:

          Thank you for your contribution.

          Regards.

          • 3. Re: jBPM 3.1 + Spring 2.0 + Tomcat 5 + TX demo app
            joytech search Newbie

            hi,your app demo is excellence,but the app code is stripped down version,
            i can't integrallty learn it,can't you send me a full source coe of this app,
            i am also the jbpm newbie,i want to learn it immediately,i thing your app Demo will help me a lot,so ,i adjuration that ,can't you send me this Demo's full source code?
            bow!

            my e_mail : joytechsearch@163.com

            • 4. Re: jBPM 3.1 + Spring 2.0 + Tomcat 5 + TX demo app
              joytech search Newbie

              admire!
              i can't find the workflow.htm from the unzip jbpm31Spring20Demo.zip files,
              please send me a full sourcecoe.

              my e_mail: joytechsearch@163.com ^_^

              • 5. Re: jBPM 3.1 + Spring 2.0 + Tomcat 5 + TX demo app
                dslevine Newbie

                workflow.htm maps to workflow.jsp in the Spring mappings.xml file. workflow.jsp is at:

                jbpm31Spring20Demo/WEB-INF/jsp/cms/workflow/



                It is not a full fledged workflow application, but just a demo of how to get something up and running integrated with Spring. I have made some progess since i posted that and I will integrate things back in when I get a chance.

                d

                • 7. Re: jBPM 3.1 + Spring 2.0 + Tomcat 5 + TX demo app
                  john sandanam Newbie

                  Thanx very much, i just begin to understand more jbpm.
                  john

                  • 8. Re: jBPM 3.1 + Spring 2.0 + Tomcat 5 + TX demo app
                    Jitendra Supe Newbie

                    Dan,

                    Thanks for sharing this example.

                    I have customized to deploy it on JBoss + mySQL. I have just changed database setting to pt to mySQL DB.

                    While the application getting deployed on the server, I am getting following error.
                    It will be great help in case you will be able to give me some hint on why I am getting this error.

                    2007-08-23 14:12:01,747 INFO [STDOUT] [2007-08-23 14:12:01,747] DEBUG org.hibernate.SQL insert into JBPM_MODULEDEFINITION (NAME_, PROCESSDEFINITION_, CLASS_) values (?, ?, 'C')
                    2007-08-23 14:12:01,856 INFO [STDOUT] [2007-08-23 14:12:01,856] DEBUG org.hibernate.SQL insert into JBPM_TASKCONTROLLER (TASKCONTROLLERDELEGATION_) values (?)
                    2007-08-23 14:12:01,934 INFO [STDOUT] [2007-08-23 14:12:01,934] DEBUG org.hibernate.SQL insert into JBPM_VARIABLEACCESS (VARIABLENAME_, ACCESS_, MAPPEDNAME_) values (?, ?, ?)
                    2007-08-23 14:12:02,013 INFO [STDOUT] [2007-08-23 14:12:02,013] DEBUG org.hibernate.SQL insert into JBPM_VARIABLEACCESS (VARIABLENAME_, ACCESS_, MAPPEDNAME_) values (?, ?, ?)
                    2007-08-23 14:12:02,028 INFO [STDOUT] [2007-08-23 14:12:02,028] DEBUG org.hibernate.SQL insert into JBPM_TASK (NAME_, PROCESSDEFINITION_, DESCRIPTION_, ISBLOCKING_, ISSIGNALLING_, DUEDATE_, ACTORIDEXPRESSION_, POOLEDACTORSEXPRESSION_, TASKMGMTDEFINITION_, TASKNODE_, STARTSTATE_, ASSIGNMENTDELEGATION_, SWIMLANE_, TASKCONTROLLER_) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
                    2007-08-23 14:12:02,091 INFO [STDOUT] [2007-08-23 14:12:02,091] DEBUG org.hibernate.SQL insert into JBPM_MODULEDEFINITION (NAME_, PROCESSDEFINITION_, STARTTASK_, CLASS_) values (?, ?, ?, 'T')
                    2007-08-23 14:12:02,106 INFO [STDOUT] [2007-08-23 14:12:02,106] ERROR org.hibernate.AssertionFailure an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
                    org.hibernate.AssertionFailure: null id in org.jbpm.graph.def.ProcessDefinition entry (don't flush the Session after an exception occurs)
                    at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:48)
                    at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:150)
                    at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:106)
                    at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
                    at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
                    at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
                    at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
                    at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
                    at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
                    at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:162)
                    at org.jbpm.svc.Services.close(Services.java:211)
                    at org.jbpm.JbpmContext.close(JbpmContext.java:139)
                    at org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean.afterPropertiesSet(LocalJbpmConfigurationFactoryBean.java:182)
                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1114)
                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:349)
                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:257)
                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223)
                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
                    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:271)
                    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:319)
                    at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:131)
                    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
                    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
                    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
                    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
                    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
                    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
                    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
                    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
                    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                    at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
                    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
                    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
                    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
                    at org.jboss.web.WebModule.startModule(WebModule.java:83)
                    at org.jboss.web.WebModule.startService(WebModule.java:61)
                    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                    at $Proxy0.start(Unknown Source)
                    at org.jboss.system.ServiceController.start(ServiceController.java:417)
                    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                    at $Proxy30.start(Unknown Source)
                    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                    at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
                    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                    at $Proxy31.start(Unknown Source)
                    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
                    at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
                    a
                    2007-08-23 14:12:02,247 INFO [STDOUT] t sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                    at $Proxy8.deploy(Unknown Source)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
                    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
                    2007-08-23 14:12:02,341 ERROR [STDERR] org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session
                    2007-08-23 14:12:02,341 ERROR [STDERR] at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:172)
                    2007-08-23 14:12:02,341 ERROR [STDERR] at org.jbpm.svc.Services.close(Services.java:211)
                    2007-08-23 14:12:02,341 ERROR [STDERR] at org.jbpm.JbpmContext.close(JbpmContext.java:139)
                    2007-08-23 14:12:02,356 ERROR [STDERR] at

                    • 9. Re: jBPM 3.1 + Spring 2.0 + Tomcat 5 + TX demo app
                      Ashu Abhinav Newbie

                      Dear All,

                      I tried to find the jbpm31Spring20Demo.zip but could not download the same as the site mentions that the item might be deleted or moved.
                      please send me a full sourcecode.

                      You can send email on abhinav.ashutosh.n@gmail.com

                      Regards
                      A-Sqr

                      • 10. Re: jBPM 3.1 + Spring 2.0 + Tomcat 5 + TX demo app
                        Neha Gupta Newbie

                        Hi Dan,

                        can you please send me the full source code of ' jbpm31Spring20Demo.zip'? The link present on the wiki page seems to be broken.

                        Thanks, Neha

                        "dslevine" wrote:
                        No one had one to share, so I'll post mine now that I figured it out... somewhat. VERY rough demo app posted here:

                        http://wiki.jboss.org/wiki/Wiki.jsp?page=Jbpm31AndSpring20Demo

                        There is no identity integration yet, but the app runs with Spring, Hibernate, Tomcat, Transactions. More info on the wiki page.

                        Let me know if there are any issues with getting it running -- I haven't done extensive testing.

                        dan


                        • 11. Re: jBPM 3.1 + Spring 2.0 + Tomcat 5 + TX demo app
                          Anji U Newbie

                          Looking for an example, please provide the working URL,

                          Thanks in advance!

                          • 12. Re: jBPM 3.1 + Spring 2.0 + Tomcat 5 + TX demo app
                            Anji U Newbie

                            please send me if you can share any thing on this to may email id

                            anjenelu_u@spanservices.com

                            • 13. Re: jBPM 3.1 + Spring 2.0 + Tomcat 5 + TX demo app
                              Ronald van Kuijk Master

                              it is bad practice to request direct responses...