Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server » Tomcat  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 [求助]tomcat启动不了,是怎么回事?
JoJo_Les



发贴: 0
积分: 0
于 2004-09-07 14:22 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
下载了jakarta-tomcat-4.1.30,安装了j2sdk1.4.2,设置了CATALINA_HOME和JAVA_HOME,还有相关的类包的路径也写到classpath里面了。但启动时就出现以下信息:

2004-9-7 14:00:14 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.30
2004-9-7 14:00:17 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
e
2004-9-7 14:00:17 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.action.ActionResources', returnNul
l=true
2004-9-7 14:00:19 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
2004-9-7 14:00:23 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on port 8080
2004-9-7 14:00:23 org.apache.jk.common.ChannelSocket init
信息: JK2: ajp13 listening on /0.0.0.0:8009
2004-9-7 14:00:23 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=16/94 config=c:\tomcat\conf\jk2.properties
StandardServer.await: create[8005]: java.net.BindException: Address already in u
se: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
at java.net.ServerSocket.bind(ServerSocket.java:318)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:510
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:521)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

请问各位大大,这是怎么回事呢?



作者 Re:[求助]tomcat启动不了,是怎么回事? [Re:JoJo_Les]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2004-09-07 14:36 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
是不是已经有了,你访问8080试一下


"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:[求助]tomcat启动不了,是怎么回事? [Re:JoJo_Les]
JoJo_Les



发贴: 0
积分: 0
于 2004-09-07 14:45 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
有可能是这样吧,但是我的tomcat是在本地上用的,而我本地应该没有程序占用8080这个端口呀。


作者 Re:[求助]tomcat启动不了,是怎么回事? [Re:JoJo_Les]
JoJo_Les



发贴: 0
积分: 0
于 2004-09-07 14:50 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
应该不是占用8080端口的问题,我修改了tomcat的8080也还是不行的。


作者 Re:[求助]tomcat启动不了,是怎么回事? [Re:JoJo_Les]
nothing

天外飞仙.....

CJSDN高级会员


发贴: 1636
积分: 131
于 2004-09-07 14:55 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
用 netstat -nao -p tcp

看一下8080在做啥.




躲得过的怪物,躲不过的刺激

作者 Re:[求助]tomcat启动不了,是怎么回事? [Re:JoJo_Les]
JoJo_Les



发贴: 0
积分: 0
于 2004-09-07 15:27 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
看不到8080是在做啥,因为好像找不到8080端口的相关内容

c:\>netstat -na -p tcp

Active Connections

Proto Local Address Foreign Address State
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1036 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1047 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1110 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1125 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1325 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1551 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1797 0.0.0.0:0 LISTENING
TCP 0.0.0.0:2098 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5003 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5225 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5226 0.0.0.0:0 LISTENING
TCP 0.0.0.0:5460 0.0.0.0:0 LISTENING
TCP 0.0.0.0:8008 0.0.0.0:0 LISTENING
TCP 0.0.0.0:55901 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1047 127.0.0.1:5226 ESTABLISHED
TCP 127.0.0.1:5226 127.0.0.1:1047 ESTABLISHED
TCP 127.0.0.1:8005 0.0.0.0:0 LISTENING



作者 Re:[求助]tomcat启动不了,是怎么回事? [Re:JoJo_Les]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2004-09-07 15:49 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
StandardServer.await: create[8005]: java.net.BindException: Address already in u
se: JVM_Bind

8005被占用了



"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:[求助]tomcat启动不了,是怎么回事? [Re:JoJo_Les]
JoJo_Les



发贴: 0
积分: 0
于 2004-09-07 18:09 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
好了,问题解决了,应该是8005端口或者还有其它端口被占用的问题。

可能是开始startup的时候失败了,但没有shutdown的缘故还是其它原因,后来在命令行下面shutdown后再startup就可以了。

谢谢各位的帮助了。呵呵




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923