日期:2014-05-16  浏览次数:20639 次

java web部署 启动tomcat报错
运行.startup.sh
Using CATALINA_BASE: /usr/local/tomcat/tomcat_chnstone_crm_20
Using CATALINA_HOME: /usr/local/tomcat/tomcat_chnstone_crm_20
Using CATALINA_TMPDIR: /usr/local/tomcat/tomcat_chnstone_crm_20/temp
Using JRE_HOME: /usr/java/jdk1.6.0_24/

运行.shutdown.sh
Using CATALINA_BASE: /usr/local/tomcat/tomcat_chnstone_crm_20
Using CATALINA_HOME: /usr/local/tomcat/tomcat_chnstone_crm_20
Using CATALINA_TMPDIR: /usr/local/tomcat/tomcat_chnstone_crm_20/temp
Using JRE_HOME: /usr/java/jdk1.6.0_24/

2011-3-24 11:04:34 org.apache.catalina.startup.Catalina stopServer
严重:Catalina.stop:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:189)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:421)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)

root@123-server:~# lsof -i:8080

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 2397 root 34u IPv6 21386 0t0 TCP *:http-alt (LISTEN)


请问高手这是什么问题?端口占用么?如何解决呢?
我觉得应该是tomcat一直没启动起来。输入项目url一直显示加载中...

------解决方案--------------------
tomcat的那个关闭脚本 有时候不好用 进程已经死掉了 执行
pkill -9 java
/path/startup.sh