Basically I'm not able to overcome this error, trying time and again.
I have ported my current javaee project to maven, made a war from maven 3.0.3, which doesnt seem to deploy in tomcat 6.0.10.I am using jdk 1.7 (though, i get the same error using jdk 1.6 and tomcat 7)
The error it throws is
Mar 15, 2013 10:24:39 AM org.apache.catalina.loader.WebappClassLoader validateJa
rFile
INFO: validateJarFile(D:\apache-tomcat-6.0.10\webapps\Name\WEB-INF\lib\
javaee-api-5.0-1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Off
ending class: javax/servlet/Servlet.class
Mar 15, 2013 10:24:39 AM org.apache.catalina.loader.WebappClassLoader validateJa
rFile
INFO: validateJarFile(D:\apache-tomcat-6.0.10\webapps\Name\WEB-INF\lib\
servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offe
nding class: javax/servlet/Servlet.class
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further detail
s.
Inside Cache Manager Initialization new ....
java.lang.NullPointerException
Mar 15, 2013 10:24:59 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 15, 2013 10:24:59 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/Name] startup failed due to previous errors
When i tried to find out about the error "jar not loaded. See Servlet Spec 2.3, section 9.7.2", it said that the preferred jar must be present at both copilation and runtime, so i added servlet-api-2.5.jar inside the pom.xml. javaee-api-5.0.1.jar was already there.
After adding the dependency, i get the same error.
Anyone got any idea about this weird behaviour.