我正在尝试在red hat 5.5上设置tomcat 7.0.35。
当我尝试启动tomcat时,我在catalina.out中出现此错误
WARNING: error instantiating 'org.apache.juli.ClassLoaderLogManager' referenced by java.util.logging.manager, class not found
java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager not found
<<No stacktrace available>>
WARNING: error instantiating '1catalina.org.apache.juli.FileHandler,' referenced by handlers, class not found
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler,
<<No stacktrace available>>
Exception during runtime initialization
java.lang.ExceptionInInitializerError
<<No stacktrace available>>
Caused by: java.lang.NullPointerException
<<No stacktrace available>>
WARNING: error instantiating 'org.apache.juli.ClassLoaderLogManager' referenced by java.util.logging.manager, class not found
java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager not found
<<No stacktrace available>>
WARNING: error instantiating '1catalina.org.apache.juli.FileHandler,' referenced by handlers, class not found
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler,
<<No stacktrace available>>
Exception during runtime initialization
java.lang.ExceptionInInitializerError
<<No stacktrace available>>
Caused by: java.lang.NullPointerException
<<No stacktrace available>>
我正在使用JDK 1.7.0_01并且我设置了JAVA_HOME和PATH
我和tomcat 6有同样的错误
有人能帮帮我吗?
答案 0 :(得分:4)
JDK from Oracle (SUN) or IBM
JAVA_HOME
环境变量设置为的根目录
兼容的JDK $
JAVA_HOME=/usr/java/jdk1.6.0_01
$
export JAVA_HOME
PATH
的前面
环境变量。
$ PATH=$JAVA_HOME/bin:$PATH
$ export PATH
/usr/bin/java
并将其移开,如下所示:$
cd /usr/java
$
mv java java.moved
$ which java
/usr/java/jdk1.6.0_01/bin/java
答案 1 :(得分:0)
我遇到了同样的问题,我通过指定正确的JRE_HOME解决了问题。基本上我把JRE_HOME和JAVA_HOME一样。
答案 2 :(得分:0)
在catalina.sh中包含以下属性
-Djava.util.logging.manager = org.apache.juli.ClassLoaderLogManager