tomcat6无法启动
报错日志:
2011-10-27 13:34:53 org.apache.catalina.core.StandardContext addApplicationListener
信息: The listener "listeners.ContextListener" is already configured for this context. The duplicate definition has been ignored.
2011-10-27 13:34:53 org.apache.catalina.core.StandardContext addApplicationListener
信息: The listener "listeners.SessionListener" is already configured for this context. The duplicate definition has been ignored.
2011-10-27 13:34:53 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2011-10-27 13:34:53 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2011-10-27 13:34:53 org.apache.coyote.http11.Http11NioProtocol start
信息: Starting Coyote HTTP/1.1 on http-8001
2011-10-27 13:34:53 org.apache.coyote.http11.Http11NioProtocol start
信息: Starting Coyote HTTP/1.1 on http-8243
2011-10-27 13:34:53 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2011-10-27 13:34:53 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/62 config=null
2011-10-27 13:34:53 org.apache.catalina.startup.Catalina start
信息: Server startup in 3712 ms
2011-10-27 13:34:53 org.apache.catalina.core.StandardServer await
严重: StandardServer.await: create[8006]:
java.net.BindException: Cannot assign requested address: JVM_Bindat java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
at org.apache.catalina.startup.Catalina.await(Catalina.java:642)
at org.apache.catalina.startup.Catalina.start(Catalina.java:602)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
- C# code
server.xml: <GlobalNamingResources> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <!-- A "Service" is a collection of one or more "Connectors" that share a single "Container" Note: A "Service" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/service.html --> <Service name="Catalina"> <!--The connectors can use a shared executor, you can define one or more named thread pools--> <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="500" minSpareThreads="10"/> <!-- A "Connector" represents an endpoint by which requests are received and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html (blocking & non-blocking) Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL HTTP/1.1 Connector on port 8080 --> <!-- --> <Connector port="8001" protocol="org.apache.coyote.http11.Http11NioProtocol" connectionTimeout="20000" redirectPort="8243" executor="tomcatThreadPool" URIEncoding="UTF-8"/>
- C# code
查看端口: 协议 本地地址 外部地址 状态 PID TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 700 TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 1684 TCP 0.0.0.0:49152 0.0.0.0:0 LISTENING 392 TCP 0.0.0.0:49153 0.0.0.0:0 LISTENING 764 TCP 0.0.0.0:49154 0.0.0.0:0 LISTENING 888 TCP 0.0.0.0:49155 0.0.0.0:0 LISTENING 452 TCP 0.0.0.0:49156 0.0.0.0:0 LISTENING 1500 TCP 0.0.0.0:49160 0.0.0.0:0 LISTENING 484 TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 4120 TCP 127.0.0.1:5037 127.0.0.1:50897 ESTABLISHED 4120 TCP 127.0.0.1:50104 127.0.0.1:50105 ESTABLISHED 200 TCP 127.0.0.1:50105 127.0.0.1:50104 ESTABLISHED 200 TCP 127.0.0.1:50155 127.0.0.1:50156 ESTABLISHED 200 TCP 127.0.0.1:50156 127.0.0.1:50155 ESTABLISHED 200 TCP 127.0.0.1:50625 127.0.0.1:50626 ESTABLISHED 200 TCP 127.0.0.1:50626 127.0.0.1:50625 ESTABLISHED 200 TCP 127.0.0.1:50897 127.0.0.1:5037 ESTABLISHED 200 TCP 172.16.1.106:139 0.0.0.0:0 LISTENING 4 TCP 172.16.1.106:50115 184.73.82.165:443 CLOSE_WAIT 200 TCP 172.16.1.106:50787 121.207.242.225:80 ESTABLISHED 5128 TCP 172.16.1.106:50792 118.26.224.38:80 CLOSE_WAIT 5128 TCP 172.16.1.106:50796 118.26.224.38:80 CLOSE_WAIT 5128 TCP 172.16.1.106:50801 61.155.141.28:80 CLOSE_WAIT 5128 TCP 172.16.1.106:50802 61.155.141.28:80 CLOSE_WAIT 5128 TCP 172.16.1.106:50807 121.207.242.12:80 CLOSE_WAIT 5128 TCP 172.16.1.106:50808 121.207.242.12:80 CLOSE_WAIT 5128 TCP 172.16.1.106:50811 61.155.141.28:80 CLOSE_WAIT 5128 TCP 172.16.1.106:50812 61.155.141.28:80 CLOSE_WAIT 5128 TCP 172.16.1.106:50821 121.207.242.225:80 ESTABLISHED 5128 TCP 172.16.1.106:50842 116.213.196.18:80 CLOSE_WAIT 5128 TCP 172.16.1.106:50845 203.208.46.134:80 CLOSE_WAIT 5128 TCP 172.16.1.106:53310 203.208.46.196:80 CLOSE_WAIT 5812 TCP 172.16.1.106:53317 117.79.157.224:80 CLOSE_WAIT 5812 TCP 172.16.1.106:53318 117.79.157.202:80 CLOSE_WAIT 5812 TCP 172.16.1.106:53335 203.208.46.225:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53336 117.79.157.243:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53337 117.79.157.243:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53343 117.79.157.224:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53344 117.79.157.202:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53359 117.79.157.242:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53360 117.79.157.242:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53361 117.79.157.242:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53362 117.79.157.242:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53363 117.79.157.242:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53364 117.79.157.242:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53365 117.79.157.242:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53366 117.79.157.242:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53367 117.79.157.242:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53368 117.79.157.242:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53369 117.79.157.242:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53370 117.79.157.242:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53371 117.79.157.241:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53372 117.79.157.241:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53373 117.79.157.204:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53374 117.79.157.204:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53375 117.79.157.204:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53376 202.107.208.119:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53377 202.107.208.119:80 CLOSE_WAIT 3420 TCP 172.16.1.106:53378 61.172.246.72:80 CLOSE_WAIT 3420
另:
8001端口没有被占用
任务管理器中没有javaw.exe
求大侠哪里出错了,不甚感激!
[解决办法]
JVM_Bind 的问题? 重新安装下jdk 注意版本。