2014-11-06 19:33 GMT+03:00 Matthias Keller <matthias.kel...@ergon.ch>:
> Hi
>
> We have a spurious problem which still happened quite a few times but is not
> really reproducible since it only occurs on every 1000. startup or
> something.
> The effect is that tomcat scans all class files but somewhere something goes
> wrong and it tries to load an invalid class name which is often a
> combination of two effectively existing class names.
> It is confimed to occur on 7.0.55 with Java7, however it's likely not to be
> bound to a single version as we've seen it at different sites lately.
>
> example with to garbled classes: (3.class being the first, which must come
> from SomeClass$3.class and the second one being something awefully
> beautiful:
> ConfigEdiAtourtAhpepnltiiccaattiioonn$SAtpaptlei$cIadteinotniCfo^@^@iigeLro.acdlLaissstener.class
> )
>
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.55
> Oct 28, 2014 10:13:15 AM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive /opt/tomcat/webapps/test-admin.war
> Oct 28, 2014 10:13:22 AM org.apache.catalina.startup.ContextConfig
> processAnnotationsJndi
> SEVERE: Unable to process resource element
> [jndi:/localhost/test-admin/WEB-INF/classes/ch/something/3.class] for
> annotations
> java.io.FileNotFoundException:
> jndi:/localhost/test-admin/WEB-INF/classes/ch/something/3.class
>         at
> org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:389)
>         at
> org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:1994)
>         at
> org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:1986)
>         at
> org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:1986)
>         at
> org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:1986)
>         at
> org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:1986)
>         at
> org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1902)
>         at
> org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1298)
>         at
> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:876)


At that place Tomcat essentially asks you hard drive for the list of
files in WEB-INF/classes directory and opens each file that has name
ending with ".class".

Essentially the directory listing returns some garbage. I do not think
that Tomcat code is responsible for that.

Is your hardware OK? Is it a local harddrive, or a network one?

> https://issues.apache.org/bugzilla/show_bug.cgi?id=57173

Bug 57173 is irrelevant here. (Bug 57173 occurs when parsing a class
file. In this case the parsing has not been started yet. It failed
when trying to open the file).


Best regards,
Konstantin Kolinko

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

Reply via email to