Best unofficial Apache Server developers community |
|
I've a web application configured with Maven which uses a library, also configured with Maven and when I package geronimo-servlet_3.0_spec-1.0.jar is included in WEB-INF/lib and I don't understand why. I check the library with mvn dependency:tree
I check my web app:
However when I run mvn:package the file gets included in WEB-INF/lib. When I run mvn tomcat:run I can see: INFO: validateJarFile(/home/stivlo/workspace/private/src/main/webapp/WEB-INF/lib/geronimo-servlet_3.0_spec-1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Why and how to avoid? Thank you.
posted via StackOverflow
|
|
 
|
Based from your pom.xml, the only dependency that might have dependency on geronimo servlet is
Can you try excluding the geronimo in this dependency?
|
|
 
|
Clearly, something has a dependency on that JAR file. If it is not showing up in the dependency tree, perhaps it is due to a dependency of your webapp WAR file on another WAR file that has this dependency. If that is the case, then you could get add an
|