# Jenkins 2.479.1 won't start - .NoClassDefFoundError: jakarta/servlet/ServletContextListener

**URL:** <https://community.jenkins.io/t/jenkins-2-479-1-wont-start-noclassdeffounderror-jakarta-servlet-servletcontextlistener/23894>\
**Category:** Ask a question\
**Created:** [November 25, 2024, 10:44pm UTC](https://community.jenkins.io/t/jenkins-2-479-1-wont-start-noclassdeffounderror-jakarta-servlet-servletcontextlistener/23894 "2024-11-25T22:44:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![devopsadmin](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@devopsadmin](https://community.jenkins.io/u/devopsadmin)\
**Post date:** [November 25, 2024, 10:44pm UTC](https://community.jenkins.io/t/jenkins-2-479-1-wont-start-noclassdeffounderror-jakarta-servlet-servletcontextlistener/23894/1 "2024-11-25T22:44:26Z")

</div>

We have been using Jenkins for 8+ years in my organization. We recently started testing our upgrade process from 2.462.1 to 2.479.1.

We also upgraded our Tomcat version from 9.0.91 to 9.0.97 and Java version from 17.0.12 to 17.0.13.

We have isolated the issue and found that in our environment the main issue is the Jenkins version. We swapped Java versions, Tomcat versions and Jenkins versions but we cannot find a setup that allows us to run 2.479.1 without getting the error below. We are able to run 2.462.1 in all situations. We also tried to run against Java 21.0.5. We have tried to run 2.479.1 as a clean fresh install to avoid any plug-in errors.

> SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [hudson.WebAppMain]  
> java.lang.NoClassDefFoundError: jakarta/servlet/ServletContextListener

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [November 25, 2024, 10:51pm UTC](https://community.jenkins.io/t/jenkins-2-479-1-wont-start-noclassdeffounderror-jakarta-servlet-servletcontextlistener/23894/2 "2024-11-25T22:51:02Z")

</div>

Version 2.479.1 doesn’t work with tomcat 9 as it requires jakarta ee 9.  
See [Servlet Container Support Policy](https://www.jenkins.io/doc/book/platform-information/support-policy-servlet-containers/)  
The recommended way to run Jenkins is with the built in Jetty server.
