I have been struggling with this for the past few days. I am using JBPM 6.1.0.Final build. I used this maven project webapp example . A quick warning about setting up the environment: I could get a project to deploy in JBoss EAP 6.3. I tried in Wildfly 8.1 and 8.2, but I kept getting errors that I couldn’t figure out how to fix so that your movement could change. I also ran into some annotation issues, but I think this goes beyond the original question.
I had to make a few changes to the persistence.xml file for everything to work.
- The code will only work if the storage unit name has been set to "org.jbpm.domain" with "jbpm.unit01". Be sure to update the annotations in your code in addition to persistence.xml. This may not be necessary, but I was getting deployment problems if I did not update it.
- I created a JBoss data source, so you need to update the jta-data-source element. I choose to follow the JBoss convention and choose java: jboss / datasources / jbpmDS.
- In the persistence.xml properties section, you need to update the value of the hibernate.dialect property in the dialect of your database. Choose the best match for this ad.
- Add the following to the list of properties in persistence.xml:
<property name="hibernate.hbm2ddl.auto" value="create" /> This will recreate the database whenever the database is deployed. You can change the value from "create" to "validate" after creating the database so that it does not delete the tables with your old data with each subsequent redeployment. - Another thing I upset was that persistence.xml was referencing another XML file: META-INF / Taskorm.xml and META-INF / JBPMorm.xml. It took me a while to find the version that worked. See my comment on this for the link, as I do not have enough posts to post more than two links in one answer.
- I needed to remove the rows for BAMTaskSummaryImpl and TaskEventImpl from the list of classes. I got ClassDefNotFound when deploying if these rows were not deleted.
These were my main blockers, trying to start a project. Hope this helps.
source share