https://bz.apache.org/bugzilla/show_bug.cgi?id=58766

--- Comment #4 from Konstantin Kolinko <knst.koli...@gmail.com> ---
It sounds like a duplicate of bug 57823.


By the way, regarding
org.apache.catalina.startup.ContextConfig.processAnnotationsFile()
method:

1. This method needs debug logging. (There is none at the moment).
2. The following condition needs first && second swapped:

>> } else if (file.canRead() && file.getName().endsWith(".class")) {

As can be seen from stacktrace in Comment 0, the "canRead()" call is an I/O
operation. This is more expensive than a filename check.


> java.lang.Thread.State: RUNNABLE
>   at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:-1)
>   at java.io.File.canRead(File.java:768)
>   at 
> org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1992)
>   at 
> org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988)
>   at 
> org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988)
>   <the same line (ContextConfig.java:1988) repeated a dozen of times...>

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to