problem with Tomcat 6.x
---------------------------------------
INFO: validateJarFile(E:\Program Files\Apache Software Foundation\apache-tomcat-6.0.33\webapps\nbmdsTom\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
If you got the following error message for all jsp's and servlet's in your web application with the above INFO on server screen
org.apache.jasper.JasperException: java.lang.NullPointerException
java.lang.NullPointerException
org.apache.jsp.index_jsp._jspInit(index_jsp.java:22)
Answer
----------------------------------------
Just Remove the servlet-api.jar and jsp-api.jar files from WEB-INF\lib folder.
Reason
----------------------------------------
Those jar files was already there in Tomcat 6.x\lib folder.
so, Tomcat run-time environment gets confused with javax/servlet/Servlet.class from 2 jar files.
---------------------------------------
INFO: validateJarFile(E:\Program Files\Apache Software Foundation\apache-tomcat-6.0.33\webapps\nbmdsTom\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
If you got the following error message for all jsp's and servlet's in your web application with the above INFO on server screen
org.apache.jasper.JasperException: java.lang.NullPointerException
java.lang.NullPointerException
org.apache.jsp.index_jsp._jspInit(index_jsp.java:22)
Answer
----------------------------------------
Just Remove the servlet-api.jar and jsp-api.jar files from WEB-INF\lib folder.
Reason
----------------------------------------
Those jar files was already there in Tomcat 6.x\lib folder.
so, Tomcat run-time environment gets confused with javax/servlet/Servlet.class from 2 jar files.
Comments
Post a Comment