jboss eap 的 domain 形式自动关闭

jboss_小白 发布于 2017/07/31 15:12
阅读 143
收藏 0

版本:jboss eap 6.4

我在linux上使用jboss eap的domain形式来搭建server集群,由于资源有限,只启动了一个domain服务,即只有master,没有slave。修改了host.xml文件的ip之后,启动了domain.sh,通过windows的浏览器访问了console,删除了原有的默认的group和server,新建了一个group,并给这个group里添加了三个server,然后我向这个group中放置了一个测试的war包(会自动添加至该group下所有的server中),然后我将三个server一次启动,出现一个比较头疼的问题,每次启动第三个server的时候,第一个server就会被关闭,并且报出了以下错误:

15:00:47,257 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/web1]] (ServerService Thread Pool -- 67) Initializing Spring FrameworkServlet 'spring-mvc'
15:00:47,257 INFO  [org.springframework.web.servlet.DispatcherServlet] (ServerService Thread Pool -- 67) FrameworkServlet 'spring-mvc': initialization started
15:00:47,398 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (ServerService Thread Pool -- 67) Refreshing WebApplicationContext for namespace 'spring-mvc-servlet': startup date [Mon Jul 31 15:00:47 CST 2017]; parent: Root WebApplicationContext
15:00:47,400 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (ServerService Thread Pool -- 67) Loading XML bean definitions from class path resource [spring-mvc.cfg.xml]
15:00:48,152 ERROR [org.hornetq.core.server] (Old I/O client worker ([id: 0x2f0d075a, /172.17.60.212:60108 => /172.17.60.212:5447])) HQ224066: Stopping ClusterManager. As it failed to authenticate with the cluster: HQ119099: Unable to authenticate cluster user: HORNETQ.CLUSTER.ADMIN.USER
15:00:48,481 INFO  [org.hornetq.core.server] (Thread-2 (HornetQ-server-HornetQServerImpl::serverUUID=c30b81bd-736d-11e7-84d7-5f647324bb10-1976704139)) HQ221028: Bridge is stopping, will not retry
15:00:48,900 ERROR [org.hornetq.core.client] (Thread-5 (HornetQ-server-HornetQServerImpl::serverUUID=c30b81bd-736d-11e7-84d7-5f647324bb10-1976704139)) HQ214017: Caught unexpected Throwable: java.lang.IllegalStateException: Server locator is closed (maybe it was garbage collected)
        at org.hornetq.core.client.impl.ServerLocatorImpl.assertOpen(ServerLocatorImpl.java:2047) [hornetq-core-client-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:828) [hornetq-core-client-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:670) [hornetq-core-client-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:654) [hornetq-core-client-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.client.impl.ServerLocatorImpl$4.run(ServerLocatorImpl.java:1700) [hornetq-core-client-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:105) [hornetq-core-client-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_75]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_75]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_75]

15:00:48,906 INFO  [org.hornetq.core.server] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c30b81bd-736d-11e7-84d7-5f647324bb10-1976704139)) HQ221029: stopped bridge sf.my-cluster.fbc07eea-736f-11e7-be52-6f0319e09b92
15:00:48,980 ERROR [org.hornetq.core.server] (Old I/O server worker (parentId: -1326099378, [id: 0xb0f5544e, /172.17.60.212:5446])) HQ224018: Failed to create session: HornetQException[errorType=CLUSTER_SECURITY_EXCEPTION message=HQ119099: Unable to authenticate cluster user: HORNETQ.CLUSTER.ADMIN.USER]
        at org.hornetq.core.security.impl.SecurityStoreImpl.authenticate(SecurityStoreImpl.java:123) [hornetq-server-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.server.impl.HornetQServerImpl.createSession(HornetQServerImpl.java:980) [hornetq-server-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handleCreateSession(HornetQPacketHandler.java:150) [hornetq-server-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handlePacket(HornetQPacketHandler.java:78) [hornetq-server-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:641) [hornetq-core-client-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:557) [hornetq-core-client-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:533) [hornetq-core-client-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:587) [hornetq-server-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.messageReceived(HornetQChannelHandler.java:72) [hornetq-core-client-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:281) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.decode(HornetQFrameDecoder2.java:169) [hornetq-core-client-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.messageReceived(HornetQFrameDecoder2.java:134) [hornetq-core-client-2.3.25.Final-redhat-1.jar:2.3.25.Final-redhat-1]
        at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.channel.socket.oio.OioWorker.process(OioWorker.java:71) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.channel.socket.oio.AbstractOioWorker.run(AbstractOioWorker.java:73) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.channel.socket.oio.OioWorker.run(OioWorker.java:51) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at org.jboss.netty.util.VirtualExecutorService$ChildExecutorRunnable.run(VirtualExecutorService.java:175) [netty-3.6.10.Final-redhat-1.jar:3.6.10.Final-redhat-1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_75]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_75]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_75]

15:00:49,321 INFO  [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (ServerService Thread Pool -- 67) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
15:00:49,945 INFO  [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (ServerService Thread Pool -- 67) Mapped "{[/tests/test1.do],methods=[GET]}" onto public java.lang.Object com.qc.web1.controller.TestController.test1(java.lang.String)
15:00:50,786 INFO  [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter] (ServerService Thread Pool -- 67) Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-mvc-servlet': startup date [Mon Jul 31 15:00:47 CST 2017]; parent: Root WebApplicationContext
15:00:51,358 INFO  [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter] (ServerService Thread Pool -- 67) Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-mvc-servlet': startup date [Mon Jul 31 15:00:47 CST 2017]; parent: Root WebApplicationContext
15:00:52,429 INFO  [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter] (ServerService Thread Pool -- 67) Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-mvc-servlet': startup date [Mon Jul 31 15:00:47 CST 2017]; parent: Root WebApplicationContext
15:00:53,877 INFO  [org.springframework.web.servlet.DispatcherServlet] (ServerService Thread Pool -- 67) FrameworkServlet 'spring-mvc': initialization completed in 6620 ms
15:00:55,978 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015859: Deployed "web1.war" (runtime-name : "web1.war")
15:00:56,201 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.4.0.GA (AS 7.5.0.Final-redhat-21) started in 152596ms - Started 344 of 439 services (129 services are lazy, passive or on-demand)
 

 

最后虽然日志显示启动成功了,但是实际上是关闭着的,通过console查看他的状态也是被关闭的,访问这个server也访问不到。

 

给我的感觉这个错误是因为我服务器的内存太小所导致,。。。。 我服务器运行内存1G,,,,只是个特别简单的测试版的服务器。

加载中
返回顶部
顶部