Upgrade camunda from 7.11 to 7.15

Hi,

I am upgrading camunda from 7.11.0 to 7.15.0. But I am unable to start the process engine…Getting below error.

2021-07-08 14:45:42,814 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool – 68) MSC000001: Failed to start service org.camunda.bpm.platform.process-engine.default: org.jboss.msc.service.StartException in service org.camunda.bpm.platform.process-engine.default: java.lang.NoClassDefFoundError: org/camunda/connect/spi/Connector
at org.camunda.bpm.wildfly.camunda-wildfly-subsystem@7.15.0//org.camunda.bpm.container.impl.jboss.service.MscManagedProcessEngineController$1.run(MscManagedProcessEngineController.java:101)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:834)
at org.jboss.threads@2.3.3.Final//org.jboss.threads.JBossThread.run(JBossThread.java:485)
Caused by: java.lang.NoClassDefFoundError: org/camunda/connect/spi/Connector
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)
at java.base/java.lang.Class.privateGetPublicMethods(Class.java:3191)
at java.base/java.lang.Class.privateGetPublicMethods(Class.java:3197)
at java.base/java.lang.Class.privateGetPublicMethods(Class.java:3197)
at java.base/java.lang.Class.getMethods(Class.java:1904)
at org.camunda.bpm.camunda-engine@7.15.0//org.camunda.bpm.engine.impl.util.ReflectUtil.getSingleSetter(ReflectUtil.java:285)
at org.camunda.bpm.camunda-engine@7.15.0//org.camunda.bpm.container.impl.metadata.PropertyHelper.applyProperty(PropertyHelper.java:81)
at org.camunda.bpm.camunda-engine@7.15.0//org.camunda.bpm.container.impl.metadata.PropertyHelper.applyProperties(PropertyHelper.java:110)
at org.camunda.bpm.wildfly.camunda-wildfly-subsystem@7.15.0//org.camunda.bpm.container.impl.jboss.service.MscManagedProcessEngineController.startProcessEngine(MscManagedProcessEngineController.java:177)
at org.camunda.bpm.wildfly.camunda-wildfly-subsystem@7.15.0//org.camunda.bpm.container.impl.jboss.service.MscManagedProcessEngineController$2.run(MscManagedProcessEngineController.java:135)
at org.camunda.bpm.wildfly.camunda-wildfly-subsystem@7.15.0//org.camunda.bpm.container.impl.jboss.service.MscManagedProcessEngineController$2.run(MscManagedProcessEngineController.java:133)
at org.camunda.bpm.wildfly.camunda-wildfly-subsystem@7.15.0//org.camunda.bpm.container.impl.jboss.util.Tccl.runWithTccl(Tccl.java:54)
at org.camunda.bpm.wildfly.camunda-wildfly-subsystem@7.15.0//org.camunda.bpm.container.impl.jboss.util.Tccl.runUnderClassloader(Tccl.java:46)
at org.camunda.bpm.wildfly.camunda-wildfly-subsystem@7.15.0//org.camunda.bpm.container.impl.jboss.service.MscManagedProcessEngineController.startInternal(MscManagedProcessEngineController.java:133)
at org.camunda.bpm.wildfly.camunda-wildfly-subsystem@7.15.0//org.camunda.bpm.container.impl.jboss.service.MscManagedProcessEngineController$1.run(MscManagedProcessEngineController.java:94)
… 8 more
Caused by: java.lang.ClassNotFoundException: org.camunda.connect.spi.Connector from [Module “org.camunda.bpm.camunda-engine” version 7.15.0 from local module loader @42f48531 (finder: local module finder @a776e (roots: C:\Users\pbaddi\SMP\wildfly-18.0.1-7.Final\modules,C:\Users\pbaddi\SMP\wildfly-18.0.1-7.Final\modules\system\layers\base,C:\Users\pbaddi\SMP\wildfly-18.0.1-7.Final\modules\system\add-ons\keycloak))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
… 24 more

But i can see this class in wildfly-18.0.1-7.Final\modules\org\camunda\connect\camunda-connect-core\main\camunda-connect-core-1.5.2.jar\org\camunda\connect\spi.

In standalone.xml, structure of process engine looks like this.

<subsystem xmlns="urn:org.camunda.bpm.jboss:1.1">
            <process-engines>
                <process-engine name="default" default="true">
			        <datasource>java:/jdbc/Modeling</datasource>
                    <history-level>audit</history-level>
                    <properties>
            <property name="jobExecutorAcquisitionName">default </property>
            <property name="isAutoSchemaUpdate">false </property>
            <property name="authorizationEnabled">true</property>
            <property name="jobExecutorDeploymentAware">false</property>
            <property name="jobExecutorActivate">false</property>
            <property name="defaultSerializationFormat">application/json</property>
            <property name="authorizationCheckRevokes">never</property>
            <property name="defaultUserPermissionNameForTask">TASK_WORK</property>
            <property name="dbMetricsReporterActivate"> false</property>
</properties>
                </process-engine>
            </process-engines>
            <job-executor>
        <core-threads>200</core-threads>
        <max-threads>700</max-threads>
        <queue-length>200</queue-length>
        <keepalive-time>100</keepalive-time>
        <job-acquisitions>
            <job-acquisition name="default">
                <acquisition-strategy>SEQUENTIAL</acquisition-strategy>
                <properties>
                    <property name="lockTimeInMillis">300000 </property>
                    <property name="waitTimeInMillis"> 5000  </property>
                    <property name="maxJobsPerAcquisition"> 1000</property>
                </properties>
            </job-acquisition>
        </job-acquisitions>
</job-executor>
 </subsystem>

I tried adding this plugin in pom.xml, but not working

  •  <plugin>  
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-war-plugin</artifactId>
              <configuration>
                 <archive>
                    <manifestEntries>
                       <Dependencies>org.camunda.bpm.camunda-engine</Dependencies>
                    </manifestEntries>
                 </archive>
              </configuration>
            </plugin>
    

Could some one help to figure out what is issue.

Regards,
Poornima

Could some one help me on this issue.

Hi @pbaddi,

Can you format the logs to make them more readable? You can take a look at the Style Guide?. It’ll help you understand how to format code correctly and also help you create questions that are easy to understand and also easier to answer :slight_smile:

Best,
Nikola

1 Like