[jboss-user] [jBPM] - ClassCastException

ricardo delarosa do-not-reply at jboss.com
Sat Apr 10 13:10:01 EDT 2010


ricardo delarosa [http://community.jboss.org/people/rdelarosa] replied to the discussion

"ClassCastException"

To view the discussion, visit: http://community.jboss.org/message/536742#536742

--------------------------------------------------------------
Hi  http://community.jboss.org/people/neshap Nenad , 

Where can I find more information about how do I load ProcessEngine ?
___
I changed the code to the following equivalent code:

Configuration configuration = new Configuration();
configuration = configuration.setResource("jbpm.cfg.xml");
processEngine = configuration.buildProcessEngine();
___
The exception thrown is:
java.lang.ClassCastException: org.jbpm.pvm.internal.processengine.ProcessEngineImpl cannot be cast to 
    at org.jbpm.pvm.internal.cfg.ConfigurationImpl.buildProcessEngine(ConfigurationImpl.java:81)
    at co.com.gestiontek.supercade.util.ManejadorJBPM4.<init>(ManejadorJBPM4.java:52)
    at co.com.gestiontek.supercade.action.workflow.RegistroTramite.init(RegistroTramite.java:100)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
     at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
_____________________________________

The content of the file named "jbpm.cfg.xml" is the following:

<?xml version="1.0" encoding="UTF-8"?>

<jbpm-configuration jndi-name="java:/ProcessEngine">

  <import resource="jbpm.default.cfg.xml" />
  <import resource="jbpm.tx.hibernate.cfg.xml" />
  <import resource="jbpm.jpdl.cfg.xml" />
</jbpm-configuration>
_______
Thank you in advance,
Ricardo

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/536742#536742]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100410/02e5b6bf/attachment.html 


More information about the jboss-user mailing list