rhel 5.5上的tomcat 7启动错误

时间:2013-01-31 17:02:15

标签: linux tomcat redhat

我正在尝试在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有同样的错误

有人能帮帮我吗?

3 个答案:

答案 0 :(得分:4)

  • 安装完整,兼容的JDK from Oracle (SUN) or IBM
  • 将您的JAVA_HOME环境变量设置为的根目录 兼容的JDK
  

$ JAVA_HOME=/usr/java/jdk1.6.0_01

     

$ export JAVA_HOME

  • 将兼容性JDK的bin目录放在PATH的前面 环境变量。
  

$ PATH=$JAVA_HOME/bin:$PATH

     

$ export PATH

  • 通常查找不兼容的JDK的java可执行文件 /usr/bin/java并将其移开,如下所示:
  

$ cd /usr/java

     

$ mv java java.moved

  • 然后,检查以确保您的java可执行文件指向您的JDK 已安装:
  

$ 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