Alireza Fattahi
Alireza Fattahi

Reputation: 45553

Tomcat 8 how to set jarsToSkip

We are using Tomcat 7.0 and we want to switch to tomcat 8. There was a parameter in Tomcat 7.0 org.apache.catalina.startup.ContextConfig.jarsToSkip but it does not work in tomcat 8.0.

Any idea ?!

Long Story

Our web application provides some web-services. We used the webservices-rt-2.3.1.jar to implement web services. The jar has a servlet named WSServletContainerInitializer which extends ServletContainerInitializer this auto starts by Tomcat. This was not what we wanted, so we used the org.apache.catalina.startup.ContextConfig.jarsToSkip=webservices-rt-2.3.1.jar to force Tomcat to skip this jar.

Upvotes: 2

Views: 2994

Answers (1)

Christopher Schultz
Christopher Schultz

Reputation: 20862

You may be looking for the JarScanFilter which is new in Tomcat 8. It's much more flexible than the all-encompassing jarsToSkip setting in Tomcat 7.

Upvotes: 5

Related Questions