Community

Unable to load JBPM 4.3 in spring web application context

created by Jaber C. Mourad in jBPM - View the full discussion

Hi,

 

I have a trouble to deploy my application in web context on tomcat, I get a classcast exception :

2010-05-18 15:25:19,285 [ERROR] org.springframework.web.context.ContextLoader  - Context initialization failed
java.lang.ClassCastException: org.jbpm.jpdl.internal.model.JpdlProcessDefinition cannot be cast to org.jbpm.pvm.internal.model.ProcessDefinitionImpl
        at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.execute(ProcessDefinitionQueryImpl.java:72)
        at org.jbpm.pvm.internal.query.AbstractQuery.untypedList(AbstractQuery.java:71)
        at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.list(ProcessDefinitionQueryImpl.java:141)
        at org.jbpm.pvm.internal.repository.ProcessDeployer.checkKey(ProcessDeployer.java:134)
        at org.jbpm.pvm.internal.repository.ProcessDeployer.deploy(ProcessDeployer.java:93)
        at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:46)
        at org.jbpm.pvm.internal.repository.RepositorySessionImpl.deploy(RepositorySessionImpl.java:61)
        at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:47)
        at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:33)
        at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
        at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(SpringCommandCallback.java:45)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
        at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:55)
        at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
        at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
        at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
        at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:91)

...

 

It's very strange, because in unit test I have never get that !

 

Have you got any idea ?

 

Regards

Reply to this message by going to Community

Start a new discussion in jBPM at Community