Bug 1037633 - Missing dependencies for BPM component
Summary: Missing dependencies for BPM component
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: Rules / jBPM integration
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Keith Babo
QA Contact: Jiri Sedlacek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-03 14:08 UTC by Jiri Pechanec
Modified: 2015-08-02 23:45 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-19 18:50:20 UTC
Type: Bug


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.