AnsweredAssumed Answered

java.lang.NoClassDefFoundError: org.activiti.spring.SpringProcessEngineConfiguration

Question asked by madhunatarajan on Jan 8, 2014
Latest reply on Jan 13, 2014 by madhunatarajan
I am trying to run the activity in websphere, which is working in jboss.
     <bean id="transactionManager"  class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
    <property name="dataSource" ref="dataSource" />
    </bean> 
    <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
     <!–  <property name="deploymentResources" value="classpath*:ehrActiviti.bpmn20.xml" />
     <property name="deploymentResources" value="classpath*:CorrespondenceGeneratorProcess.bpmn20.xml" />  –>
      <property name="createDiagramOnDeploy" value="true" />
      <property name="databaseType" value="oracle" />
      <property name="dataSource" ref="dataSource" />
      <property name="transactionManager" ref="transactionManager" />
      <property name="databaseSchemaUpdate" value="true" />
      <property name="jobExecutorActivate" value="false" />
     </bean>

When I tried to deploy in websphere, I get the following error,

    Caused by: org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [beanFactory]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'beanFactory' defined in URL [wsjar:file:/D:/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/MohanPW764Node01Cell/eCAMS.ear/ecams.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.FileSystemXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineConfiguration' defined in class path resource [springActivitiContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org.activiti.spring.SpringProcessEngineConfiguration (initialization failure)
   at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:386)

I tried adding the jar files in the D:\IBM\Websphere\lib\,
activation 1.1 jar, mybatis-3.1.1.jar, activiti-spring-5.12.1.jar, activiti-engine-5.12.1.jar and also have added these files in the web-inf-lib file.

I am having an urgent requirement to finish this.

Can anybody please guide me?.

Thanks

Outcomes