首页 新闻 搜索 专区 学院

tomcat启动时报端口占用 启动前 用ps -ef |grep tomcate 看的时候只有一个root的进程

0
悬赏园豆:15 [已解决问题] 解决于 2018-06-28 12:49
Jun 28, 2018 4:45:16 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/i386:/lib:/usr/lib
Jun 28, 2018 4:45:17 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 28, 2018 4:45:17 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1259 ms
Jun 28, 2018 4:45:17 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 28, 2018 4:45:17 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.44
Jun 28, 2018 4:45:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Jun 28, 2018 4:45:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
Jun 28, 2018 4:45:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jun 28, 2018 4:45:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Jun 28, 2018 4:45:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Jun 28, 2018 4:45:18 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 28, 2018 4:45:18 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 28, 2018 4:45:18 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/18  config=null
Jun 28, 2018 4:45:18 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 797 ms
Jun 28, 2018 4:47:28 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory homeWork_war_exploded
Jun 28, 2018 4:48:28 PM org.apache.catalina.startup.HostConfig checkResources
INFO: Reloading context [/homeWork_war_exploded]
Jun 28, 2018 4:48:28 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/tomcat6/webapps/homeWork_war_exploded/WEB-INF/lib/javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Jun 28, 2018 4:49:15 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jun 28, 2018 4:49:20 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/i386:/lib:/usr/lib
Jun 28, 2018 4:49:21 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use (Bind failed) <null>:8080
 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
 at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:182)
 at org.apache.catalina.connector.Connector.initialize(Connector.java:1123)
 at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
 at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:843)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
 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:498)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.net.BindException: Address already in use (Bind failed)
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
 at java.net.ServerSocket.bind(ServerSocket.java:375)
 at java.net.ServerSocket.<init>(ServerSocket.java:237)
 at java.net.ServerSocket.<init>(ServerSocket.java:181)
 at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
 ... 12 more
Jun 28, 2018 4:49:21 PM org.apache.catalina.core.StandardService initialize
SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8080]]
LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address already in use (Bind failed) <null>:8080
 at org.apache.catalina.connector.Connector.initialize(Connector.java:1125)
 at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
 at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:843)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
 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:498)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jun 28, 2018 4:49:21 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 716 ms
Jun 28, 2018 4:49:21 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 28, 2018 4:49:21 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.44
Jun 28, 2018 4:49:21 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Jun 28, 2018 4:49:21 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Jun 28, 2018 4:49:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Jun 28, 2018 4:49:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jun 28, 2018 4:49:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory homeWork_war_exploded
Jun 28, 2018 4:49:21 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/tomcat6/webapps/homeWork_war_exploded/WEB-INF/lib/javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Jun 28, 2018 4:49:30 PM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.net.UnknownHostException: bogon: bogon: Name or service not known
 at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
 at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:490)
 at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:288)
 at org.apache.jk.server.JkMain.pause(JkMain.java:739)
 at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
 at org.apache.catalina.connector.Connector.pause(Connector.java:1138)
 at org.apache.catalina.core.StandardService.stop(StandardService.java:578)
 at org.apache.catalina.core.StandardServer.stop(StandardServer.java:793)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:662)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
 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:498)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.net.UnknownHostException: bogon: Name or service not known
 at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
 at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
 at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
 at java.net.InetAddress.getLocalHost(InetAddress.java:1500)
 ... 15 more
Jun 28, 2018 4:49:31 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jun 28, 2018 4:49:31 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 28, 2018 4:49:31 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/homeWork_war_exploded] startup failed due to previous errors
Jun 28, 2018 4:49:31 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/homeWork_war_exploded] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jun 28, 2018 4:49:31 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/homeWork_war_exploded] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
Jun 28, 2018 4:49:31 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/homeWork_war_exploded] created a ThreadLocal with key of type [org.apache.log4j.helpers.ThreadLocalMap] (value [org.apache.log4j.helpers.ThreadLocalMap@1c080a8]) and a value of type [java.util.Hashtable] (value [{}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Jun 28, 2018 4:49:46 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jun 28, 2018 4:50:40 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 28, 2018 4:50:40 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/homeWork_war_exploded] startup failed due to previous errors
Jun 28, 2018 4:50:40 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/homeWork_war_exploded] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jun 28, 2018 4:50:40 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/homeWork_war_exploded] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
Jun 28, 2018 4:50:40 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/homeWork_war_exploded] created a ThreadLocal with key of type [org.apache.log4j.helpers.ThreadLocalMap] (value [org.apache.log4j.helpers.ThreadLocalMap@db6131]) and a value of type [java.util.Hashtable] (value [{}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Jun 28, 2018 4:50:55 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Jun 28, 2018 4:50:55 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 28, 2018 4:50:55 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 28, 2018 4:50:55 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/17  config=null
Jun 28, 2018 4:50:55 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 94887 ms
Jun 28, 2018 5:08:23 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/i386:/lib:/usr/lib
Jun 28, 2018 5:08:23 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 28, 2018 5:08:23 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 561 ms
Jun 28, 2018 5:08:23 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 28, 2018 5:08:23 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.44
Jun 28, 2018 5:08:23 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Jun 28, 2018 5:08:23 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Jun 28, 2018 5:08:24 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Jun 28, 2018 5:08:24 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jun 28, 2018 5:08:24 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory homeWork_war_exploded
Jun 28, 2018 5:08:24 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/tomcat6/webapps/homeWork_war_exploded/WEB-INF/lib/javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Jun 28, 2018 5:09:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 28, 2018 5:09:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/homeWork_war_exploded] startup failed due to previous errors
Jun 28, 2018 5:09:42 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/homeWork_war_exploded] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jun 28, 2018 5:09:42 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/homeWork_war_exploded] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
Jun 28, 2018 5:09:42 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/homeWork_war_exploded] created a ThreadLocal with key of type [org.apache.log4j.helpers.ThreadLocalMap] (value [org.apache.log4j.helpers.ThreadLocalMap@4d61e4]) and a value of type [java.util.Hashtable] (value [{}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Jun 28, 2018 5:09:57 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Jun 28, 2018 5:09:57 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 28, 2018 5:09:58 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 28, 2018 5:09:58 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/21  config=null
Jun 28, 2018 5:09:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 94405 ms
Jun 28, 2018 5:11:05 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jun 28, 2018 5:11:20 PM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.net.UnknownHostException: bogon: bogon: Name or service not known
 at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
 at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:490)
 at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:288)
 at org.apache.jk.server.JkMain.pause(JkMain.java:739)
 at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
 at org.apache.catalina.connector.Connector.pause(Connector.java:1138)
 at org.apache.catalina.core.StandardService.stop(StandardService.java:578)
 at org.apache.catalina.core.StandardServer.stop(StandardServer.java:793)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:662)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
 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:498)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.net.UnknownHostException: bogon: Name or service not known
 at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
 at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
 at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
 at java.net.InetAddress.getLocalHost(InetAddress.java:1500)
 ... 15 more
Jun 28, 2018 5:11:21 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jun 28, 2018 5:11:21 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jun 28, 2018 5:29:04 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/i386:/lib:/usr/lib
Jun 28, 2018 5:29:04 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 28, 2018 5:29:04 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 575 ms
Jun 28, 2018 5:29:04 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 28, 2018 5:29:04 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.44
Jun 28, 2018 5:29:04 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Jun 28, 2018 5:29:05 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Jun 28, 2018 5:29:05 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Jun 28, 2018 5:29:05 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jun 28, 2018 5:29:05 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory homeWork_war_exploded
Jun 28, 2018 5:29:05 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/home/tomcat6/webapps/homeWork_war_exploded/WEB-INF/lib/javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
岷州李斌的主页 岷州李斌 | 初学一级 | 园豆:127
提问于:2018-06-28 09:41
< >
分享
最佳答案
0

netstat -tunlp|grep 端口号 查看下哪个进程占用了杀掉他

收获园豆:15
_legends | 小虾三级 |园豆:509 | 2018-06-28 10:55

[root@bogon logs]# netstat -tunlp|grep 8080
tcp        0      0 :::8080                     :::*                        LISTEN      4163/java

 

这个进程要杀掉吗

岷州李斌 | 园豆:127 (初学一级) | 2018-06-28 10:57

@岷州李斌: java进程,说明已经用了,ps -ef|grep java看下 如果没用的话就杀掉吧

_legends | 园豆:509 (小虾三级) | 2018-06-28 11:30
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册