hamsterdancer [https://community.jboss.org/people/hamsterdancer] created the discussion
"Re: Problem with jBPM5.3 and (needed) activated jpa in standalone.xml" To view the discussion, visit: https://community.jboss.org/message/742386#742386 -------------------------------------------------------------- Thanks Maciej. Unfortunately I don't know that much about JPA (not to say nothing except for the idea of it^^) and so on, what's behind your link looks pretty good. But it still doesn't work. What I've done is to copy the JBPMMorm-JPA2.xml from the jbpm-persistence-jpa.jar ( https://raw.github.com/droolsjbpm/jbpm/master/jbpm-persistence-jpa/src/main/resources/META-INF/JBPMorm-JPA2.xml here) in jbpm-gwt-console-server.war#/WEB-INF/classes/META-INF and changed the persistence.xml as follows (version numbers, mapping file and TransactionManagerLookup) > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > <persistence version="2.0" > xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence > http://java.sun.com/xml/ns/persistence > > http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd > http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd > http://java.sun.com/xml/ns/persistence/orm > http://java.sun.com/xml/ns/persistence/orm > > http://java.sun.com/xml/ns/persistence/orm_2_0.xsd > http://java.sun.com/xml/ns/persistence/orm_2_0.xsd" > xmlns:orm=" http://java.sun.com/xml/ns/persistence/orm > http://java.sun.com/xml/ns/persistence/orm" > xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance > http://www.w3.org/2001/XMLSchema-instance" > xmlns=" http://java.sun.com/xml/ns/persistence > 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>java:jboss/datasources/jbpmDS</jta-data-source> > <mapping-file>META-INF/JBPMorm-JPA2.xml</mapping-file> > > > <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class> > <class>org.drools.persistence.info.SessionInfo</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> > > > <properties> > <property name="hibernate.dialect" > value="org.hibernate.dialect.H2Dialect"/> > <property name="hibernate.max_fetch_depth" value="3"/> > <!-- hbm2ddl.auto MUST BE update! The console will otherwise overwrite > the schema with each new thread --> > <property name="hibernate.hbm2ddl.auto" value="update" /> > <property name="hibernate.show_sql" value="false" /> > > > <!-- for AS7 --> > <property name="hibernate.transaction.jta.platform" > value="org.hibernate.service.jta.platform.internal.BitronixJtaPlatform" /> > <!-- <property name="hibernate.transaction.manager_lookup_class" > value="org.jbpm.integration.console.JBPMTransactionManager" /> --> > </properties> > </persistence-unit> > > </persistence> I've although tried both lines of the TransactionManagerLookup and to tried with commenting the line <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class> out. But it still doesn't work. Is there anything more I just don't see? -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/742386#742386] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
