[jboss-user] [jBPM] - jbpm 5.4 web app with JAP2

Kamlesh Koringa do-not-reply at jboss.com
Tue Dec 25 12:54:42 EST 2012


Kamlesh Koringa [https://community.jboss.org/people/kamleshkoringa] created the discussion

"jbpm 5.4 web app with JAP2"

To view the discussion, visit: https://community.jboss.org/message/784907#784907

--------------------------------------------------------------
HI

I am trying to run simple web application in jboss as7. 
below is my persistance.xml file

<persistence-unit name="org.jbpm.persistence.jpa" transaction-type="JTA">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <jta-data-source>java:jboss/datasources/DemoDS</jta-data-source>
        <mapping-file>META-INF/JBPMorm.xml</mapping-file>
 *<mapping-file>META-INF/ProcessInstanceInfo.hbm.xml</mapping-file>*

        <class>org.drools.persistence.info.SessionInfo</class>
        <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
        <class>org.drools.persistence.info.WorkItemInfo</class>

        <properties>
            <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
            <!-- property name="hibernate.show_sql" value="true" /> -->
            <property name="hibernate.hbm2ddl.auto" value="create" />
            <property name="hibernate.jdbc.use_streams_for_binary" value="true" />
            <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />
            <!--   property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.BitronixJtaPlatform" /-->
            <!--  property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.BTMTransactionManagerLookup"/ -->
        </properties>
    </persistence-unit>

If I add this line
 <mapping-file>META-INF/ProcessInstanceInfo.hbm.xml</mapping-file>
I got following errors.

Caused by: org.hibernate.DuplicateMappingException: Duplicate collection role mapping org.jbpm.persistence.processinstance.ProcessInstanceInfo.eventTypes
                at org.hibernate.cfg.Configuration$MappingsImpl.addCollection(Configuration.java:2582)
                at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2139)

I remove this line it give me following error

2012-06-19 16:47:59,278 ERROR [org.drools.persistence.SingleSessionCommandService] - *<Could not commit session>* *java.lang.IllegalArgumentException: Unknown entity: org.jbpm.persistence.processinstance.ProcessInstanceInfo*
    at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:223)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Please suggest what should I use.
Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/784907#784907]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121225/7fadd8d8/attachment.html 


More information about the jboss-user mailing list