java.lang.NoClassDefFoundError after updating to JWS 6 Tomcat

Solution Verified - Updated -

Issue

After migrating from open source tomcat to JWS 6.0, the applications are not comming up post migration with following java.lang.NoClassDefFoundError:

FINE [main] org.apache.catalina.util.Introspection.loadClass Failed to load class [com.example.filter.ExampleFilter]
    java.lang.NoClassDefFoundError: javax/servlet/Filter
[main] org.apache.catalina.util.Introspection.loadClass Failed to load class [org.springframework.web.servlet.DispatcherServlet]
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

Environment

  • Red Hat JBoss Web Server (JWS) 6.x
    • Tomcat 10.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content