[好奇被猫害死]TOMCAT配置问题,搞不定啊。各路神仙快来救我啊
/*
*运行之后 一阵狂响
*但是就是不能访问http://127.0.0.1:8080
*/
[root@localhost /]# startup.sh
Using CATALINA_BASE: /usr/local/mysdk/tomcat
Using CATALINA_HOME: /usr/local/mysdk/tomcat
Using CATALINA_TMPDIR: /usr/local/mysdk/tomcat/temp
Using JRE_HOME: /usr/local/mysdk/jdk
[root@localhost /]#
/*
* 换一种方式跑,报错
*/
[root@localhost /]# catalina.sh run
Using CATALINA_BASE: /usr/local/mysdk/tomcat
Using CATALINA_HOME: /usr/local/mysdk/tomcat
Using CATALINA_TMPDIR: /usr/local/mysdk/tomcat/temp
Using JRE_HOME: /usr/local/mysdk/jdk
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:221)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
[root@localhost /]#
[root@localhost lib]# pwd
/usr/local/mysdk/tomcat/common/lib
[root@localhost lib]# ls
catalina-ant.jar commons-logging.jar jsp-api.jar
catalina-deployer.jar jasper-compiler.jar servlet-api.jar
commons-el.jar jasper-runtime.jar
tomcat/common/lib/
本来没文件后来下了同版本deployer.tar.gz同目录搬过去的
tomcat/server/lib/ 没文件
环境:apache-TOMCAT5.5.20.tar.gz jdk1.6.0 red flag 4.1
疑问我目录里怎么没有jar包啊
------解决方案--------------------5.5.20能跑1.6的JDK?
还是改用VB吧!
------解决方案--------------------请把兼容的方向搞搞清楚!
是小毛调用JDK,而不是JDK调用小毛
------解决方案--------------------补充一下,VB是简体中文版的,不需要懂英文!
------解决方案--------------------^_^,楼主被tomcat害死了,大家都来吃老鼠肉:)
------解决方案--------------------CLASSPATH C:\jdk\lib\tools.jar
PATH C:\jdk\bin
JAVA_HOME C:\jdk
$CATALINA_HOME D:\TOMCAT 5.5
以上为环境变量设置,测试通过
------解决方案--------------------把tomcat版本提高试试