6 Replies Latest reply on May 27, 2011 5:26 PM by alexis_lalas .

    The process instance Couldn't completed

    echelon Newbie

      Hi!

       

      I found a progrem that there was is a exception when the end node executed.

      And it's also exists when I click the terminate button to terminate process instance.

      Have somebody got it? Or tell me the reason!

      Thanks!

       

       

      2011-02-18 06:06:38,239 INFO  [STDOUT] (NioProcessor-1) 06:06:38,239 ERROR [SingleSessionCommandService] Could not commit session

      java.lang.IllegalArgumentException: Named query not found: ProcessInstancesWaitingForEvent

          at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:108)

          at org.jbpm.persistence.JpaProcessPersistenceContext.getProcessInstancesWaitingForEvent(JpaProcessPersistenceContext.java:35)

          at org.jbpm.persistence.processinstance.JPASignalManager.getProcessInstancesForEvent(JPASignalManager.java:40)

          at org.jbpm.persistence.processinstance.JPASignalManager.signalEvent(JPASignalManager.java:23)

          at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:263)

          at org.jbpm.workflow.instance.node.EndNodeInstance.internalTrigger(EndNodeInstance.java:57)

          at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)

          at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)

          at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)

          at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)

          at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)

          at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)

          at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)

          at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)

          at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)

          at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)

          at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)

          at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:206)

          at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:90)

          at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:268)

          at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:244)

          at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:333)

          at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:119)

          at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)

          at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)

          at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:295)

          at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:146)

          at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedWSHumanTaskHandler.java:277)

          at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153)

          at org.jbpm.task.service.mina.MinaTaskClientHandler.messageReceived(MinaTaskClientHandler.java:47)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)

          at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)

          at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:616)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:408)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:578)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:540)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:532)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:58)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:857)

          at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

          at java.lang.Thread.run(Thread.java:595)

      2011-02-18 06:06:38,275 INFO  [STDOUT] (NioProcessor-1) [2011:02:49 06:02:275:exception] Uncaught exception on client

      2011-02-18 06:06:38,275 INFO  [STDOUT] (NioProcessor-1) java.lang.IllegalArgumentException: Named query not found: ProcessInstancesWaitingForEvent

      2011-02-18 06:06:38,275 INFO  [STDOUT] (NioProcessor-1)     at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:108)

      2011-02-18 06:06:38,275 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.persistence.JpaProcessPersistenceContext.getProcessInstancesWaitingForEvent(JpaProcessPersistenceContext.java:35)

      2011-02-18 06:06:38,275 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.persistence.processinstance.JPASignalManager.getProcessInstancesForEvent(JPASignalManager.java:40)

      2011-02-18 06:06:38,374 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.persistence.processinstance.JPASignalManager.signalEvent(JPASignalManager.java:23)

      2011-02-18 06:06:38,374 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:263)

      2011-02-18 06:06:38,375 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.EndNodeInstance.internalTrigger(EndNodeInstance.java:57)

      2011-02-18 06:06:38,375 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)

      2011-02-18 06:06:38,375 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)

      2011-02-18 06:06:38,474 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)

      2011-02-18 06:06:38,474 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)

      2011-02-18 06:06:38,474 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)

      2011-02-18 06:06:38,475 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)

      2011-02-18 06:06:38,475 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)

      2011-02-18 06:06:38,587 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)

      2011-02-18 06:06:38,587 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)

      2011-02-18 06:06:38,587 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)

      2011-02-18 06:06:38,588 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)

      2011-02-18 06:06:38,686 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:206)

      2011-02-18 06:06:38,686 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:90)

      2011-02-18 06:06:38,686 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:268)

      2011-02-18 06:06:38,686 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:244)

      2011-02-18 06:06:38,786 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:333)

      2011-02-18 06:06:38,786 INFO  [STDOUT] (NioProcessor-1)     at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:119)

      2011-02-18 06:06:38,786 INFO  [STDOUT] (NioProcessor-1)     at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)

      2011-02-18 06:06:38,786 INFO  [STDOUT] (NioProcessor-1)     at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)

      2011-02-18 06:06:38,886 INFO  [STDOUT] (NioProcessor-1)     at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:295)

      2011-02-18 06:06:38,886 INFO  [STDOUT] (NioProcessor-1)     at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:146)

      2011-02-18 06:06:38,886 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedWSHumanTaskHandler.java:277)

      2011-02-18 06:06:38,886 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153)

      2011-02-18 06:06:38,986 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.task.service.mina.MinaTaskClientHandler.messageReceived(MinaTaskClientHandler.java:47)

      2011-02-18 06:06:38,986 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)

      2011-02-18 06:06:38,986 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)

      2011-02-18 06:06:38,986 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)

      2011-02-18 06:06:39,086 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)

      2011-02-18 06:06:39,086 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)

      2011-02-18 06:06:39,087 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)

      2011-02-18 06:06:39,087 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)

      2011-02-18 06:06:39,186 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)

      2011-02-18 06:06:39,187 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)

      2011-02-18 06:06:39,187 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:616)

      2011-02-18 06:06:39,187 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)

      2011-02-18 06:06:39,286 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:408)

      2011-02-18 06:06:39,286 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:578)

      2011-02-18 06:06:39,286 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:540)

      2011-02-18 06:06:39,287 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:532)

      2011-02-18 06:06:39,387 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:58)

      2011-02-18 06:06:39,388 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:857)

      2011-02-18 06:06:39,388 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)

      2011-02-18 06:06:39,388 INFO  [STDOUT] (NioProcessor-1)     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

      2011-02-18 06:06:39,389 INFO  [STDOUT] (NioProcessor-1)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

      2011-02-18 06:06:39,487 INFO  [STDOUT] (NioProcessor-1)     at java.lang.Thread.run(Thread.java:595)

      2011-02-18 06:06:39,488 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1) Loaded user admin:

      2011-02-18 06:06:39,488 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  admin

      2011-02-18 06:06:39,488 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  manager

      2011-02-18 06:06:39,488 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  user

      2011-02-18 06:06:39,489 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1) Loaded user krisv:

      2011-02-18 06:06:39,489 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  admin

      2011-02-18 06:06:39,489 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  manager

      2011-02-18 06:06:39,489 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  user

      2011-02-18 06:06:39,490 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1) Loaded user john:

      2011-02-18 06:06:39,490 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  admin

      2011-02-18 06:06:39,490 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  manager

      2011-02-18 06:06:39,490 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  user

      2011-02-18 06:06:39,587 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1) Loaded user mary:

      2011-02-18 06:06:39,587 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  admin

      2011-02-18 06:06:39,587 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  manager

      2011-02-18 06:06:39,587 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  user

      2011-02-18 06:06:39,618 INFO  [STDOUT] (NioProcessor-4) [2011:02:49 06:02:618:debug] Message receieved on client : QueryTaskSummaryResponse

      2011-02-18 06:06:39,619 INFO  [STDOUT] (NioProcessor-4) [2011:02:49 06:02:619:debug] Arguments : [[org.jbpm.task.query.TaskSummary@42f58ed6]]

        • 1. The process instance Couldn't completed
          Vadim Melnik Newbie

          Hi echelon,

           

          Look at orm.xml/persistence.xml files provided inside JBPM5 source. This JPQL query "ProcessInstancesWaitingForEvent" specified externally in orm.xml file. Current JBPM5 documentation and samples information is very lightweight, hope with time it will be extended with more details and samples. 

           

          --

          Thanks,

          Vadim.

          • 2. The process instance Couldn't completed
            Kris Verlaenen Master

            I'll take a look at this.  You should have a orm.xml inside a META-INF directory inside your classpath that contains the definition of the query, like this:

            https://github.com/krisv/jbpm/blob/master/jbpm-gwt/jbpm-gwt-server-war/src/main/resources/META-INF/orm.xml

             

            There seems to be a similar issue on JIRA already, I'll update that with the necessary information.

            https://issues.jboss.org/browse/JBPM-3057

             

            Kris

            • 3. The process instance Couldn't completed
              echelon Newbie

              Hi Kris!

                   I've taken a look at 'jbpm-gwt-console-server.war' and found there is a orm.xml stilll in '\WEB-INF\classes\META-INF'.

              Is this not the right directory like that you said ? Where should I put it?

               

              Regards!

              • 4. The process instance Couldn't completed
                Scott Baldwin Newbie

                I've been fighting with this same issue for the last week. I checked the jbpm-gwt-console-server.war and see the following files:

                 

                WEB-INF/classes/META-INF/hibernate.cfg.xml

                WEB-INF/classes/META-INF/orm.xml

                WEB-INF/classes/META-INF/persistence.xml

                 

                The orm.xml file seems correct based on what Kris said to put on the classpath:

                 

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

                <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 orm_1_0.xsd"

                               version="1.0">

                      <named-query name="ProcessInstancesWaitingForEvent">

                          <query>

                select

                    processInstanceInfo.processInstanceId

                from

                    ProcessInstanceInfo processInstanceInfo

                where

                    :type in elements(processInstanceInfo.eventTypes)

                          </query>

                      </named-query>

                </entity-mappings>

                 

                I got to this point by using the jbpm-installer ant script target start.demo and using the H2 driver for the DB backend.

                 

                If I start the Evaluation work flow in the demo, and terminate it from the jbpm-console, I get the exception about the named query not being found (ProcessInstancesWaitingForEvent). The terminate does happen though and the process instance is gone from the console. However, the Evaluation work flow in the demo completes normal if I go through the designed flow and complete the human tasks using the different users.

                 

                I also created my own workflow with no human tasks. When it completes, I get the same exception about the ProcessInstancesWaitingForEvent query not being found.

                 

                Any ideas?

                • 5. Re: The process instance Couldn't completed
                  Filip Rzyszkiewicz Newbie

                  Add <mapping-file>META-INF/orm.xml</mapping-file> to your persistence.xml. It seems WEB-INF/classes if root folder for class loader.

                  • 6. Re: The process instance Couldn't completed
                    alexis_lalas . Newbie

                    Hi Kris and Filip, I've added <mapping-file>META-INF/orm.xml</mapping-file>  to my /jbpm-gwt-console-server/WEB-INF/classes/META-INF/persistence.xml , but the error but the error persists.

                     


                    Now my File --> ./jbpm-gwt-console-server/WEB-INF/classes/META-INF/persistence.xml  has the following lines

                    =======================================================

                    <?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.drools.persistence.jpa" transaction-type="JTA">

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

                        <jta-data-source>java:jdbc/testDS1</jta-data-source>       

                        <mapping-file>META-INF/orm.xml</mapping-file>     <!--              - - - -  My new line - - - -    -->

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

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

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

                        <properties>

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

                          <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>  

                     

                      </persistence-unit>

                       

                    </persistence>


                    =======================================================

                     

                    Could anyone solve this problem?

                    Thanks.