Issues with deploying JBPM project after ant install.jbpm.into.jboss
ku6 Apr 20, 2010 8:29 AMHi,
After I installed JBPM into JBOSS (ant install.jbpm.into.jboss), I deployed a JBPM project into JBOSS.
As soon as the jsp page starts loading, JBPM will lock on JBPM4_property table during the insert. JSP page will hang.
It looks like there is a conflict between JBPM services that is installed in JBoss and another JBPM (from the web app project).
JBPM service hibernate-configure <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property> <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property> <property name="hibernate.connection.url">url</property> <property name="hibernate.connection.username">user</property> <property name="hibernate.connection.password">password</property> <property name="hibernate.format_sql">true</property> <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property> <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property> <property name="jta.UserTransaction">UserTransaction</property> <mapping resource="jbpm.repository.hbm.xml" /> <mapping resource="jbpm.execution.hbm.xml" /> <mapping resource="jbpm.history.hbm.xml" /> <mapping resource="jbpm.task.hbm.xml" /> <mapping resource="jbpm.identity.hbm.xml" /> </session-factory> </hibernate-configuration> JBPM web app from my testing project hibernate-configure <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property> <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property> <property name="hibernate.connection.url">url</property> <property name="hibernate.connection.username">user</property> <property name="hibernate.connection.password">password</property> <property name="hibernate.show_sql">true</property> <mapping resource="jbpm.repository.hbm.xml" /> <mapping resource="jbpm.execution.hbm.xml" /> <mapping resource="jbpm.history.hbm.xml" /> <mapping resource="jbpm.task.hbm.xml" /> <mapping resource="jbpm.identity.hbm.xml" /> </session-factory> </hibernate-configuration> I had on the configure file on my testing project. But it will drop and re-create the JBPM4 tables. So I dropped this line.
<
property name="hibernate.hbm2ddl.auto">create-drop</property
>
My questions is what does ant install.jbpm.into.jboss do? Does it install JBPM as a service in JBOSS?
And once it is installed, can I still deploy another JBPM project into JBOSS? Will co-exist of both cause any conflict?
Thanks,