-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

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 have tried this, but it seems not to work.

What does your configuration look like? What about your directory
structure?

> So what does 'expanded JAR' mean? And how could we make use of it?

foo.jar - a JAR file
foo     - a directory containing everything that foo.jar contains

That second one is an expanded JAR file.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUkHNHAAoJEBzwKT+lPKRYQDAP/jkHJMhYEGRhJxOGsS7VRSye
fWi/LIar5FChw9EEeuLQJ80V8HKYNTOzjSPB++usPZjlnmCtlZhRYJN/kLq4Dl3m
tRtW49d+o3JSlRtMTWfCCCmi5r/aE0WnyOuapyccj5145+bQLrDfJx8LW7p5KeO0
XK3MbWYdgynjmsv1r+jD6PZN+T2+sHu6aGYipkNUmtV5Zq+HcSZ0RAnr3JYLl/Kp
nKCExH7ePrrHjbCu+B+FHIe8G7lXUYVMVCavCenveUDtAaDLf/ubWjSLhUIwLpRm
YOtzly0z9IhWVTGWr+rWqOYaT1g2HHdx+2bqm0xOaRTbmtOOzs4TljpVXDa6QkO1
nR+twa6o63cpl4p5nvvSzCk7P3E4evtcvIsMBcI7MJ7khH5yHTiNXRa80QTnFJVS
5O62rcF/0m5j9LP5kMLKqjfaGJc9R5hFgmQB0l0aN70wiisiaMZYD96AUMjA2rzE
/Fp4t3QWKwRatuByW6apBda0R4VPOY4V3trMpji8lTV6cGiDUm5OoYMK37f1wzDE
LtDs2ZAQ/vg1ujl85AhoL5vr20eNaafHRfnOXvL0IooHdbTr9xPrfXLxDanl7Jdj
3PeBN9dXTpGeb38HHcfqBb3k+/me9RI6V6bIleIU2ZvVxXGdm/FWgwZFbXiJE38s
sju716CMKTzjrg/vuqu1
=QNX0
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to