13 Replies Latest reply on Mar 18, 2013 8:40 AM by andynil.best

    Need help for developing web application using JBPM5.4

    andynil.best

      Hi All ,

      I am new to JBPM . I have gone through many  sample application in the community , But no one is providing right information about how i can integrate a BPMN process into a  web application viz jsp servlets.

       

      Can any one please give a sample application which includes human tasks and decison nodes.

        • 1. Re: Need help for developing web application using JBPM5.4
          roxy1987

          Here

          https://community.jboss.org/people/roxy1987/blog/2013/01/22/jbpm5-web-application-example.

          It is configured to run with websphere so you would need to make a few changes. e.g. Transaction Manager etc.

          • 2. Re: Need help for developing web application using JBPM5.4
            andynil.best

            Hi Shobhit ,

            I am very thankful that you took out some time for replying to my query .. !!

            can you please help me out to run this application with MySql or suggest me changes needs to be done .

            If you are based in india I will reach out you on phone . If you are ok with this please share ur Ph no .

            my email id andynil.best@gmail.com

            • 3. Re: Need help for developing web application using JBPM5.4
              roxy1987

              Anand,

               

              I am from Peru. But you can drop me a private msg in the community.

              If you are using Tomcat, I have an application that is configured to run with tomcat.

              If not then , for starters, you will need to create a data source in your web container and change the databse properties and the transaction lookup class in the file persistence.xml.

               

              Reagrds,

              • 4. Re: Need help for developing web application using JBPM5.4
                andynil.best

                Hi Shobhit ,

                I am using JBOSS 7 , and MySql DB for running the sample  you given I have made fowlling changes to persistence file ..

                 

                <properties>

                            <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>

                           

                            <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>

                            <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/jbpm5" />

                            <property name="hibernate.connection.username" value="jbpm5"/>

                            <property name="hibernate.connection.password" value="jbpm5"/>

                           

                            <property name="hibernate.connection.autocommit" value="true"/>

                            <property name="hibernate.max_fetch_depth" value="3"/>

                            <property name="hibernate.hbm2ddl.auto" value="update" />

                            <property name="hibernate.show_sql" value="false" />

                            <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"/>

                        </properties>

                 

                 

                and

                 

                 

                <properties>

                            

                            <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>

                            <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/task" />

                            <property name="hibernate.connection.username" value="root"/>

                            <property name="hibernate.connection.password" value="root"/>

                          

                            <property name="hibernate.connection.autocommit" value="true" />

                            <property name="hibernate.max_fetch_depth" value="3"/>

                            <property name="hibernate.hbm2ddl.auto" value="update" />

                            <property name="hibernate.show_sql" value="false" />

                            <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"/>

                        </properties>

                 

                I am getting below error in Logs

                 

                 

                18:13:23,656 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "WebApplication.war"

                18:13:25,961 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jaxb-api.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-impl-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:13:25,966 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry activation.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-impl-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:13:25,970 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jsr173_1.0_api.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-impl-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:13:25,974 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jaxb1-impl.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-impl-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:13:25,979 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jaxb-api.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:13:25,983 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jaxb-impl.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:13:25,987 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jsr173_1.0_api.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:13:25,991 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry activation.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:13:25,997 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry activation.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/mail-1.4.jar"  does not point to a valid jar for a Class-Path reference.

                18:13:26,013 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015893: Encountered invalid class name 'org.springframework.context.ApplicationContext,org.springframework.beans.BeansException' for service type 'org.apache.cxf.bus.factory'

                18:13:26,017 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'

                18:13:26,022 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'

                18:13:26,039 INFO  [org.jboss.as.pojo] (MSC service thread 1-7) JBAS017000: Found legacy bean/pojo namespace: urn:jboss:bean-deployer:2.0 - might be missing some xml features (potential exceptions).

                18:13:26,061 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa

                18:13:26,063 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) JBAS011401: Read persistence.xml for org.jbpm.task

                18:13:26,066 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa

                18:13:26,171 WARN  [org.jboss.as.ee] (MSC service thread 1-4) JBAS011006: Not installing optional component org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation

                          at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)

                          at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)

                          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]

                          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

                 

                 

                18:13:26,229 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."WebApplication.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."WebApplication.war".INSTALL: Failed to process phase INSTALL of deployment "WebApplication.war"

                          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]

                          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

                Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011446: Failed to add persistence unit service for org.jbpm.persistence.jpa

                          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:383)

                          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258)

                          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194)

                          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118)

                          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                          ... 5 more

                Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa" is already registered

                          at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:374)

                          ... 9 more

                 

                 

                18:13:26,284 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "WebApplication.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"WebApplication.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WebApplication.war\".INSTALL: Failed to process phase INSTALL of deployment \"WebApplication.war\""}}

                18:13:26,509 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment WebApplication.war in 225ms

                18:13:26,512 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

                JBAS014777:   Services which failed to start:      service jboss.deployment.unit."WebApplication.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."WebApplication.war".INSTALL: Failed to process phase INSTALL of deployment "WebApplication.war"

                 

                 

                18:13:26,519 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"WebApplication.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WebApplication.war\".INSTALL: Failed to process phase INSTALL of deployment \"WebApplication.war\""}}}}

                18:16:51,734 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "WebApplication.war"

                18:16:54,198 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jaxb-api.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-impl-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:16:54,202 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry activation.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-impl-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:16:54,206 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jsr173_1.0_api.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-impl-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:16:54,211 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jaxb1-impl.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-impl-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:16:54,215 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jaxb-api.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:16:54,219 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jaxb-impl.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:16:54,224 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry jsr173_1.0_api.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:16:54,228 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry activation.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar"  does not point to a valid jar for a Class-Path reference.

                18:16:54,233 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) Class Path entry activation.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/mail-1.4.jar"  does not point to a valid jar for a Class-Path reference.

                18:16:54,249 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015893: Encountered invalid class name 'org.springframework.context.ApplicationContext,org.springframework.beans.BeansException' for service type 'org.apache.cxf.bus.factory'

                18:16:54,254 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'

                18:16:54,259 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'

                18:16:54,265 INFO  [org.jboss.as.pojo] (MSC service thread 1-1) JBAS017000: Found legacy bean/pojo namespace: urn:jboss:bean-deployer:2.0 - might be missing some xml features (potential exceptions).

                18:16:54,273 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa

                18:16:54,275 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for org.jbpm.task

                18:16:54,279 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa

                18:16:54,353 WARN  [org.jboss.as.ee] (MSC service thread 1-5) JBAS011006: Not installing optional component org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation

                          at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)

                          at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)

                          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]

                          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

                 

                 

                18:16:54,380 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."WebApplication.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."WebApplication.war".INSTALL: Failed to process phase INSTALL of deployment "WebApplication.war"

                          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]

                          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

                Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011446: Failed to add persistence unit service for org.jbpm.persistence.jpa

                          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:383)

                          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258)

                          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194)

                          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118)

                          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                          ... 5 more

                Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa" is already registered

                          at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:374)

                          ... 9 more

                 

                 

                18:16:54,432 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "WebApplication.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"WebApplication.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WebApplication.war\".INSTALL: Failed to process phase INSTALL of deployment \"WebApplication.war\""}}

                18:16:54,611 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment WebApplication.war in 178ms

                18:16:54,613 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report

                JBAS014777:   Services which failed to start:      service jboss.deployment.unit."WebApplication.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."WebApplication.war".INSTALL: Failed to process phase INSTALL of deployment "WebApplication.war"

                 

                 

                Please help in resolving this Issue .

                • 5. Re: Need help for developing web application using JBPM5.4
                  roxy1987

                  You can use only one schema for both task and process persistence units.

                  Please remove the database properties from the process persistence unit as the datasource is going to be there. I put those there by mistake. Though it wont make a difference.

                   

                  Change the value of transaction lookup class property hibernate.transaction.manager_lookup_class from websphere to jboss.

                  You will need to create a datasource in jboss same as the name mentioned in the persistence file.

                   

                  These are the changes you need to do.

                  But the error you are getting is because the name of the persistence unit i.e. org.jbpm.persistence.jpa is being used by another project which is also deployed in the same container. So Make these changes and then deploy the archive in another jboss server which has no other projects just to be safe.

                   

                  Regards.

                  • 6. Re: Need help for developing web application using JBPM5.4
                    andynil.best

                    Hi Shobhit ,

                    I have made the following changes

                    1. created the datasource mysqlDS

                    2 . changed persistence

                    <properties>

                                <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>

                                <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>

                                <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/task" />

                                <property name="hibernate.connection.username" value="root"/>

                                <property name="hibernate.connection.password" value="root"/>

                                <property name="hibernate.connection.autocommit" value="true"/>

                                <property name="hibernate.max_fetch_depth" value="3"/>

                                <property name="hibernate.hbm2ddl.auto" value="create" />

                                <property name="hibernate.show_sql" value="false" />

                                <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>

                            </properties>     

                     

                     

                    16:24:20,886 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "WebApplication.war"

                    16:24:22,313 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry activation.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/mail-1.4.jar"  does not point to a valid jar for a Class-Path reference.

                    16:24:22,334 INFO  [org.jboss.as.jpa] (MSC service thread 1-8) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa

                    16:24:22,400 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                    16:24:22,408 INFO  [org.jboss.as.jpa] (MSC service thread 1-6) JBAS011402: Starting Persistence Unit Service 'WebApplication.war#org.jbpm.persistence.jpa'

                    16:24:22,412 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-6) HHH000204: Processing PersistenceUnitInfo [

                              name: org.jbpm.persistence.jpa

                              ...]

                    16:24:22,437 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa": org.jboss.msc.service.StartException in service jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa": Failed to start service

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]

                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]

                              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

                    Caused by: org.hibernate.MappingException: Error while parsing file: ProcessInstanceInfo.hbm.xml

                              at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1255)

                              at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1047)

                              at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:692)

                              at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)

                              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)

                              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              ... 3 more

                    Caused by: org.hibernate.InvalidMappingException: Unable to read XML

                              at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:106)

                              at org.hibernate.cfg.Configuration.add(Configuration.java:474)

                              at org.hibernate.cfg.Configuration.add(Configuration.java:470)

                              at org.hibernate.cfg.Configuration.add(Configuration.java:643)

                              at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:681)

                              at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1247)

                              ... 10 more

                    Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

                              at org.dom4j.io.SAXReader.read(SAXReader.java:484)

                              at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:76)

                              ... 15 more

                     

                     

                    16:24:22,694 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "WebApplication.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"WebApplication.war#org.jbpm.persistence.jpa\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"WebApplication.war#org.jbpm.persistence.jpa\": Failed to start service"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1Missing[jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1]"]}

                    16:24:22,857 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment WebApplication.war in 164ms

                    16:24:22,860 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report

                    JBAS014777:   Services which failed to start:      service jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa": org.jboss.msc.service.StartException in service jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa": Failed to start service

                     

                     

                    16:24:22,867 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"WebApplication.war#org.jbpm.persistence.jpa\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"WebApplication.war#org.jbpm.persistence.jpa\": Failed to start service"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1Missing[jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1]"]}}}

                    • 7. Re: Need help for developing web application using JBPM5.4
                      roxy1987

                      Anand,

                       

                      The xmls are not readable for conflict with dom4j.

                      It looks like your server already has dom4j jar. Please confirm by going into runtime directory of jboss. If it is there, remove teh dom4j from the webapplication archive.

                      • 8. Re: Need help for developing web application using JBPM5.4
                        andynil.best

                        Hi Shobhit ,

                        I have removed it.. again deployments failing current log..

                        20:25:31,455 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 4208ms - Started 145 of 222 services (74 services are passive or on-demand)

                        20:26:11,135 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "WebApplication.war"

                        20:26:14,472 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry activation.jar in "/C:/jbpm-installer/content/WebApplication.war/WEB-INF/lib/mail-1.4.jar"  does not point to a valid jar for a Class-Path reference.

                        20:26:14,619 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa

                        20:26:14,945 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                        20:26:14,997 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011402: Starting Persistence Unit Service 'WebApplication.war#org.jbpm.persistence.jpa'

                        20:26:15,480 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-1) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

                        20:26:15,493 INFO  [org.hibernate.Version] (MSC service thread 1-1) HHH000412: Hibernate Core {4.0.1.Final}

                        20:26:15,499 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH000206: hibernate.properties not found

                        20:26:15,506 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH000021: Bytecode provider name : javassist

                        20:26:15,538 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-1) HHH000204: Processing PersistenceUnitInfo [

                                  name: org.jbpm.persistence.jpa

                                  ...]

                        20:26:15,908 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (MSC service thread 1-1) HHH000196: Error parsing XML (5) : cvc-complex-type.3.1: Value '1.0' of attribute 'version' of element 'entity-mappings' is not valid with respect to the corresponding attribute use. Attribute 'version' has a fixed value of '2.0'.

                        20:26:16,027 WARN  [org.hibernate.internal.util.xml.DTDEntityResolver] (MSC service thread 1-1) HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!

                        20:26:16,791 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-1) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

                        20:26:17,223 INFO  [bitronix.tm.BitronixTransactionManager] (MSC service thread 1-1) Bitronix Transaction Manager version 2.1.2

                        20:26:17,229 WARN  [bitronix.tm.Configuration] (MSC service thread 1-1) cannot get this JVM unique ID. Make sure it is configured and you only use ASCII characters. Will use IP address instead (unsafe for production usage!).

                        20:26:17,240 INFO  [bitronix.tm.Configuration] (MSC service thread 1-1) JVM unique ID: <192.168.43.220>

                        20:26:17,257 WARN  [bitronix.tm.journal.DiskJournal] (MSC service thread 1-1) active log file is unclean, did you call BitronixTransactionManager.shutdown() at the end of the last run?

                        20:26:17,275 WARN  [bitronix.tm.utils.ManagementRegistrar] (MSC service thread 1-1) cannot register object with name bitronix.tm:type=Recoverer,ServerId=192_168_43_220: bitronix.tm.internal.BitronixRuntimeException: cannot call method 'registerMBean'

                                  at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:123) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.utils.ManagementRegistrar.register(ManagementRegistrar.java:86) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.recovery.Recoverer.<init>(Recoverer.java:104) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.TransactionManagerServices.getRecoverer(TransactionManagerServices.java:139) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:64) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:62) [btm-2.1.2.jar:2.1.2]

                                  at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:76) [btm-2.1.2.jar:2.1.2]

                                  at javax.naming.InitialContext.lookup(InitialContext.java:392) [rt.jar:1.6.0_29]

                                  at org.jboss.jca.adapters.jdbc.WrapperDataSource.initUserTransaction(WrapperDataSource.java:262)

                                  at org.jboss.jca.adapters.jdbc.WrapperDataSource.checkTransactionActive(WrapperDataSource.java:222)

                                  at org.jboss.jca.adapters.jdbc.WrappedConnection.checkTransactionActive(WrappedConnection.java:1599)

                                  at org.jboss.jca.adapters.jdbc.WrappedConnection.checkStatus(WrappedConnection.java:1614)

                                  at org.jboss.jca.adapters.jdbc.WrappedConnection.checkTransaction(WrappedConnection.java:1588)

                                  at org.jboss.jca.adapters.jdbc.WrappedConnection.getMetaData(WrappedConnection.java:816)

                                  at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:121) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                                  at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]

                                  at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                                  at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]

                                  at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

                        Caused by: java.lang.IllegalAccessException: Class bitronix.tm.utils.ManagementRegistrar can not access a member of class org.jboss.as.jmx.PluggableMBeanServerImpl with modifiers "public"

                                  at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65) [rt.jar:1.6.0_29]

                                  at java.lang.reflect.Method.invoke(Method.java:588) [rt.jar:1.6.0_29]

                                  at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:121) [btm-2.1.2.jar:2.1.2]

                                  ... 32 more

                         

                         

                        20:26:17,466 INFO  [bitronix.tm.recovery.Recoverer] (MSC service thread 1-1) recovery committed 0 dangling transaction(s) and rolled back 0 aborted transaction(s) on 0 resource(s) [] (restricted to serverId '192.168.43.220')

                        20:26:17,507 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-1) HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect

                        20:26:17,535 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-1) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory

                        20:26:17,549 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-1) HHH000397: Using ASTQueryTranslatorFactory

                        20:26:17,607 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-1) Hibernate Validator 4.2.0.Final

                        20:26:18,598 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-1) HHH000227: Running hbm2ddl schema export

                        20:26:24,520 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-1) HHH000230: Schema export complete

                        20:26:25,734 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "WebApplication.war" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1Missing[jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1]"]}

                        20:26:25,744 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011403: Stopping Persistence Unit Service 'WebApplication.war#org.jbpm.persistence.jpa'

                        20:26:25,976 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment WebApplication.war in 239ms

                        20:26:25,983 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

                        JBAS014775:    New missing/unsatisfied dependencies:

                              service jboss.naming.context.java.jboss.resources.jdbc.testDS1 (missing) dependents: [service jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1]

                         

                         

                        20:26:25,999 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1Missing[jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1]"]}}}

                        • 9. Re: Need help for developing web application using JBPM5.4
                          roxy1987

                          Please look for the file ProcessInstanceInfoMapping.xml and change the entity mappings tag to

                           

                          <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
                            xmlns
                          :xsi="http://www.w3.org/2001/XMLSchema-instance"
                            xsi
                          :schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
                            version
                          ="1.0">

                           

                          There is a mismatch in the version.

                           

                          • 10. Re: Need help for developing web application using JBPM5.4
                            andynil.best

                            Hi Shobhit ,

                            Thanks for quick reply ..

                            I have done all the curresponding changes now there is no problem xml syntaxes I googled and fixed accordingly ..

                            But now I am facing the below error for ORM . Please help me out

                             

                             

                            23:53:20,634 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "WebApplication.war"

                            23:53:23,858 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa

                            23:53:23,865 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: Read persistence.xml for org.jbpm.task

                            23:53:24,020 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                            23:53:24,033 INFO  [org.jboss.as.jpa] (MSC service thread 1-6) JBAS011402: Starting Persistence Unit Service 'WebApplication.war#org.jbpm.persistence.jpa'

                            23:53:24,033 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011402: Starting Persistence Unit Service 'WebApplication.war#org.jbpm.task'

                            23:53:24,042 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-6) HHH000204: Processing PersistenceUnitInfo [

                              name: org.jbpm.persistence.jpa

                              ...]

                            23:53:24,047 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-3) HHH000204: Processing PersistenceUnitInfo [

                              name: org.jbpm.task

                              ...]

                            23:53:24,106 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.persistenceunit."WebApplication.war#org.jbpm.task": org.jboss.msc.service.StartException in service jboss.persistenceunit."WebApplication.war#org.jbpm.task": Failed to start service

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]

                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]

                              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

                            Caused by: org.hibernate.MappingException: Error while parsing file: orm.xml

                              at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1255)

                              at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1047)

                              at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:692)

                              at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)

                              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)

                              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              ... 3 more

                            Caused by: org.hibernate.InvalidMappingException: Unable to read XML

                              at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:106)

                              at org.hibernate.cfg.Configuration.add(Configuration.java:474)

                              at org.hibernate.cfg.Configuration.add(Configuration.java:470)

                              at org.hibernate.cfg.Configuration.add(Configuration.java:643)

                              at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:681)

                              at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1247)

                              ... 10 more

                            Caused by: org.dom4j.DocumentException: null Nested exception: null

                              at org.dom4j.io.SAXReader.read(SAXReader.java:484)

                              at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:76)

                              ... 15 more

                             

                             

                            23:53:24,107 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa": org.jboss.msc.service.StartException in service jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa": Failed to start service

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]

                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]

                              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

                            Caused by: org.hibernate.MappingException: Error while parsing file: orm.xml

                              at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1255)

                              at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1047)

                              at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:692)

                              at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)

                              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)

                              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                              ... 3 more

                            Caused by: org.hibernate.InvalidMappingException: Unable to read XML

                              at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:106)

                              at org.hibernate.cfg.Configuration.add(Configuration.java:474)

                              at org.hibernate.cfg.Configuration.add(Configuration.java:470)

                              at org.hibernate.cfg.Configuration.add(Configuration.java:643)

                              at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:681)

                              at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1247)

                              ... 10 more

                            Caused by: org.dom4j.DocumentException: null Nested exception: null

                              at org.dom4j.io.SAXReader.read(SAXReader.java:484)

                              at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:76)

                              ... 15 more

                             

                             

                            23:53:24,579 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "WebApplication.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"WebApplication.war#org.jbpm.task\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"WebApplication.war#org.jbpm.task\": Failed to start service","jboss.persistenceunit.\"WebApplication.war#org.jbpm.persistence.jpa\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"WebApplication.war#org.jbpm.persistence.jpa\": Failed to start service"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1Missing[jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1]"]}

                            23:53:24,703 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "WebApplication.war"

                            23:53:24,858 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment WebApplication.war in 279ms

                            23:53:24,868 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

                            JBAS014777:   Services which failed to start:      service jboss.persistenceunit."WebApplication.war#org.jbpm.task": org.jboss.msc.service.StartException in service jboss.persistenceunit."WebApplication.war#org.jbpm.task": Failed to start service

                                  service jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa": org.jboss.msc.service.StartException in service jboss.persistenceunit."WebApplication.war#org.jbpm.persistence.jpa": Failed to start service

                             

                             

                            23:53:24,908 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"WebApplication.war#org.jbpm.task\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"WebApplication.war#org.jbpm.task\": Failed to start service","jboss.persistenceunit.\"WebApplication.war#org.jbpm.persistence.jpa\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"WebApplication.war#org.jbpm.persistence.jpa\": Failed to start service"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1Missing[jboss.naming.context.java.module.WebApplication.WebApplication.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1]"]}}}

                            • 11. Re: Need help for developing web application using JBPM5.4
                              roxy1987

                              Did you also make changes to your ORM files? could you attach the file here please.

                              • 12. Re: Need help for developing web application using JBPM5.4
                                andynil.best

                                Hi Shobhit ,

                                few question

                                1.Do you have a sample application which demonstrates how we can connect and access the details of the Task server and tasks.using servlets.

                                     simple JSPs and servlets

                                2 . How we can use the REST API's  provided  to develope web applications

                                • 13. Re: Need help for developing web application using JBPM5.4
                                  andynil.best

                                  Hi Shobhit ,

                                  I have attached the files , I have tried changing the versions but its still not working .

                                  The current log

                                   

                                   

                                  18:01:24,494 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

                                  18:01:24,534 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 5798ms - Started 145 of 222 services (74 services are passive or on-demand)

                                  18:02:30,313 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "WebApplication2.war"

                                  18:02:31,719 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) Class Path entry activation.jar in "/C:/jbpm-installer/content/WebApplication2.war/WEB-INF/lib/mail-1.4.jar"  does not point to a valid jar for a Class-Path reference.

                                  18:02:31,783 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: Read persistence.xml for org.jbpm.persistence.jpa

                                  18:02:31,786 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: Read persistence.xml for org.jbpm.task

                                  18:02:31,907 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

                                  18:02:31,934 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011402: Starting Persistence Unit Service 'WebApplication2.war#org.jbpm.task'

                                  18:02:32,148 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-2) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

                                  18:02:32,155 INFO  [org.hibernate.Version] (MSC service thread 1-2) HHH000412: Hibernate Core {4.0.1.Final}

                                  18:02:32,158 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) HHH000206: hibernate.properties not found

                                  18:02:32,161 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) HHH000021: Bytecode provider name : javassist

                                  18:02:32,175 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-2) HHH000204: Processing PersistenceUnitInfo [

                                            name: org.jbpm.task

                                            ...]

                                  18:02:32,233 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.persistenceunit."WebApplication2.war#org.jbpm.task": org.jboss.msc.service.StartException in service jboss.persistenceunit."WebApplication2.war#org.jbpm.task": Failed to start service

                                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]

                                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]

                                            at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

                                  Caused by: org.hibernate.MappingException: Error while parsing file: orm.xml

                                            at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1255)

                                            at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1047)

                                            at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:692)

                                            at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)

                                            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)

                                            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)

                                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                            ... 3 more

                                  Caused by: org.hibernate.InvalidMappingException: Unable to read XML

                                            at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:106)

                                            at org.hibernate.cfg.Configuration.add(Configuration.java:474)

                                            at org.hibernate.cfg.Configuration.add(Configuration.java:470)

                                            at org.hibernate.cfg.Configuration.add(Configuration.java:643)

                                            at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:681)

                                            at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1247)

                                            ... 10 more

                                  Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

                                            at org.dom4j.io.SAXReader.read(SAXReader.java:484)

                                            at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:76)

                                            ... 15 more

                                   

                                   

                                  18:02:32,487 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "WebApplication2.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"WebApplication2.war#org.jbpm.task\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"WebApplication2.war#org.jbpm.task\": Failed to start service"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.WebApplication2.WebApplication2.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1Missing[jboss.naming.context.java.module.WebApplication2.WebApplication2.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1]"]}

                                  18:02:32,632 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment WebApplication2.war in 144ms

                                  18:02:32,635 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

                                  JBAS014775:    New missing/unsatisfied dependencies:

                                        service jboss.naming.context.java.jboss.resources.jdbc.testDS1 (missing) dependents: [service jboss.naming.context.java.module.WebApplication2.WebApplication2.env.jdbc.testDS1]

                                  JBAS014777:   Services which failed to start:      service jboss.persistenceunit."WebApplication2.war#org.jbpm.task": org.jboss.msc.service.StartException in service jboss.persistenceunit."WebApplication2.war#org.jbpm.task": Failed to start service

                                   

                                   

                                  18:02:32,649 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"WebApplication2.war#org.jbpm.task\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"WebApplication2.war#org.jbpm.task\": Failed to start service"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.WebApplication2.WebApplication2.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1Missing[jboss.naming.context.java.module.WebApplication2.WebApplication2.env.jdbc.testDS1jboss.naming.context.java.jboss.resources.jdbc.testDS1]"]}}}

                                   

                                  Message was edited by: Anand BH