简体   繁体   English

rhel 5.5上的tomcat 7启动错误

[英]tomcat 7 startup error on rhel 5.5

i'm trying to set up tomcat 7.0.35 on red hat 5.5. 我正试图在red hat 5.5上设置tomcat 7.0.35。

When i try to start tomcat i have this error in catalina.out 当我尝试启动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>> 

I'm using JDK 1.7.0_01 and i set up the JAVA_HOME and PATH 我正在使用JDK 1.7.0_01,我设置了JAVA_HOME和PATH

I've the same error with tomcat 6 我和tomcat 6有同样的错误

Can someone help me?? 有人能帮我吗??

  • Install complete, Compatible JDK from Oracle (SUN) or IBM JDK from Oracle (SUN) or IBM安装完整,兼容的JDK from Oracle (SUN) or IBM
  • Set your JAVA_HOME environment variable to the root directory of the compatible JDK JAVA_HOME环境变量设置为兼容JDK的根目录

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

$ export JAVA_HOME $ export JAVA_HOME

  • Put the compatibale JDK's bin directory on the front of your PATH environment variable. 将兼容JDK的bin目录放在PATH环境变量的前面。

$ PATH=$JAVA_HOME/bin:$PATH

$ export PATH

  • Find the java executable of the incompatible JDK, usually /usr/bin/java and move it out of the way, like this: 找到不兼容的JDK的java可执行文件,通常是/usr/bin/java并将其移开,如下所示:

$ cd /usr/java $ cd /usr/java

$ mv java java.moved $ mv java java.moved

  • Then, check to make sure your java executable points to the JDK you have installed: 然后,检查以确保您的java可执行文件指向您已安装的JDK:

$ which java

/usr/java/jdk1.6.0_01/bin/java

I had the same problem and I got it resolved by specifying proper JRE_HOME. 我遇到了同样的问题,我通过指定正确的JRE_HOME解决了问题。 Basically I made JRE_HOME same as JAVA_HOME. 基本上我把JRE_HOME和JAVA_HOME一样。

include following property in catalina.sh 在catalina.sh中包含以下属性

-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.manager = org.apache.juli.ClassLoaderLogManager

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM