2016-02-10 2:44 GMT+03:00 Andy Smith <harley74...@yahoo.com.invalid>: > 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 WEB-INF/lib directory only for supporting jar files?
IIRC, the appname.war/META-INF/MANIFEST.MF file is processed to get cryptography signatures for the code. (In Tomcat sources: Loaded by o.a.c.webresources.DirResourceSet.initInternal() ) The "Class-Path" entry in appname.war/META-INF/MANIFEST.MF file is not processed by Tomcat. It may make sense if war is part of something else (an EAR), but it does not make sense when using a WAR file alone. For standalone Tomcat that is not used as a component of a larger Java EE server such feature is not needed and is not implemented. For the rest - see Mark's answer. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org