On Wed, Dec 17, 2014 at 2:43 AM, Mark Thomas <ma...@apache.org> wrote: > > On 16/12/2014 18:00, Christopher Schultz wrote: > > Nan, > > > > On 12/16/14 5:37 AM, Nan Ge wrote: > >> I'm using Tomcat8. I'm not quite understand about the description > >> of 'scanAllDirectories' attribute of the <JarScanner> component. > >> The doc says if this attribute is set true, 'any directories found > >> on the classpath will be checked to see if they are expanded JAR > >> files. ... Tomcat determines if a directory is an expanded JAR file > >> by looking for a META-INF sub-directory'. > > > >> Does it mean that we could extract the content of a JAR > >> file(including the META-INF dir) to a folder under /WEB-INF/lib or > >> /WEB-INF/classes(with unpackWAR=true) of my web application, and > >> Tomcat will load associated classes, which were originally in the > >> JAR, from this folder? > > > > I haven't tried, but I would guess that it would only work under > > WEB-INF/lib and not WEB-INF/classes since WEB-INF/classes isn't > > expected to ever contain JAR files (at least not ones that are > > automatically added to the classpath, like .jar files in WEB-INF/lib > are). > > I see the logic behind the guess but it is wrong. This option won't work > for either of those directories. > ? > Mark > > Thanks Mark!
Then how to make this 'scanAllDirectories' attribute work, or do you mean it has been discarded in Tomcat8.0 ? Nan