手机端小强原创文章,java小强个人博客站点
当前位置: 首页 >> Linux >> Linux 修改IP后,Tomcat无法启动

Linux 修改IP后,Tomcat无法启动

23530 Linux | 2014-9-23
Sep 23, 2014 4:11:44 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/jdk1.6/jre/lib/amd64/server:/usr/jdk1.6/jre/lib/amd64:/usr/jdk1.6/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Sep 23, 2014 4:11:44 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Sep 23, 2014 4:11:44 PM org.apache.coyote.http11.Http11NioProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-0.0.0.0-8011
Sep 23, 2014 4:11:44 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 559 ms
Sep 23, 2014 4:11:45 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 23, 2014 4:11:45 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.39
Sep 23, 2014 4:11:45 PM org.apache.catalina.ha.tcp.SimpleTcpCluster start
INFO: Cluster is about to start
Sep 23, 2014 4:11:47 PM org.apache.catalina.tribes.transport.ReceiverBase bind
INFO: Unable to bind server socket to:/117.135.132.42:4099 throwing error.
Sep 23, 2014 4:11:47 PM org.apache.catalina.tribes.transport.nio.NioReceiver start
SEVERE: Unable to start cluster receiver
java.net.BindException: Cannot assign requested address
	at sun.nio.ch.Net.bind(Native Method)
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
	at org.apache.catalina.tribes.transport.ReceiverBase.bind(ReceiverBase.java:191)
	at org.apache.catalina.tribes.transport.nio.NioReceiver.bind(NioReceiver.java:131)
	at org.apache.catalina.tribes.transport.nio.NioReceiver.start(NioReceiver.java:101)
	at org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:140)
	at org.apache.catalina.tribes.group.ChannelCoordinator.start(ChannelCoordinator.java:95)
	at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)
	at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)
	at org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.start(MessageDispatchInterceptor.java:147)
	at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)
	at org.apache.catalina.tribes.group.GroupChannel.start(GroupChannel.java:407)
	at org.apache.catalina.ha.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:666)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1047)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Sep 23, 2014 4:11:47 PM org.apache.catalina.ha.tcp.SimpleTcpCluster start
SEVERE: Unable to start cluster.
org.apache.catalina.tribes.ChannelException: java.net.BindException: Cannot assign requested address; No faulty members identified.
	at org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:167)
	at org.apache.catalina.tribes.group.ChannelCoordinator.start(ChannelCoordinator.java:95)
	at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)
	at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)
	at org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.start(MessageDispatchInterceptor.java:147)
	at org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:149)
	at org.apache.catalina.tribes.group.GroupChannel.start(GroupChannel.java:407)
	at org.apache.catalina.ha.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:666)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1047)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.net.BindException: Cannot assign requested address
	at sun.nio.ch.Net.bind(Native Method)
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
	at org.apache.catalina.tribes.transport.ReceiverBase.bind(ReceiverBase.java:191)
	at org.apache.catalina.tribes.transport.nio.NioReceiver.bind(NioReceiver.java:131)
	at org.apache.catalina.tribes.transport.nio.NioReceiver.start(NioReceiver.java:101)
	at org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:140)
	... 18 more
Sep 23, 2014 4:11:47 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start: 
LifecycleException:  org.apache.catalina.tribes.ChannelException: java.net.BindException: Cannot assign requested address; No faulty members identified.
	at org.apache.catalina.ha.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:673)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1047)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Sep 23, 2014 4:11:47 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2577 ms


启动报错内容如上,主要是因为更换IP后,hosts文件没有跟着更新

vi /etc/hosts

在这个配置文件里面,把主机名对应的IP写成当前的IP即可


推荐您阅读更多有关于“ Tomcat 无法启动 linux ”的文章

上一篇:Oracle exp 导出,表不存在 下一篇:自定义标签TLD文件中,rtexprvalue属性到底什么意思

猜你喜欢

发表评论:

个人资料
blogger

java小强
没有思考,人生的路会越走越难!

搜索
百度推荐
分类
百度推荐
最新文章
搜狗推荐
热门文章
百度推荐
随机文章