Posted on 2012-05-07 14:56
小白19870626 阅读(6066)
评论(0) 编辑 收藏 所属分类:
linux 、
tomcat
今天部署一个很简单的JSP程序,启动tomcat时出现下面的提示信息
Using CATALINA_BASE: /software/apache-tomcat-6.0.18
Using CATALINA_HOME: /software/apache-tomcat-6.0.18
Using CATALINA_TMPDIR: /software/apache-tomcat-6.0.18/temp
Using JRE_HOME: /usr
用命令
ps -ef|grep tomcat
查看没有tomcat进程。
查看tomcat日志信息,出现了下面的错误:
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>>
最终解决办法:
用命令设置JAVA_HOME环境变量
export JAVA_HOME=/software/jdk1.5.0_4/
进入 %tomcat%/bin/
./startup.sh
启动成功!
小白