We're updating the issue view to help you get more done. 

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 :

1 2 3 4 5 6 PM org.apache.tomcat.util.IntrospectionUtils setProperty AVERTISSEMENT: IntrospectionUtils: InvocationTargetException for class org.apache.catalina.webresources.DirResourceSet internalPath=javax.ws.rs-api-2.0.jar") java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

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

Status

Assignee

Thomas Collignon

Reporter

Thomas Collignon

Components

Fix versions

Affects versions

1.4.17

Priority

Medium