Antonio Pagano [
http://community.jboss.org/people/antonio.pagano] created the discussion
"JBPM 4.4 Tomcat JNDI ProcessEngine Exception."
To view the discussion, visit:
http://community.jboss.org/message/563436#563436
--------------------------------------------------------------
Hi,
I wrote a Factory for my using JBPM 4.4 ProcessEngine as a JNDI resource in Tomcat like
this,
...
public class ProcessEngineFactory implements ObjectFactory {
public Object getObjectInstance(Object obj, Name name, Context nameCtx,
Hashtable<?, ?> environment) throws Exception {
return Configuration.getProcessEngine();
}
}
Im start my Tomcat and everithing goes great, but when another application needs to find
anyone of the services
inside the ProcessEngineImpl (lets say RepositoryService) , i get this exception :
...
Caused by: org.jbpm.pvm.internal.wire.WireException: couldn't set commandService to
org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:48)
at
org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:230)
... 25 more
Caused by: org.jbpm.api.JbpmException: couldn't set 'commandService' to
'org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd'
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:170)
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:46)
... 26 more
Caused by: java.lang.IllegalArgumentException: Can not set
org.jbpm.pvm.internal.cmd.CommandService field
org.jbpm.pvm.internal.svc.AbstractServiceImpl.commandService to
org.jbpm.pvm.internal.svc.SkipInterceptor
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:168)
... 27 more
...
Please any help you can give me arround this topic is great received.
Thanks in advance,
Antonio
Caused by: org.jbpm.pvm.internal.wire.WireException: couldn't set commandService to
org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:48)
at
org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:230)
... 25 more
Caused by: org.jbpm.api.JbpmException: couldn't set 'commandService' to
'org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd'
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:170)
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:46)
... 26 more
Caused by: java.lang.IllegalArgumentException: Can not set
org.jbpm.pvm.internal.cmd.CommandService field
org.jbpm.pvm.internal.svc.AbstractServiceImpl.commandService to
org.jbpm.pvm.internal.svc.SkipInterceptor
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:168)
... 27 Caused by: org.jbpm.pvm.internal.wire.WireException: couldn't set
commandService to org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:48)
at
org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:230)
... 25 more
Caused by: org.jbpm.api.JbpmException: couldn't set 'commandService' to
'org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd'
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:170)
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:46)
... 26 more
Caused by: java.lang.IllegalArgumentException: Can not set
org.jbpm.pvm.internal.cmd.CommandService field
org.jbpm.pvm.internal.svc.AbstractServiceImpl.commandService to
org.jbpm.pvm.internal.svc.SkipInterceptor
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:168)
... 27 more
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/563436#563436]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]