2 qq 28829573 qq_28829573 于 2016.02.11 10:22 提问

tomcat运行报错,改变端口无效

弹框错
1.Server Tomcat v7.0 Server at localhost failed to start.

tomcat运行报错
2.严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-8221"]
java.net.BindException: Address already in use: JVM_Bind :8221
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.(ServerSocket.java:237)
at java.net.ServerSocket.(ServerSocket.java:181)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
... 17 more

二月 10, 2016 11:32:45 上午 org.apache.catalina.core.StandardService initInternal
严重: Failed to initialize connector [Connector[HTTP/1.1-8221]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8221]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:980)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 12 more
Caused by: java.net.BindException: Address already in use: JVM_Bind :8221
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
... 13 more
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.(ServerSocket.java:237)
at java.net.ServerSocket.(ServerSocket.java:181)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
... 17 more

二月 10, 2016 11:32:45 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8223"]
二月 10, 2016 11:32:45 上午 org.apache.coyote.AbstractProtocol init
严重: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8223"]
java.net.BindException: Address already in use: JVM_Bind :8223
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.(ServerSocket.java:237)
at java.net.ServerSocket.(ServerSocket.java:181)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
... 16 more

3个回答

jia20003
jia20003   2016.02.11 12:24

你可以用命令行窗口检查一下 netstat -n

jpzhu16
jpzhu16   2016.02.14 02:59

端口占用,明天传给你一个解决了方案

liurong147258
liurong147258   2016.02.11 10:29

Address already in use: JVM_Bind :8221 这个很明显是端口占用哦

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
Tomcat 端口变更失效的问题的解决
今天在服务器上部署了两个Tomcat。于是将其中一个的server.xml中的8080端口改成了8081。启动tomcat,端口居然还是8080。郁闷。 习惯性的Google了下。发现别人也遇见了同样的问题: tomcat 修改端口无效 [问题点数:40分,无满意结帖,结帖人shenglan8] http://bbs.csdn.net/topics/360265129 后来,在终端下echo
Tomcat端口更改失效的解决方法
我已开始想用同时启动两个tomcat,发现改了端口以后还是原来的端口,上网查了一下发现CATALINA_HOME还是原来tomcat的地址,需要删掉,然后就可以重启tomcat就正常了。
tomcat在server.xml文件中修改端口后,依然运行8080端口
1、今天调试solr的时候,想将tomcat端口修改一下,因为电脑上已经运行有一个8080端口的项目了。 可是改完之后,启动tomcat(我是用的解压版的tomcat,通过startup.bat启动的),日志显示还是运行的8080端口,这当然就报错了。 上网查了好久,发现都是讲的如何修改tomcat默认端口,照做之后依然没有反应。 后来才发现,原来是因为我配置的环境变量的原因,我电脑中有多个
在eclipse + tomcat + mysql 的配置中,修改tomcat的端口号不起作用
这个问题的原因是:需要在eclipse里面的server文件夹下的server.xml中的端口号也需要修改,而不只是修改tomcat下面的conf中的server.xml中的端口号
maven使用tomcat插件改变应用端口
最近用maven搭建一个ssh项目,然后tomcat:run 时报错,端口被占用,于是就想换一个端口,从网上找资料,都是说在pom.xml里配置下tomcat-maven-plugin,但是都是从组org.codehaus.mojo里下,而且版本都是1.0或者1.1,开始不知道,直接复制进去,然后各种下载不了插件,后来上http://tomcat.apache.org/一查才知道官网支持的最低版本
Tomcat启动失败,窗口一闪而过
昨天遇到一个问题,配置了https/ssl的tomcat在windows操作系统上启动,窗口一闪而过,刚开始以为环境变量有问题,检查后并没有问题,但是在命令行执行java命令时提示Error occurred during initialization of VM Could not reserve enough space for object heap网上搜了下是JVM内存溢出,这台服务器上已经
JAVA 如何手动修改tomcat启动端口
如何手动修改tomcat启动端口
springboot 修改内置端口
Spring Boot 内置Tomcat默认端口号为8080,在开发多个应用调试时很不方便,本文介绍了修改 Spring Boot内置Tomcat端口号的方法。 一、EmbeddedServletContainerCustomizer接口 EmbeddedServletContainerCustomizer接口提供了customize方法用来自定义servlet容器的一些属
修改tomcat端口、发布路径等问题
一、修改tomcat的端口 在默认情况下,tomcat的占用端口是8080,用如下方法可以修改Tomcat的端口号。进入Tomcat的根(安装)目录下,有一个conf文件夹,双击进入conf文件夹,找到Server.xml文件,打开该文件。然后在文件中找到如下文本: <Connector port="8080" protocol="HTTP/1.1" ma
修改tomcat默认的8080端口
1、打开tomcat配置文件server.xml 2、修改端口,按 i 进行,将8080 修改为 80 3、 重启tomcat