Netflix/Priam

priam-web.war won't deploy in tomcat 7

Closed this issue · 4 comments

May 9, 2014 9:46:18 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /opt/apache-tomcat-7.0.34/webapps/priam-web.war
May 9, 2014 9:46:19 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/tomcat/webapps/priam-web/WEB-INF/lib/servlet-api-2.5-20081211.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
May 9, 2014 9:46:24 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
May 9, 2014 9:46:24 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/priam-web] startup failed due to previous errors

I've confirmed that the offending jar, javax.servlet:servlet-api:2.5, IS included in the war file. I've also seen that it should be excluded as your build.gradle file has

       provided "javax.servlet:servlet-api:2.5"

not sure why it's getting included, but it won't run in tomcat 7.

mcacker,

After removing this, does it work for you? Please go ahead to submit a Pull Request for this fix if you are confirmed. Thanks.

After the servle-api.jar file is removed from the war file, it will run under tomcat7, however, I was only able to remove the file manually, I couldn't figure out what was wrong with the gradle build. It's declared as a provided dependency, and should not be included, but it is.

Hi,

To see how Gradle resolves the dependencies, please run gradle's dependencyInsight on the aforementioned resource.

Thanks

If another dependency has put it on compile or runtime it might go into the
war.

On Tue, Jun 2, 2015 at 1:06 PM, Vinh Nguyen notifications@github.com
wrote:

Hi,

To see how Gradle resolves the dependencies, please run gradle's
dependencyInsight on the aforementioned resource.

Thanks


Reply to this email directly or view it on GitHub
#335 (comment).