[JBoss jBPM] - Caused by: org.jbpm.pvm.internal.wire.WireException: couldn'
by SStundzig
Hi,
I've installed the new jbpm4 beta 2 with jboss 5.0.1GA and eclipse jee 3.4 as described in the jBPM User Guide. The setup is running after smaller changes in the JBossStarterAntTask for my mac with ant demo.setup.
Now I could login to the gwt-console.
Great.
If I start a process e.g. Java-1 I got a error page (http-500) in the console and the exception in the jboss log:
10:17:18,202 ERROR [STDERR] Caused by: org.jbpm.api.JbpmException: couldn't load class org.jbpm.examples.java.JohnDoe
| 10:17:18,203 ERROR [STDERR] at org.jbpm.pvm.internal.util.ReflectUtil.loadClass(ReflectUtil.java:62)
| 10:17:18,203 ERROR [STDERR] at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:138)
So I started the eclipse and redeployes the examples with the ant task jbpm.examples -> deploy.examples.
As I can see in the build.xml, the java classes are not packaged in the examples.bar, so I've fixed the ant task:
| <jar destfile="${jbpm.home}/examples/target/examples.bar">
| <fileset dir="${jbpm.home}/examples/target/classes">
| <include name="**/*.class" />
| </fileset>
| <fileset dir="${jbpm.home}/examples/src">
| <include name="**/*.jpdl.xml" />
|
In the gwt-console I've found now java-2, java-3 and so on. But If I start an instance of such a process definition I got the exception above. The examples.bar contains JohnDoe.class.
What could I do?
Regards
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231225#4231225
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231225
16 years, 10 months
[JBoss jBPM] - jbpm 3 or 4
by SStundzig
Hi all,
thx for your great work in jbpm. I'm currently in the situation in collecting a new customer project. In these project I will generate the process definitions from my dsl tool, deploy all to jboss 5.0.1 and use services provided by the jboss esb. For Busines Rules I like Drools. I also very like the idea of the pvm.
Now my question is, is jbpm4 stable enough for production use or should I use jbpm3. This means I need the engine not the admin ui or the eclipse tools. Timeline is to start mid of june with a prototype based on the process engine.
As I can see in JIRA jbpm4 GA is planned for 1. June 2009. But there are more then 50 issues to solve before. Is the release date reachable?
Thx for all answers.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231187#4231187
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231187
16 years, 10 months
[JBoss jBPM] - Re: ProcessClassloader question
by sarishjain
Thanks for your responses. See details below, apologies for delayed response as it took some time to simplify the code.
Note:
1. The handler classes are not packaged in the par file.
2. Process is running on jboss 5.0.1.
3. If i switch the method parameter from "long" to "Long", there is no exception. The exception comes only for Native type. I can not take this workaround, as EJB is external and can not be modified by me.
Simplified code below
Process definition
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="MyProcess">
|
| <start-state name="start-state1">
| <transition to="MyNode"></transition>
| </start-state>
|
| <node name="MyNode" async="true">
| <action name="MyNode" class="MyHandler"></action>
| <transition to="end-state1"></transition>
| </node>
|
| <end-state name="end-state1">
|
| </end-state>
|
|
| </process-definition>
|
Action Handler
|
| /**
| * @author s
| *
| */
| public class MyHandler implements
| ActionHandler {
| private static final long serialVersionUID = 1L;
|
| public void execute(ExecutionContext context) throws Exception {
| try {
| InitialContext ctx = new InitialContext();
| RBACServiceI object = (RBACServiceI) ctx.lookup("ps2/RBACService/local");
|
| RBACServiceI service = (RBACServiceI) object;
| service.getRolesBySystemId(263L);
| } catch (Exception e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| }
|
| }
|
EJB being invoked
| @Local
| public interface RBACServiceI {
|
| /**
| * THis method fetches roles by system id.
| * @param systemid The system id
| * @return List of roles
| */
| public List<PsRole> getRolesBySystemId(long systemid);
|
|
|
| }
|
|
| @Stateless
| public class RBACService implements RBACServiceI {
|
| private RBACDLService service = null;
|
| public List<PsRole> getRolesBySystemId(long systemid){
| return service.getRoleBySystemId(systemid);
| }
|
|
|
|
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231166#4231166
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231166
16 years, 10 months