标签:
2015-10-15 09:54:41,829 INFO [com.wcs.common.web.DeveloperFilter] - <6B520D990691E819C13798A9BE0D8303-n1> 2015-10-15 9:54:48 org.apache.coyote.http11.Http11Protocol pause 信息: Pausing Coyote HTTP/1.1 on http-9999 2015-10-15 9:54:48 org.apache.catalina.connector.Connector pause 严重: Protocol handler pause failed java.net.UnknownHostException: oracle1: oracle1 at java.net.InetAddress.getLocalHost(InetAddress.java:1360) 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:1139) at org.apache.catalina.core.StandardService.stop(StandardService.java:578) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:788) at org.apache.catalina.startup.Catalina.stop(Catalina.java:662) at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:706) 2015-10-15 9:54:49 org.apache.catalina.core.StandardService stop 信息: Stopping service Catalina 2015-10-15 9:54:49 de.javakaffee.web.msm.MemcachedBackupSessionManager stop 信息: Removing sessions from local session map. 2015-10-15 9:54:49 de.javakaffee.web.msm.MemcachedSessionService shutdown 信息: Stopping services. 2015-10-15 09:54:49.259 INFO net.spy.memcached.MemcachedClient: Shut down memcached client 2015-10-15 9:54:49 de.javakaffee.web.msm.MemcachedBackupSessionManager stop 信息: Removing sessions from local session map. 2015-10-15 9:54:49 de.javakaffee.web.msm.MemcachedSessionService shutdown 信息: Stopping services. 2015-10-15 09:54:49.277 INFO net.spy.memcached.MemcachedClient: Shut down memcached client 2015-10-15 9:54:49 de.javakaffee.web.msm.MemcachedBackupSessionManager stop 信息: Removing sessions from local session map. 2015-10-15 9:54:49 de.javakaffee.web.msm.MemcachedSessionService shutdown 信息: Stopping services. 2015-10-15 09:54:49.292 INFO net.spy.memcached.MemcachedClient: Shut down memcached client 2015-10-15 09:54:49,308 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - <Closing WebApplicationContext for namespace ‘springMvc-servlet‘: startup date [Wed Oct 14 19:45:05 CST 2015]; parent: Root WebApplicationContext> 。。。。 。。。。
以上是日志错误信息。
java.net.UnknownHostException: oracle1: oracle1
无法解析oracle1
解决办法:
linux下,在/etc/hosts 中
127.0.0.1 localhost 这一行后面添加 oracle1
结果:
127.0.0.1 localhost oracle1
公司测试环境上的tomcat总是运行一段时间莫名其妙的挂掉,总算找到原因了
标签:
原文地址:http://my.oschina.net/u/989834/blog/517395