Bug 996560
Summary: | Cannot initialize kmodule in beans.xml during deployment | ||
---|---|---|---|
Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Ivo Bek <ibek> |
Component: | jBPM Core | Assignee: | Mario Fusco <mfusco> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ivo Bek <ibek> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.0 | CC: | rrajasek, rzhang |
Target Milestone: | ER3 | Keywords: | TestBlocker |
Target Release: | 6.0.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-08-06 20:07:07 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ivo Bek
2013-08-13 12:47:03 UTC
I cloned your repo and tried what you did. The only missing bit in your migration attempt is the registration of the kiePostProcessor in the spring context, i.e. adding this: <bean id="kiePostProcessor" class="org.kie.spring.KModuleBeanFactoryPostProcessor"/> to the beans.xml file should fix your problem. If you can confirm it fixes your problem (or even if it doesn't and then requires further investigation) it would be great if you could send a proper pull request so I could merge the migration of drools-camel-server-example to the new kie-spring and kie-camel modules on the master branch. Hi Mario, thank you, the added bean helped and the test passed. However I wasn't successful with the deployment. Now, I receive NPE when the KModuleFactory is trying to get POM properties file: at org.drools.compiler.kie.builder.impl.ClasspathKieProject.getPomProperties(ClasspathKieProject.java:240) [drools-compiler-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT] at org.kie.spring.KModuleBeanFactoryPostProcessor.postProcessBeanFactory(KModuleBeanFactoryPostProcessor.java:84) [kie-spring-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT] I think it's because it searches the pom.properties at wrong location. The root path is /content/drools-camel-server-example-6.0.0-SNAPSHOT.war/WEB-INF/classes/ but the pom.properties is in /content/drools-camel-server-example-6.0.0-SNAPSHOT.war/META-INF/maven/org.drools/drools-camel-server-example/pom.properties. I read this information from the following warning in the server log: 12:58:01,639 WARN [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (ServerService Thread Pool -- 82) Unable to load pom.properties tried recursing down from/content/drools-camel-server-example-6.0.0-SNAPSHOT.war/WEB-INF/classes/ null Of course, I will create the pull request but first I want to do some cleaning of source code because I use the example for experimenting now. In fact, the pom.xml cannot be found at the location. I tried to copy the pom.xml and pom.properties into classes just to check whether it will help and it really did, I successfully deployed the web app. So after all there is just the issue with pom files. Hi Ivo, I believe this last issue is strictly related (if not the same) with this one found by Marek: https://bugzilla.redhat.com/show_bug.cgi?id=996144 I'll try to fix that one first and hopefully this should also solve your problem. I'll keep you updated. Yep, it seems they are same. I noticed that the workaround works only when the war is deployed as a folder like business central. So I recommend to consider both options, the war archive and folder. Verified in BPMS 6.0.0.ER3 |