jsvitak / jbpm-6-examples

Examples how to use jBPM 6.
32 stars 127 forks source link

orm files missing #3

Closed gautirao closed 10 years ago

gautirao commented 10 years ago

Hello ,

There are two mapping files mentioned in the persistence.xml file,

META-INF/JBPMorm.xml
    <mapping-file>META-INF/Taskorm.xml</mapping-file>

The deployment fails since these two are not present. Are these required? Am I missing something obvious here

Thanks, Goutham Rao

jsvitak commented 10 years ago

Hello gautiraio, Thank you for your feedback. Deployment works fine for me. You are correct that these files are missing in the project, but they are contained in lib directory of .war file: jbpm-human-task-core-6.0.1.Final.jar and jbpm-persistence-jpa-6.0.1.Final.jar. Do not remove their references in persistence.xml as they contain certain features, for example named queries, which are crucial for the application to work. Have you followed the steps in readme.md? Do you use JBoss EAP 6.0.1 or higher? What is exactly the error message you face and at which step?

gautirao commented 10 years ago

Hello Jiri, I should have actually posted the error message. I use Jboss 7.1.1Final. I actually got it working it was do with dom jars which I had to exclude from the classpath as jboss provides it and it was causing some class cast exceptions. A simple addition to my pom.xml solved it

        <!-- exclude dom4j as it is provided by jboss.Else causes class cast exceptions -->
        <dependency>
            <groupId>dom4j</groupId>
            <artifactId>dom4j</artifactId>
            <version>1.6.1</version>
            <scope>provided</scope>
        </dependency>