Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1067129

Summary: Cannot Build&Deploy project in cluster setup due to CNFE: javax.naming.Context from [Module "com.opensymphony.quartz:main"
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jiri Svitak <jsvitak>
Component: Business CentralAssignee: Roger Martínez <romartin>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Svitak <jsvitak>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: jschatte, mbaluch, romartin, rrajasek
Target Milestone: ER2Keywords: TestBlocker
Target Release: 6.0.1   
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:02:00 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 Jiri Svitak 2014-02-19 18:51:39 UTC
Cannot Build&Deploy project in cluster due to java.lang.ClassNotFoundException:javax.naming.Context from [Module "com.opensymphony.quartz:main"

Can be solved by adding a line
<module name="com.opensymphony.quartz" export="false"/>
to file
${EAP_DIR}/modules/system/layers/bpms/org/kie/lib/main/module.xml

My env:
BPMS 6.0.1 ER1
EAP 6.1.1
Zookeeper 3.3.4
Helix 0.6.2

Comment 1 Jiri Svitak 2014-02-19 18:52:06 UTC
See also https://bugzilla.redhat.com/show_bug.cgi?id=1067068#c4

Comment 2 Roger Martínez 2014-02-19 19:49:48 UTC
Hi Jiri,

Are you sure about this solution??

The exception seems to say that the solution is to add:
   <module name="javax.api" export="false"/>
into com.opensymphony.quartz module.

Thanks!

(In reply to Jiri Svitak from comment #0)
> Cannot Build&Deploy project in cluster due to
> java.lang.ClassNotFoundException:javax.naming.Context from [Module
> "com.opensymphony.quartz:main"
> 
> Can be solved by adding a line
> <module name="com.opensymphony.quartz" export="false"/>
> to file
> ${EAP_DIR}/modules/system/layers/bpms/org/kie/lib/main/module.xml
> 
> My env:
> BPMS 6.0.1 ER1
> EAP 6.1.1
> Zookeeper 3.3.4
> Helix 0.6.2

Comment 3 Jiri Svitak 2014-02-19 20:03:04 UTC
No, I am not sure about that solution. I am only sure it's broken :)
So please take that just as a suggestion, it's up to dev team how the bug will be fixed. Thanks.

Comment 4 Jiri Svitak 2014-02-20 13:10:42 UTC
According to Maciej Swiderski both of us are correct:

(01:05:45 PM) maciejs: the only changes I made is to the modules:
(01:06:19 PM) maciejs: 1. org.kie.lib to depend on org.apache.helix and com.opensymphony.quartz
(01:06:38 PM) maciejs: 2. com.opensymphony.quartz to depend on javax.api

So this bugzilla should fix that module org.kie.lib depends on com.opensymphony.quartz and module com.opensymphony.quartz depends on javax.api.

Module org.apache.helix was already fixed by this Bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1067010

Comment 5 Roger Martínez 2014-02-20 15:36:19 UTC
Added fix for master branch: https://github.com/droolsjbpm/kie-wb-distributions/commit/83d505caf3e45b90979229143e2be84a979092fc

Comment 6 Roger Martínez 2014-02-20 15:39:26 UTC
Hi Jiri,

Adding these missing dependencies in module definitions, the issue can be considered then closed?

Thanks!

(In reply to Jiri Svitak from comment #4)
> According to Maciej Swiderski both of us are correct:
> 
> (01:05:45 PM) maciejs: the only changes I made is to the modules:
> (01:06:19 PM) maciejs: 1. org.kie.lib to depend on org.apache.helix and
> com.opensymphony.quartz
> (01:06:38 PM) maciejs: 2. com.opensymphony.quartz to depend on javax.api
> 
> So this bugzilla should fix that module org.kie.lib depends on
> com.opensymphony.quartz and module com.opensymphony.quartz depends on
> javax.api.
> 
> Module org.apache.helix was already fixed by this Bugzilla:
> https://bugzilla.redhat.com/show_bug.cgi?id=1067010

Comment 7 Jan 2014-02-20 15:47:41 UTC
Added fix also to the 6.0.x branch:
http://github.com/droolsjbpm/kie-wb-distributions/commit/9a23f7da1

Comment 8 Jiri Svitak 2014-02-20 16:02:04 UTC
Hi Roger,

I have checked Jan's commit to 6.0.x product branch and it seems to be ok. Please change the status to MODIFIED, thanks.

Comment 9 Jiri Svitak 2014-03-05 15:52:22 UTC
Verified in BPMS 6.0.1 ER2.

Comment 10 Jiri Svitak 2014-06-06 16:49:27 UTC
Build and Assembly bugs are covered by smoke tests.