https://bz.apache.org/bugzilla/show_bug.cgi?id=57875
Bug ID: 57875 Summary: Classloading guide on Servlet API classes Product: Tomcat 8 Version: 8.0.21 Hardware: PC Status: NEW Severity: normal Priority: P2 Component: Documentation Assignee: dev@tomcat.apache.org Reporter: psf...@clustertech.com https://tomcat.apache.org/tomcat-8.0-doc/class-loader-howto.html The guide writes Any JAR file that contains Servlet API classes will be explicitly ignored by the classloader — Do not include such JARs in your web application. I try including javaee-api-7.0.jar in my webapp in Tomcat 8. It contains Servlet API classes as well as other JEE API such as JPA and JTA. My webapp which depends on JPA and JTA runs normally, which implies the classes from javaee-api-7.0.jar are loaded. When the same webapp is deployed in Tomcat 7, the following error is shown and my webapp failed to deploy because of NoClassDefFoundError of some JPA/JTA class. INFO: validateJarFile(C:\apache-tomcat-7.0.54\webapps\ROOT\WEB-INF\lib\javaee-api-7.0.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class It appears that the classloader is changed in Tomcat 8 and that restriction is lifted. If so, please update the guide accordingly. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org