0 Replies Latest reply on Sep 10, 2013 5:04 PM by strife990

    Unable to start web application for jbpm5.4

    strife990

      Hello.

      I'm trying to run a test example web app jbmp5.4.

      I collect x.war project file and copy to the server jboss.

      After a few seconds, the file x.war.fail

      At the moment I turned off most of the project and see that after disabling the file persistence.xml project is working correctly (file appears x.war.deployed).

      Please tell me what could be the error.

      My file persistence.xml:

       

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

      <persistence version="1.0"

                   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence

                                       http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd

                                       http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"

                   xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"

                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                   xmlns="http://java.sun.com/xml/ns/persistence">

        <persistence-unit name="org.jbpm.persistence.jpa" transaction-type="JTA">

        <provider>org.hibernate.ejb.HibernatePersistence</provider>

              <jta-data-source>jdbc:h2:~/testDS1</jta-data-source>

              <class>org.drools.persistence.info.SessionInfo</class>

              <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>

              <class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>

              <class>org.drools.persistence.info.WorkItemInfo</class>

              <class>org.jbpm.process.audit.ProcessInstanceLog</class>

              <class>org.jbpm.process.audit.NodeInstanceLog</class>

              <class>org.jbpm.process.audit.VariableInstanceLog</class>      

             

              <class>org.jbpm.task.Task</class>

        <class>org.jbpm.task.Comment</class>

        <class>org.jbpm.task.Attachment</class>

        <class>org.jbpm.task.I18NText</class>

        <class>org.jbpm.task.SubTasksStrategy</class>

        <class>org.jbpm.task.Deadline</class>

        <class>org.jbpm.task.Escalation</class>

        <class>org.jbpm.task.Reassignment</class>

        <class>org.jbpm.task.Notification</class>

        <class>org.jbpm.task.BooleanExpression</class>

        <class>org.jbpm.task.User</class>

        <class>org.jbpm.task.PeopleAssignments</class>

              <properties>

                   <!-- H2 dialect -->

                  

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

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

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

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

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

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

              </properties>

        </persistence-unit>

       

        <persistence-unit name="org.jbpm.task">

              <provider>org.hibernate.ejb.HibernatePersistence</provider>

             

              <class>org.jbpm.task.Attachment</class>

              <class>org.jbpm.task.Content</class>

              <class>org.jbpm.task.BooleanExpression</class>

              <class>org.jbpm.task.Comment</class>

              <class>org.jbpm.task.Deadline</class>

              <class>org.jbpm.task.Comment</class>

              <class>org.jbpm.task.Deadline</class>

              <class>org.jbpm.task.Delegation</class>

              <class>org.jbpm.task.Escalation</class>

              <class>org.jbpm.task.Group</class>

              <class>org.jbpm.task.I18NText</class>

              <class>org.jbpm.task.Notification</class>

              <class>org.jbpm.task.EmailNotification</class>

              <class>org.jbpm.task.EmailNotificationHeader</class>

              <class>org.jbpm.task.PeopleAssignments</class>

              <class>org.jbpm.task.Reassignment</class>

              <class>org.jbpm.task.Status</class>

              <class>org.jbpm.task.Task</class>

              <class>org.jbpm.task.TaskData</class>

              <class>org.jbpm.task.SubTasksStrategy</class>

              <class>org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</class>

              <class>org.jbpm.task.OnAllSubTasksEndParentEndStrategy</class>

              <class>org.jbpm.task.User</class>

              <class>org.drools.persistence.info.SessionInfo</class>

              <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>

              <class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>

              <class>org.drools.persistence.info.WorkItemInfo</class>

              <properties>

                   <!-- sample H2 configuration  -->

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

                  <property name="hibernate.connection.driver_class" value="org.h2.Driver"/>

                  <property name="hibernate.connection.url" value="jdbc:h2:mem:droolsflow" />

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

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

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

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

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

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

              </properties>

          </persistence-unit>

       

      </persistence>

       

       

      I would be very grateful if someone could provide me with a working example of a simple web app jbpm 5, which I will be able to run without any manipulation. All applications from the site jbpm comunity and failed to start.