You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nikitha Benny <ni...@gmail.com> on 2015/09/01 11:20:22 UTC
Blank page when browsing to Tomcat page
Hi All,
Tomcat stopped working (blank page when browsing to the website using
firefox).
Checking in the catalina.2015-04-21.log on one of the problematic servers,
following messages were seen :
*Apr 21, 2015 11:35:11 AM org.apache.catalina.startup.TldConfig tldScanJar*
*WARNING: Failed to process JAR
[jar:file:/cfmu/appcm/CFMU/CFMU_CONFIG!19.0.0.84/build_G!88.IP.L5/java/jar/ito_op_addon.jar!/
<http://19.0.0.84/build_G!88.IP.L5/java/jar/ito_op_addon.jar!/>] for TLD
files*
*java.util.zip.ZipException: zip file is empty*
*…*
*Apr 21, 2015 11:35:11 AM org.apache.catalina.core.StandardContext
startInternal*
*SEVERE: Context [/docs] startup failed due to previous errors*
The file on which it gives a warning exists and indeed empty.
# file /cfmu/appcm/CFMU/CFMU_CONFIG\!
19.0.0.84/build_G\!88.IP.L5/java/jar/ito_op_addon.jar
/cfmu/appcm/CFMU/CFMU_CONFIG!
19.0.0.84/build_G!88.IP.L5/java/jar/ito_op_addon.jar: empty
It’s clear that tomcat should NOT scan /cfmu/appcm.
It looks like, once we add the following line into context.xml that it
works again :
*<JarScanner scanClassPath="false" />*
Now the question. *Why would Tomcat scan the /cfmu/appcm dir *?
We checked the classpath setting on the server, but CLASSPATH env variable
isn't set system-wide.
.
Besides that there is no reference to cfmu in the
/opt/OV/nonOV/tomcat/b/conf /catalina.properties file.
-------------------------------------------------------------------------
The dir /cfmu/appcm is a dir coming from our internal tools to keep track
of software version releases. It has nothing to do with Apache.
1.) *So the question is, during a default Tomcat install, where is it
defined that which dirs Tomcat scans* ?
It should not scan the /cfmu/appcm dir
2.) *Can you give me a clue why this dir is scanned, and how this can be
changed*?
Waiting for your reply.
Thanks & Regards,
Nikitha
Re: Blank page when browsing to Tomcat page
Posted by Mark Thomas <ma...@apache.org>.
On 01/09/2015 10:20, Nikitha Benny wrote:
<snip/>
> 1.) *So the question is, during a default Tomcat install, where is it
> defined that which dirs Tomcat scans* ?
That is not defined during installation.
It is controlled by the JarScanner component:
http://tomcat.apache.org/tomcat-8.0-doc/config/jar-scanner.html
> It should not scan the /cfmu/appcm dir
It should, if that directory has been placed on the web application
class path.
> 2.) *Can you give me a clue why this dir is scanned, and how this can be
> changed*?
It has been added to the web application class path.
Note: Tomcat constructs the web application class as per the docs:
http://tomcat.apache.org/tomcat-8.0-doc/class-loader-howto.html
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org