On 9 February 2016 23:44:09 GMT+00:00, Andy Smith <harley74...@yahoo.com.INVALID> wrote: >Hi, >I am currently running Tomcat 8.0.30 on a Red Hat Linux 64 bit O/S >(2.6.18). My question is, I hope, simple. I want to tell Tomcat to look >in a child directory of the WEB-INF/lib directory for jar files that >contain classes my web app requires. For example, I have four main jar >files that reside in the WEB-INF/lib directory. Under the WEB-INF/lib >directory I have a directory that contains jar files that support one >or more of the main jar files. However no matter what I put in the >MANIFEST.MF file the jar files in the child directories are not >located. Here is what I currently have in my META-INF/MANIFEST.MF file >for the web app context. I only have one library(jar file) at this >point because I was trying to limit the variables and this is the jar >file that contains the class that can not be located. >Manifest-Version: 1.0Class-Path: libraries/commons-fileupload-1.2.2.jar >I have also tried the KV Pair, Dependencies: >libraries/commons-fileupload-1.2.2.jar. >When I looked at the Tomcat 8 source code, I believe it is trying to >read the MANIFEST.MF file. So my question is, can I use the MANIFEST.MF >file to tell Tomcat to look in child directories of the web app context >or am I limited to the aWEB-INF/lib directory only for supporting jar >files?
As per the Servlet specification, Tomcat only looks in WEB-INF/lib for JAR files packaged with a web application. You could use the new (in Tomcat 8) resources implementation to map other files (i.e. JARS) into WEB-INF/lib but I'd suggest that it is easier to change the build process to put all the JARs in the right place. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org