多tomcat的启动问题

多tomcat的启动问题

机器上有两个tomcat
看了网上的文章,说只要两个的端口不一致就可以
于是用了9071端口
结果报错如下:
请教各位!bow


严重:   Error   initializing   endpoint
java.net.BindException:   Address   already   in   use:   JVM_Bind:9071
at   org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
at   org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:138)
at   org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
at   org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at   org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:503)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:523)
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.load(Bootstrap.java:266)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
2007-2-2   9:31:08   org.apache.catalina.startup.Catalina   load
严重:   Catalina.start
LifecycleException:     Protocol   handler   initialization   failed:   java.net.BindException:   Address   already   in   use:   JVM_Bind:9071
at   org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
at   org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at   org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:503)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:523)
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.load(Bootstrap.java:266)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
2007-2-2   9:31:08   org.apache.catalina.startup.Catalina   load
信息:   Initialization   processed   in   2891   ms
2007-2-2   9:31:08   org.apache.catalina.core.StandardService   start
信息:   Starting   service   Catalina
2007-2-2   9:31:08   org.apache.catalina.core.StandardEngine   start
信息:   Starting   Servlet   Engine:   Apache   Tomcat/5.5.20
2007-2-2   9:31:08   org.apache.catalina.core.StandardHost   start
信息:   XML   validation   disabled
2007-2-2   9:31:11   org.apache.coyote.http11.Http11BaseProtocol   start
严重:   Error   starting   endpoint
java.net.BindException:   Address   already   in   use:   JVM_Bind:9071
at   org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
at   org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:312)
at   org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol.java:150)
at   org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:75)
at   org.apache.catalina.connector.Connector.start(Connector.java:1089)
at   org.apache.catalina.core.StandardService.start(StandardService.java:459)
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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:294)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2007-2-2   9:31:11   org.apache.catalina.startup.Catalina   start
严重:   Catalina.start:  
LifecycleException:     service.getName():   "Catalina ";     Protocol   handler   start   failed:   java.net.BindException:   Address   already   in   use:   JVM_Bind:9071
at   org.apache.catalina.connector.Connector.start(Connector.java:1096)
at   org.apache.catalina.core.StandardService.start(StandardService.java:459)
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:551)
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:294)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2007-2-2   9:31:11   org.apache.catalina.startup.Catalina   start
信息:   Server   startup   in   3625   ms
2007-2-2   9:34:01   org.apache.coyote.http11.Http11BaseProtocol   pause
信息:   Pausing   Coyote   HTTP/1.1   on   http-9071
2007-2-2   9:34:01   org.apache.catalina.connector.Connector   pause
严重:   Protocol   handler   pause   failed
java.lang.NullPointerException
at   org.apache.jk.server.JkMain.pause(JkMain.java:678)
at   org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:162)
at   org.apache.catalina.connector.Connector.pause(Connector.java:1031)
at   org.apache.catalina.core.StandardService.stop(StandardService.java:491)
at   org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)
at   org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
at   org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:644)
只好自己顶一下了@@
错误是java.net.BindException:   Address   already   in   use:   JVM_Bind:9071     9071端口被占用
如楼上说的,在config文件中把端口号改一下了。