Posted on 2011-06-18 13:15
帅子 阅读(1366)
评论(0) 编辑 收藏 所属分类:
j2se技术专区 、
申请加入java团队 、
j2ee技术专区
片段:
12:56:47,046 ERROR [Http11Protocol] Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind /127.0.0.1:8080
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:504)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1029)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:683)
at org.apache.catalina.core.StandardService.init(StandardService.java:695)
at org.apache.catalina.core.StandardService.start(StandardService.java:510)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:736)
at org.apache.catalina.startup.Catalina.start(Catalina.java:572)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
需要更改:jboss5\server\default\deploy\jbossweb.sar\server.xml下的端口号
<Service name="jboss.web">
<!-- A HTTP/1.1 Connector on port 8080 -->
<Connector protocol="HTTP/1.1" port="8881" address="${jboss.bind.address}"
connectionTimeout="20000" redirectPort="8443" />
这里改为8881