Error starting jenkins in linux container incus

Hi, I have problem with starting jenkins in debian 12 container (lxd, incus)
Debian 12 container.
On this container:
tomcat 10.1.28
openjdk-17,21
Generic java package(.war) 2.474
Tomcat is starting with no problem.
When starting jenkins i get errors.
What could causig that errors.

02-Sep-2024 08:19:02.393 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [jenkins.util.SystemProperties$Listener]
       java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
               at java.base/java.lang.ClassLoader.defineClass1(Native Method)
               at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027)
               at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
               at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2302)
               at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:787)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1296)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1144)
               at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:491)
               at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:473)
               at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143)
               at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3924)
               at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4424)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:599)
               at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:571)
               at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:654)
               at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:969)
               at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
               at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
               at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
               at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123)
               at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:771)
               at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:423)
               at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1629)
               at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
               at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:109)
               at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:385)
               at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:332)
               at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:776)
               at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1203)
               at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1193)
               at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
               at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
               at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:749)
               at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:203)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.StandardService.startInternal(StandardService.java:415)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:874)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.startup.Catalina.start(Catalina.java:757)
               at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
               at java.base/java.lang.reflect.Method.invoke(Method.java:580)
               at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
               at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
       Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContextListener
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1332)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1144)
               ... 49 more
02-Sep-2024 08:19:02.394 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [hudson.WebAppMain]
       java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
               at java.base/java.lang.ClassLoader.defineClass1(Native Method)
               at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027)
               at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
               at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2302)
               at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:787)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1296)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1144)
               at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:491)
               at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:473)
               at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143)
               at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3924)
               at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4424)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:599)
               at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:571)
               at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:654)
               at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:969)
               at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
               at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
               at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
               at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123)
               at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:771)
               at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:423)
               at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1629)
               at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
               at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:109)
               at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:385)
               at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:332)
               at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:776)
               at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1203)
               at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1193)
               at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
               at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
               at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:749)
               at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:203)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.StandardService.startInternal(StandardService.java:415)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:874)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.startup.Catalina.start(Catalina.java:757)
               at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
               at java.base/java.lang.reflect.Method.invoke(Method.java:580)
               at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
               at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
       Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContextListener
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1332)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1144)
               ... 49 more
02-Sep-2024 08:19:02.394 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [jenkins.JenkinsHttpSessionListener]
       java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionListener
               at java.base/java.lang.ClassLoader.defineClass1(Native Method)
               at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027)
               at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
               at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2302)
               at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:787)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1296)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1144)
               at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:491)
               at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:473)
               at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143)
               at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3924)
               at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4424)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:599)
               at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:571)
               at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:654)
               at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:969)
               at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
               at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
               at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
               at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123)
               at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:771)
               at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:423)
               at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1629)
               at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
               at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:109)
               at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:385)
               at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:332)
               at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:776)
               at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1203)
               at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1193)
               at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
               at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
               at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:749)
               at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:203)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.StandardService.startInternal(StandardService.java:415)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:874)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.startup.Catalina.start(Catalina.java:757)
               at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
               at java.base/java.lang.reflect.Method.invoke(Method.java:580)
               at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
               at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
       Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpSessionListener
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1332)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1144)
               ... 49 more
02-Sep-2024 08:19:02.394 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Skipped installing application listeners due to previous error(s)
02-Sep-2024 08:20:52.557 INFO [Catalina-utility-1] org.apache.catalina.core.ApplicationContext.log ContextListener: contextInitialized()
02-Sep-2024 08:20:52.557 INFO [Catalina-utility-1] org.apache.catalina.core.ApplicationContext.log SessionListener: contextInitialized()
02-Sep-2024 08:20:52.558 INFO [Catalina-utility-1] org.apache.catalina.core.ApplicationContext.log ContextListener: attributeAdded('StockTicker', 'async.Stockticker@14ba3d30')
02-Sep-2024 08:27:56.001 INFO [main] org.apache.catalina.core.ApplicationContext.log SessionListener: contextDestroyed()
02-Sep-2024 08:27:56.001 INFO [main] org.apache.catalina.core.ApplicationContext.log ContextListener: contextDestroyed()
02-Sep-2024 08:28:05.018 INFO [main] org.apache.catalina.core.ApplicationContext.log ContextListener: contextInitialized()
02-Sep-2024 08:28:05.018 INFO [main] org.apache.catalina.core.ApplicationContext.log SessionListener: contextInitialized()
02-Sep-2024 08:28:05.019 INFO [main] org.apache.catalina.core.ApplicationContext.log ContextListener: attributeAdded('StockTicker', 'async.Stockticker@d2387c8')
02-Sep-2024 08:28:30.437 INFO [main] org.apache.catalina.core.ApplicationContext.log SessionListener: contextDestroyed()
02-Sep-2024 08:28:30.437 INFO [main] org.apache.catalina.core.ApplicationContext.log ContextListener: contextDestroyed()
02-Sep-2024 08:32:44.114 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [jenkins.util.SystemProperties$Listener]
       java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
               at java.base/java.lang.ClassLoader.defineClass1(Native Method)
               at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
               at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
               at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2302)
               at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:787)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1296)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1144)
               at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:491)
               at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:473)
               at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143)
               at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3924)
               at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4424)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:599)
               at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:571)
               at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:654)
               at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:969)
               at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
               at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
               at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
               at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123)
               at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:771)
               at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:423)
               at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1629)
               at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
               at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:109)
               at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:385)
               at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:332)
               at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:776)
               at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1203)
               at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1193)
               at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
               at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
               at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:749)
               at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:203)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.StandardService.startInternal(StandardService.java:415)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:874)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.startup.Catalina.start(Catalina.java:757)
               at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
               at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.base/java.lang.reflect.Method.invoke(Method.java:569)
               at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
               at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
       Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContextListener
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1332)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1144)
               ... 51 more
02-Sep-2024 08:32:44.115 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [hudson.WebAppMain]
       java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
               at java.base/java.lang.ClassLoader.defineClass1(Native Method)
               at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
               at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
               at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2302)
               at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:787)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1296)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1144)
               at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:491)
               at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:473)
               at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143)
               at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3924)
               at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4424)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:599)
               at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:571)
               at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:654)
               at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:969)
               at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
               at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
               at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
               at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123)
               at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:771)
               at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:423)
               at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1629)
               at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
               at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:109)
               at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:385)
               at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:332)
               at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:776)
               at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1203)
               at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1193)
               at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
               at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
               at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
               at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:749)
               at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:203)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.StandardService.startInternal(StandardService.java:415)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:874)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
               at org.apache.catalina.startup.Catalina.start(Catalina.java:757)
               at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
               at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
               at java.base/java.lang.reflect.Method.invoke(Method.java:569)
               at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
               at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
       Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContextListener
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1332)
               at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1144)
               ... 51 more

tomcat 10 is not supported with 2.474 as tomcat 10 is implementing Java EE 9 but this version of Jenkins still requires EE8
Running Jenkins on tomcat is not a supported scenario. It might or might not work. The recommendation is to run Jenkins with the built in jetty by executing
java -jar jenkins.war (with optional parameters and java properties if required)