当前页面: 开发资料首页 → JSP 专题 → 我想把TOMCAT的端口号改成80 可是老出错!!!!
我想把TOMCAT的端口号改成80 可是老出错!!!!
摘要: 我想把TOMCAT的端口号改成80 可是老出错!!!!
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
把上边的8080改为80 启动后就出错
2006-8-29 12:59:49 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in produ
ction environments was not found on the java.library.path: D:/jdk1.5.0_08/bin;.;
C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System3
2/Wbem;C:/minisoft;C:/Program Files/Intel/DMIX;D:/jdk1.5.0_08/bin;d:/SSH Communi
cations Security/SSH Secure Shell
2006-8-29 12:59:50 org.apache.coyote.http11.Http11BaseProtocol init
严重: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:80
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:297)
at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.j
ava:138)
at org.apache.catalina.connector.Connector.initialize(Connector.java:101
6)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:580)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a: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(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
2006-8-29 12:59:50 org.apache.catalina.startup.Catalina load
严重: Catalina.start
LifecycleException: Protocol handler initialization failed: java.net.BindExcept
ion: Address already in use: JVM_Bind:80
at org.apache.catalina.connector.Connector.initialize(Connector.java:101
8)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:580)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a: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(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
2006-8-29 12:59:50 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1582 ms
2006-8-29 12:59:50 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2006-8-29 12:59:50 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.17
2006-8-29 12:59:50 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2006-8-29 12:59:52 org.apache.coyote.http11.Http11BaseProtocol start
严重: Error starting endpoint
java.net.BindException: Address already in use: JVM_Bind:80
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:297)
at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpo
int.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:4
59)
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(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2006-8-29 12:59:52 org.apache.catalina.startup.Catalina start
严重: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start fail
ed: java.net.BindException: Address already in use: JVM_Bind:80
at org.apache.catalina.connector.Connector.start(Connector.java:1096)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
59)
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(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2006-8-29 12:59:52 org.apache.catalina.startup.Catalina start
信息: Server startup in 2584 ms
java.net.BindException: Address already in use: JVM_Bind:80
80端口已经被占用了,可以用netstat -an 看看是哪个程序占用了。
严重: Error starting endpoint
java.net.BindException: Address already in use: JVM_Bind:80
80端口是默认打开的吧?你上网的时候80端口就开着
tomcat启动的时候需要用这个。。所以
晕。80端口被占用,请检查是否有其他WEB服务器占用了此端口,如IIS,APACHE等等
netstat -a 可以查看到哪个占用了80端口,建议你改成其它端口
你已经启动了服务,restart试试
开玩笑,80是什么端口?
用256以后的
http占用80端口
不对是1024以内的保留给预定义服务的
用1024以后的
80端口已经绑定
你看下是是不是apache占用了该断口
可以用查看断口占用状态
netstat -a
Address already in use: JVM_Bind:80
我已经试过,把80端口占用就会出现
我先开的IIS,然后Tomcat..
IIS默认使用80端口,IIS开启以后80就被占用了,你再让TOMCAT开80当然不行了
同意楼上,看看是不是iis打开了
在SERVER。xml更换一个端口不就好了
用1024以后的
打80关闭了