Hide Forgot
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)
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.
Also, what build is this with?
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
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.