Warning in startup Tomcat 8 log when using PostResources jar

Description

If we have a tomcat 8 server.xml contains PostResources who link jar file, cargo will generate this :

<PostResources base="/Volumes/Macintosh_HD_2/Work/mavenRepository/javax/ws/rs/javax.ws.rs-api/2.0" className="org.apache.catalina.webresources.DirResourceSet" internalPath="javax.ws.rs-api-2.0.jar" webAppMount="/WEB-INF/lib"/>

And at tomcat startup, it generate a warning log like this :

To avoid this, the configuration must be like that (whitout declaration of internalPath) :

<PostResources base="/Volumes/Macintosh_HD_2/Work/mavenRepository/javax/ws/rs/javax.ws.rs-api/2.0" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/WEB-INF/lib"/>

I will submit a pull request in github to fix this.

Thanks you

Assignee

Thomas Collignon

Reporter

Thomas Collignon

Components

Fix versions

Affects versions

Priority

Medium
Configure