信息: Starting Coyote HTTP/1.1 on http-9090
2009-8-18 21:40:20 org.apache.jk.common.ChannelSocket init
信息: Port busy 8009 java.net.BindException: Address already in use: JVM_Bind
2009-8-18 21:40:20 org.apache.jk.common.ChannelSocket init
信息: JK2: ajp13 listening on /0.0.0.0:8010
2009-8-18 21:40:20 org.apache.jk.server.JkMain start
信息: Jk running ID=1 time=15/62 config=C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\jk2.properties
2009-8-18 21:40:20 org.apache.catalina.startup.Catalina start
信息: Server startup in 4156 ms
StandardServer.await: create[8005]: java.net.BindException: Address already in use: 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:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:496)
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
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.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
出现以上现象时说明你的tomcat使用的端口号已经被占用了。
解决方法如下:
方法一:打开windows任务管理器,你会看到有两个javaw进程,看看这两个进程的内存使用,占用内存较大的javaw进程是eclipse进程,占用内存较小的是tomcat进程。只要关闭这个较小的javaw进程即可。
或者:直接把进程中的Tomcat5.exe直接结束
让后再重新启动tomcat就可以正常使用了。