Ted Pan [https://community.jboss.org/people/ted.pan] created the discussion
"Re: Persistence issue running jBPM 5.3 gwt-console-server on JBoss AS 7.1.1" To view the discussion, visit: https://community.jboss.org/message/740258#740258 -------------------------------------------------------------- hi, you can remove the ProcessInstanceInfo.hbm.xml from META-INF. this file triggers the exception you got. Duplicate collection role mapping org.jbpm.persistence.processinstance.ProcessInstanceInfo.eventTypes in my environment, I use JBoss7.1.1 as well. And I use JPA2 for the jbpm-gwt-console-server.war The following is what I did 0. remove ProcessInstanceInfo.hbm.xml and persistence.xml from WEB-INF\classes\META-INF 1. extract persistence-JPA2.xml and JBPMorm-JPA2.xml from WEB-INF\lib\jbpm-persistence-jpa-5.3.0.Final.jar to WEB-INF\classes\META-INF 2. rename the persistence-JPA2.xml to persistence.xml 3. add <transient name="id" /> to <entity class="org.jbpm.persistence.processinstance.ProcessInstanceInfo"/> in JBPMorm-JPA2.xml 4. add the following to persistence-JPA2.xml <entity class="org.drools.persistence.info.SessionInfo" metadata-complete="false"> <attributes> <id name="id"> <column name="id" /> <generated-value generator="sessionInfoIdSeq" strategy="SEQUENCE"></generated-value> <sequence-generator name="sessionInfoIdSeq" sequence-name="SESSIONINFO_ID_SEQ" allocation-size="1"></sequence-generator> </id> </attributes> </entity> -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/740258#740258] 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
