[jboss-user] [JBoss jBPM] - JBPM - EBJ
pravot
do-not-reply at jboss.com
Wed Oct 4 13:04:42 EDT 2006
Hello
I'm a newbie to JBPM and i'm trying to use ejb stub client in a Action Handler.
I've created a very simple stateless session EJB 3.0 that replicates a string through a remote interface.
I'm trying to instantiate this stub with the usual :
| try {
| InitialContext ctx = new InitialContext();
| kp = (dumKp) ctx.lookup("dumKP/dumKpBean/remote");
| } catch (Exception e) {
| System.err.println("Cannot find dumKP/dumKpBean/remote");
| e.printStackTrace();
| }
|
|
provided on top of the execute methode.
I'm facing a lot of pb ....
Even though i've packed the interface dumpKp in a client jar
added to the jbpm project (in deployment too), when running i got :
| 8:59:42,750 ERROR [STDERR] javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: com.mccsoft.kp.dumKp (no security manager: RMI class loader disabled)]
| 18:59:42,750 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
| 18:59:42,750 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| 18:59:42,750 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)
| 18:59:42,750 ERROR [STDERR] at com.sample.action.KplusMessageHandler.execute(KplusMessageHandler.java:21)
| 18:59:42,750 ERROR [STDERR] at org.jbpm.graph.def.Action.execute(Action.java:123)
| 18:59:42,750 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 18:59:42,765 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 18:59:42,765 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 18:59:42,765 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 18:59:42,765 ERROR [STDERR] at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:208)
| 18:59:42,765 ERROR [STDERR] at org.jbpm.graph.def.Action_$$_javassist_62.execute(Action_$$_javassist_62.java)
| 18:59:42,765 ERROR [STDERR] at org.jbpm.graph.def.Node.execute(Node.java:328)
| 18:59:42,765 ERROR [STDERR] at org.jbpm.graph.def.Node.enter(Node.java:316)
|
|
After a look to various forum i got an hint regarding the fact that a Security Manager was missing,
So i added one and got Hibernate Transaction Error.
......
To make a long story short, does anybody knows if it is
simply possible to use ejb stub in a jbpm workflow
and if yes is there some docs links somewhere.
......
Thanx to all ....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976102#3976102
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976102
More information about the jboss-user
mailing list