Re: configuring jarscanner in 8.5 to ignore entire directory

2017-11-01 Thread Ray Holme
Andre: cute!
As for jar scanning, I have been playing with that. I don't think you need full 
pathnames in the pattern (perhaps in the context file, but not in the 
properties file), but not sure.
I did two things and am very pleased with the result.
 a) in conf/context.xml:

   
b) in catalina.properties
   1) sorted the nasty list for TLD scans  that comes with the distribution (8) 
so I could read it and search
   and found one pattern that was off (cannot remember which one but it had 
and extra "_" before the "*", I think)   - it was a jar in the standard 
distribution .../lib/... dist.
   2) and then added all the jars I use at the end (no full path needed for 
sure)
The TLD startup time went from half a minute to under a second.
Good luck!
 

On Tuesday, October 31, 2017 4:44 PM, André Warnier (tomcat) 
 wrote:
 

 On 31.10.2017 20:16, Chris Cheshire wrote:
> PS JarScannerFilter above is a copypasta error, I do have the correct
> tag in my config with the same result
>
As, I presume, is the new Italian delicacy above ?



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



   

Re: configuring jarscanner in 8.5 to ignore entire directory

2017-10-31 Thread tomcat

On 31.10.2017 20:16, Chris Cheshire wrote:

PS JarScannerFilter above is a copypasta error, I do have the correct
tag in my config with the same result


As, I presume, is the new Italian delicacy above ?



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



Re: configuring jarscanner in 8.5 to ignore entire directory

2017-10-31 Thread Chris Cheshire
PS JarScannerFilter above is a copypasta error, I do have the correct
tag in my config with the same result

On Tue, Oct 31, 2017 at 3:03 PM, Chris Cheshire  wrote:
> How do I tell the jar scanner to ignore my entire WEB-INF/lib
> directory for the pluggability scan and tld scan?
>
> I have in my context.xml
>
> 
>pluggabilitySkip="${tomcat.util.scan.StandardJarScanFilter.jarsToSkip},*/WEB-INF/lib/*.jar"
>
> tldSkip="${tomcat.util.scan.StandardJarScanFilter.jarsToSkip},*/WEB-INF/lib/*.jar"
> />
> 
>
>
> the JarScanner completely ignores it as evidenced by the 20+ log
> messages along the lines of
>
> org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD
> files were found in
> [file:/home/sandbox1/tomcat/webapps/p/WEB-INF/lib/java-image-scaling-0.8.6.jar].
> Consider adding the JAR to the
> tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in
> CATALINA_BASE/conf/catalina.properties file
>
>
> If I start listing each individual jar file it stops scanning them. Is
> there no way to just exclude an entire directory?

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