Dear Christopher, The solution is fine, but first thing we need to identify the root cause. If it is the problem of "loading a JSP-based class file." Why it is happened in production environment? Any solid reason ?
Regads, Rahul Kumar Singh -----Original Message----- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, July 22, 2015 7:21 PM To: Tomcat Users List Subject: Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Rahul, On 7/21/15 11:02 PM, Rahul Kumar Singh wrote: > Dear Christopher, >> Any quotas on the filesystem? > No. >> Any idea which class it's having trouble loading? > > I have no idea on this but I have got the below exception: > > ====================================================================== ==== > > 2015-07-17 09:53:50,860 <ERROR> javax.servlet.ServletException: > java.lang.ClassFormatError: Truncated class file at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli cationFilterChain.java:303) > > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:208) > ==================================================================== Well, > it looks like you are having a problem loading a JSP-based class file. You could write a script to try to load each JSP .class file to see which one is broken. Something like this: $ for class in $(find . -name "*.class") ; \ do \ echo $class \ javap -classpath [classpath] $(sed -e 's/\.class//' ) \ done > For more reference there is some logs from Catalina.out after tomcat > startup. > > Jul 17, 2015 11:58:33 AM > org.apache.jasper.compiler.TldLocationsCache tldScanJar INFO: At least > one JAR was scanned for TLDs yet contained no TLDs. Enable debug > logging for this logger for a complete list of JARs that were scanned > but no TLDs were found in them. Skipping unneeded JARs during scanning > can improve startup time and JSP compilation time. This is unrelated to your real problem. - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJVr5+oAAoJEBzwKT+lPKRY54YQAJWJpc9wtHX5jZQS2eX0EqDD nPvlA9P7w3Oc27w8cTMDdLCXFT60ZqnNFjO3h3UHspJ0B6vBhn1xBUTePRzlnFPn 0qdcTVuTgyAfQzBPh1luqXaEFMi815OV+ptzte8PQtkfcZbwzuAmbt//i4SJdWPt 2ES2FMQlaydv+LpQwUst11eXJtvsLXixKBWlD3BkplZ1tWkHl0xsWHlV7E8qupAG LslCIV8hVLxYH1rOHbvirtmxDVpaqWGVEbFKq5oT/nBwDRmZWhyB+YcjOluY1KBl 1OtbhEAOuBjYMrtiYvc+gT2FcGk73U0V/diL5niq5LhzsoSwvthRTSp/abSZlzhd PF5RjtyS5AygdwqJMkYFeIcl3Di3/eFQhq/FQobdcuOXO+QcL4TMUTjrFc80rlE6 hIaQM0XgJbr7aIzLBDsY0WvksGnROwPt6PAlWBisSN9GAD/P2oqUNSzkQmH7UvPp gF2pGhLZvamNsWqcq+XUfrE2OwGrUsGfHmlxwdXg6ZbWpZ900rVJmLOSfg3xLW8x lYTKNofdofrZBX93ahp4/xK/UjmBH/ORP7JzXIuirhct3DvDnACPt0JC+WrVKWee N6aWxKJIIao5YIcT6h3wKY5Oo8Buakteds0xGmTbhzeAdc3oRxyqYQ/jyiRfjsNL issppLvjG+tCLBboK+3+ =a0Du -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NEC or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NEC or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. . -----------------------------------------------------------------------------------------------------------------------