Tomcat 10.x

Hi everyone.
I can’t run camunda-bpm-ee-tomcat-7.13.0-ee trial version withTomcat 10.0.16.
In full distribution version of camunda there is Tomcat 9.0.52 and runs fine.

There is error while starting application:
SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [org.camunda.bpm.cockpit.impl.web.bootstrap.CockpitContainerBootstrap]
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)

i searched for solution and found this:

The jakarta.servlet.Servlet is part of Servlet API version 5.0 which in turn is part of Jakarta EE version 9. Your servlet is actually extending from javax.servlet.Servlet which in turn is part of an older JEE version which is actually not supported by your target runtime (Tomcat 10.x).
Stack overflow

So. in Tomcat 10 there is update for ServletApi from v4.0 to v5.0.
What do i do to run Camunda at Tomcat 10?

P.S. i am not java developer and i am using camunda as standalone application :frowning:

Hi @shadowofjustice
Just for your information, I do not see Tomcat 10 as supported Tomcat at the moment. Please share a solution if you find it.

Hello everyone,

With Camunda 7.20.0 support for Spring Boot 2.x (https://docs.camunda.org/enterprise/announcement/#camunda-platform-7-20) ends. Spring Boot 3.x uses the jakarte namespace (Java EE 10) which does not run on Tomcat 9.x. But there is still no support for Tomcat 10 (https://docs.camunda.org/manual/7.20/introduction/supported-environments/#container-managed-process-engine-and-camunda-cockpit-tasklist-admin).

How can I run Camunda 7.20.0 with Spring Boot 3.x if I am forced to use Tomcat? Is there a solution for this setup?

Hi @hizr,

I guess you already received an answer to your question in GitHub, but here are the details for the rest as well.

Camunda 7.20.0 supports Spring Boot 3.1 (and all implications by this, including Spring 6 and embedded Tomcat 10). So if you use Camunda Spring Boot Starter 7.20 or Camunda Run 7.20, Tomcat 10 will be used as server.
We didn’t explicitly listed this on the supported environment and Spring Boot version compatibility pages.

Support for Tomcat 10 is not mentioned under Supported Environments | docs.camunda.org as there are listed only the container-managed scenarios (Spring Boot uses embedded Tomcat server).

Here is the feature request for supporting Tomcat in non embedded setup: Support Tomcat 10 · Issue #2471 · camunda/camunda-bpm-platform · GitHub
Please note, the ticket has not been scheduled yet.

Best,
Yana

1 Like