1.报错信息
10:12:53,003 ERROR [Http11AprProtocol] Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] ͨ³£ÿ¸öÌÓ×ֵØַ(ЭÒé/ÍøÂçµØַ/¶˿Ú)ֻÔÊÐíʹÓ
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:611)
at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:716)
at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137)
at org.apache.catalina.connector.Connector.start(Connector.java:1146)
at org.jboss.web.tomcat.service.JBossWeb.startConnectors(JBossWeb.java:601)
at org.jboss.web.tomcat.service.JBossWeb.handleNotification(JBossWeb.java:638)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
at com.sun.proxy.$Proxy46.handleNotification(Unknown Source)
at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
at org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:916)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:497)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:745)
2.这个是由于JBOSS端口占用引起的,我设置的端口是8067
以下命令可以找出端口对应的进程并kill掉:
C:\Users>netstat -ano | findstr "8067"
TCP 192.168.1.90:8067 192.168.1.90:8067 ESTABLISHED 14216
C:\Users>tasklist | findstr 14216
firefox.exe 14216 Console 3 272,636 K
C:\Users>taskkill /T /F /PID 14216
成功: 已终止 PID 14216 (属于 PID 11928 子进程)的进程。