Problem starting camunda-bpm-tomcat-7.20 with camunda-bpm-mail-core-7.20.0.jar

Dear all,

I have a setup as follows:

  • Rocky Linux 9.3
  • java-17-openjdk-17.0.10.0.7-2.el9.x86_64
  • camunda-bpm-tomcat-7.20.0.zip installed in a directory

I want to use the functionalities of camunda-platform-7-mail, so I installed in the /lib directory:
a) jakarta.mail-api-2.1.2.jar
b) slf4j-api-2.0.11.jar (replacing the previous version)
c) angus-mail-2.0.2.jar
d) camunda-bpm-mail-core-7.20.0.jar

Starting the server I receive the following error:
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)
Caused by: java.lang.NoClassDefFoundError: jakarta/activation/DataSource
at org.camunda.bpm.extension.mail.send.SendMailProvider.createConnectorInstance(SendMailProvider.java:27)
… at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.init(ProcessEngineConfigurationImpl.java:1135)
at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:1126)
at org.camunda.bpm.container.impl.jmx.services.JmxManagedProcessEngineController.start(JmxManagedProcessEngineController.java:38)
at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.startService(MBeanServiceContainer.java:77)
at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.startService(MBeanServiceContainer.java:63)
at org.camunda.bpm.container.impl.deployment.StartProcessEngineStep.performOperationStep(StartProcessEngineStep.java:119)
at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:120)
at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.executeDeploymentOperation(MBeanServiceContainer.java:160)
at org.camunda.bpm.container.impl.spi.DeploymentOperation$DeploymentOperationBuilder.execute(DeploymentOperation.java:216)
at org.camunda.bpm.container.impl.tomcat.TomcatBpmPlatformBootstrap.deployBpmPlatform(TomcatBpmPlatformBootstrap.java:83)
at org.camunda.bpm.container.impl.tomcat.TomcatBpmPlatformBootstrap.lifecycleEvent(TomcatBpmPlatformBootstrap.java:61)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:907)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
… 7 more
Caused by: java.lang.ClassNotFoundException: jakarta.activation.DataSource
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)

If I remove the .jar, the server starts up again.

What I need to change to finally getting the tomcat running?
Thank you in advance for your help,
Giovanni

HI,
I was able to solve the problem adding in the /lib directory of Apache the module
jakarta.activation-api-2.1.2.jar.
And the problem disappeared.
Bye,
Giovanni

Thank you for sharing the solution with us.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.