JBoss Community

Error in deploying JBPM 5.3 in JBOSS 5.1

created by Arun Selva in jBPM - View the full discussion

Im trying hornetq human task hander with JBPM 5.3,

If i run it in local it works fine but When i deploy it in JBoss im getting this DuplicateMappingException.

 

Exception:


2012-07-04 12:51:12,372 WARN  [org.hibernate.ejb.Ejb3Configuration] (main) Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.

2012-07-04 12:51:12,403 INFO  [org.hibernate.cfg.Configuration] (main) Reading mappings from resource : META-INF/jbpmOrm.xml

2012-07-04 12:51:12,418 INFO  [org.hibernate.cfg.Configuration] (main) Reading mappings from resource : META-INF/ProcessInstanceInfo.hbm.xml

2012-07-04 12:51:12,559 INFO  [org.hibernate.cfg.annotations.QueryBinder] (main) Binding Named query: ProcessInstancesWaitingForEvent => select processInstanceInfo.processInstanceId from ProcessInstanceInfo processInstanceInfo join processInstanceInfo.eventTypes eventTypes where eventTypes = :type

2012-07-04 12:51:12,606 INFO  [org.hibernate.cfg.HbmBinder] (main) Mapping class: org.jbpm.persistence.processinstance.ProcessInstanceInfo -> ProcessInstanceInfo

2012-07-04 12:51:12,653 INFO  [org.hibernate.cfg.HbmBinder] (main) Mapping collection: org.jbpm.persistence.processinstance.ProcessInstanceInfo.eventTypes -> EventTypes

2012-07-04 12:51:12,668 INFO  [org.hibernate.cfg.Mappings] (main) duplicate import: org.jbpm.persistence.processinstance.ProcessInstanceInfo->org.jbpm.persistence.processinstance.ProcessInstanceInfo

2012-07-04 12:51:12,668 INFO  [org.hibernate.cfg.Mappings] (main) duplicate import: org.jbpm.persistence.processinstance.ProcessInstanceInfo->ProcessInstanceInfo

2012-07-04 12:51:12,668 INFO  [org.hibernate.cfg.HbmBinder] (main) Mapping class: org.jbpm.persistence.processinstance.ProcessInstanceInfo -> ProcessInstanceInfo

2012-07-04 12:51:12,668 INFO  [org.hibernate.cfg.HbmBinder] (main) Mapping collection: org.jbpm.persistence.processinstance.ProcessInstanceInfo.eventTypes -> EventTypes

2012-07-04 12:51:12,668 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=persistence.unit:unitName=#org.jbpm.persist.jpa state=Create

org.hibernate.DuplicateMappingException: Duplicate collection role mapping org.jbpm.persistence.processinstance.ProcessInstanceInfo.eventTypes

          at org.hibernate.cfg.Mappings.addCollection(Mappings.java:147)

          at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2085)

 

 

My Persistent.xml

 

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

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

    <jta-data-source>java:simpleds</jta-data-source>

    <mapping-file>META-INF/jbpmOrm.xml</mapping-file>

    <mapping-file>META-INF/ProcessInstanceInfo.hbm.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>


What is that im misssing.?

Reply to this message by going to Community

Start a new discussion in jBPM at Community