Bug 1037633

Summary: Missing dependencies for BPM component
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jiri Pechanec <jpechane>
Component: Rules / jBPM integrationAssignee: Keith Babo <kbabo>
Status: CLOSED NOTABUG QA Contact: Jiri Sedlacek <jsedlace>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: atangrin, dlesage, oskutka, soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-19 18:50:20 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:

Description Jiri Pechanec 2013-12-03 14:08:46 UTC
It seems that BPM components lack some of the dependencies.

The issue was found when using scripting language and can be easily reproduced by adding lines

       try {
                Class<? extends BPMTaskService> cls = _taskService.getClass();
                Method[] m = cls.getDeclaredMethods();
        }
        catch (Exception e) {
                e.printStackTrace();
        }

into a constructor of Helpdesk class of demo/helpdesk example.

When user tries to use a web app then an exception is thrown
JBWEB000070: exception

javax.servlet.ServletException: javax/enterprise/event/Event
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
JBWEB000071: root cause

java.lang.NoClassDefFoundError: javax/enterprise/event/Event
	java.lang.Class.getDeclaredMethods0(Native Method)
	java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
	java.lang.Class.getDeclaredMethods(Class.java:1845)

Comment 1 Keith Babo 2013-12-03 15:08:54 UTC
Are you able to reproduce this outside the helpdesk quickstart and BPMTaskService.  Human tasks are not supported in FSW 6, so this is only an issue if the missing dependency impacts functionality outside of human task use cases.

Comment 2 Keith Babo 2013-12-03 15:22:05 UTC
Also, what build is this with?

Comment 3 Keith Babo 2013-12-03 15:49:30 UTC
OK, I investigated this and found that adding a "javax.enterprise.api" dependency to modules/system/layers/soa/org/switchyard/component/bpm/main/module.xml will fix the problem.  So we at least know what the fix is for using this quickstart.

I also had a chat with David to determine the exposure of this issue and he confirmed that it's limited to human tasks and use of our BPMTaskService class.

Since human tasks are not supported in FSW 6, I'm giving this a devel_ack '-' for the release.  I have filed the following BZ to remove the helpdesk QS from the platform:

https://bugzilla.redhat.com/show_bug.cgi?id=1037671

Comment 4 Jiri Pechanec 2013-12-04 05:38:12 UTC
Sorry for the late response - the build was ER6. And correct I found the issue to be present only with human tasks - so if HT are not supported then this is not a blocker.