Created attachment 830217 [details] springapp.war Description of problem: I have an own spring application war and during deployment the kie search for a pom.properties. Though the pom.properties is there, it cannot find it (I'll file another BZ for that), so it tries to generate one from pom.xml but it will never happen due to a NPE. I get NPE on the line https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java#L228 it's the line (for ( File folder = new File( rootPath ); folder != null; folder = new File( folder.getParent() ) ) {) How reproducible: Steps to Reproduce: 1. Unzip the attached springframework.zip into bpms6er5/modules/system/layers/base/org 2. Deploy the attached springapp.war 3. See NPE during the deployment
Created attachment 830229 [details] springframework.zip
Created attachment 830230 [details] server log
I can't see any dependency to kie/drools/jbpm added to jboss-deployment-structure.xml or any jar inside WEB-INF/lib. Is there any instruction missing of how to run the example? I'm not sure but probably the following lines should be added to the <dependencies> tag to at least the get right classes in the classpath. <module name="org.kie" /> <module name="org.drools" /> <module name="org.jbpm" /> <module name="org.kie.lib" />
Hi Pedro, I put the modules into jboss-deployment-structure.xml but it didn't help. To reproduce the issue, it's enough to just deploy the attached springapp.war. Of course, follow all the steps in description above. Or what instruction do you miss? I assume it obvious to start BPMS 6.0.0.ER5 before the deployment.
Fixed by https://github.com/droolsjbpm/droolsjbpm-integration/commit/fccbb9246
Verified with BRMS-6.0.0.ER7