LoginSignup
0
0

More than 5 years have passed since last update.

How to fix Tomcat error - org.apache.catalina.startup.ClassLoaderFactory validateFile

Posted at

Symptom

while updating to Tomcat 7.0.84, errors ...

Feb 01, 2018 10:50:00 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/"/usr/share/tomcat/lib/*.jar"], exists: [false], isDirectory: [false], canRead: [false]
Feb 01, 2018 10:53:37 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/"/usr/share/tomcat/lib"], exists: [false], isDirectory: [false], canRead: [false]
Feb 01, 2018 10:53:37 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/"/usr/share/tomcat/lib/*.jar"], exists: [false], isDirectory: [false], canRead: [false]
Feb 01, 2018 10:53:37 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/"/usr/share/tomcat/lib"], exists: [false], isDirectory: [false], canRead: [false]
Feb 01, 2018 10:53:37 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/"/usr/share/tomcat/lib/*.jar"], exists: [false], isDirectory: [false], canRead: [false]

How to fix

  • before
${catalina.base}/conf/catalina.properties
# Note: Values are enclosed in double quotes ("...") in case either the
#       ${catalina.base} path or the ${catalina.home} path contains a comma.
#       Because double quotes are used for quoting, the double quote character
#       may not appear in a path.
common.loader="${catalina.base}/lib","${catalina.base}/lib/*.jar","${catalina.home}/lib","${catalina.home}/lib/*.jar"
  • after
${catalina.base}/conf/catalina.properties

common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar

Cause

with running Tomcat 7 and Tomcat 8 with same conf/ files, the change has been made as following:

55620: Enable Tomcat to start when either \$CATALINA_HOME and/or \$CATALINA_BASE contains a comma character. Prevent Tomcat from starting when \$CATALINA_HOME and/or \$CATALINA_BASE contains a semi-colon on Windows. Prevent Tomcat from starting when \$CATALINA_HOME and/or \$CATALINA_BASE contains a colon on inux/FreeBSD/etc.`

now running OK both 7 and 8 :relaxed:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0