[JBoss Messaging Users] - Failure on control connection Thread?
by yongz
Hi,
* JBoss 5.0.1.GA
* JBoss messaging 1.4.6.GA
* JBoss remoting 2.5.2
* Java jdk1.5.0_19
We have a cluster with two nodes using clustered queue, and recently we are getting the following errors with JBoss messaging:
1. The following appears in Node 1:
| 2009-11-30 16:21:47,525 [Timer-6] WARN remoting.transport.bisocket.BisocketServerInvoker : org.jboss.remoting.transport.bisocket.BisocketServerInvoker$ControlMonitorTimerTask@10d107: detected failure on control connection Thread[control: Socket[addr=myhost2/172.32.29.21,port=32062,localport=1881],5,] (4sl3l3l-7k73nm-g2mqo1ic-1-g2mqxt8r-jn: requesting new control connection
|
2. After a few minutes, on node 2[172.32.29.21]:
| 2009-11-30 16:24:45,243 [Timer-3] WARN remoting.transport.bisocket.BisocketServerInvoker : org.jboss.remoting.transport.bisocket.BisocketServerInvoker$ControlMonitorTimerTask@17663eb: detected failure on control connection Thread[control: Socket[addr=myhost2/172.32.29.20,port=18861,localport=1686],5,] (4sl3l3k-n6bz0c-g2mqho1y-1-g2mqqj8h-j6: requesting new control connection
| 2009-11-30 16:24:49,886 [Timer-7] WARN remoting.transport.bisocket.BisocketClientInvoker : Unable to send ping: shutting down PingTimerTask
| java.net.SocketException: Software caused connection abort: socket write error
| at java.net.SocketOutputStream.socketWrite0(Native Method)
| at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
| at java.net.SocketOutputStream.write(SocketOutputStream.java:115)
| at org.jboss.remoting.transport.bisocket.BisocketClientInvoker$PingTimerTask.run(BisocketClientInvoker.java:723)
| at java.util.TimerThread.mainLoop(Timer.java:512)
| at java.util.TimerThread.run(Timer.java:462)
| 2009-11-30 16:25:45,864 [WorkerThread#0[172.21.129.129:1995]] ERROR jboss.messaging.util.ExceptionUtil : SessionEndpoint[l31-8c8rsm2g-1-y1ohqm2g-c0zb6n-k3l3ls4] createConsumerDelegate [m31-oc8rsm2g-1-y1ohqm2g-c0zb6n-k3l3ls4]
| javax.jms.InvalidDestinationException: No such destination: JBossTemporaryQueue[wj-xktxqm2g-1-ci1oqm2g-mn37k7-l3l3ls4] has it been deployed?
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegateInternal(ServerSessionEndpoint.java:1891)
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegate(ServerSessionEndpoint.java:262)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$createConsumerDelegate$aop(SessionAdvised.java:94)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_8721389917985689973.invokeTarget(SessionAdvised$createConsumerDelegate_8721389917985689973.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
| at org.jboss.jms.server.container.SecurityAspect.handleCreateConsumerDelegate(SecurityAspect.java:123)
| at sun.reflect.GeneratedMethodAccessor3253.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised.createConsumerDelegate(SessionAdvised.java)
| at org.jboss.jms.wireformat.SessionCreateConsumerDelegateRequest.serverInvoke(SessionCreateConsumerDelegateRequest.java:100)
| at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:157)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:897)
| at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:768)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:721)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:575)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
| 2009-11-30 16:30:55,300 [Timer-3] WARN remoting.transport.bisocket.BisocketServerInvoker : org.jboss.remoting.transport.bisocket.BisocketServerInvoker$ControlMonitorTimerTask@17663eb: detected failure on control connection Thread[control: Socket[addr=myhost1/172.32.29.20,port=18861,localport=1843],5,] (4sl3l3k-n6bz0c-g2mqho1y-1-g2mqqj8h-j6: requesting new control connection
|
3. Then on node 1:
| 2009-11-30 16:25:45,706 [Thread-75] ERROR jboss.jms.client.FailoverCommandCenter : Failover failed
| javax.jms.InvalidDestinationException: No such destination: JBossTemporaryQueue[wj-xktxqm2g-1-ci1oqm2g-mn37k7-l3l3ls4] has it been deployed?
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegateInternal(ServerSessionEndpoint.java:1891)
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegate(ServerSessionEndpoint.java:262)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$createConsumerDelegate$aop(SessionAdvised.java:94)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_8721389917985689973.invokeTarget(SessionAdvised$createConsumerDelegate_8721389917985689973.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
| at org.jboss.jms.server.container.SecurityAspect.handleCreateConsumerDelegate(SecurityAspect.java:123)
| at sun.reflect.GeneratedMethodAccessor3253.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised.createConsumerDelegate(SessionAdvised.java)
| at org.jboss.jms.wireformat.SessionCreateConsumerDelegateRequest.serverInvoke(SessionCreateConsumerDelegateRequest.java:100)
| at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:157)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:897)
| at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:768)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:721)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:575)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:213)
| at org.jboss.remoting.Client.invoke(Client.java:1917)
| at org.jboss.remoting.Client.invoke(Client.java:768)
| at org.jboss.remoting.Client.invoke(Client.java:756)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$createConsumerDelegate$aop(ClientSessionDelegate.java:267)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_8721389917985689973.invokeTarget(ClientSessionDelegate$createConsumerDelegate_8721389917985689973.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
| at org.jboss.jms.client.container.StateCreationAspect.handleCreateConsumerDelegate(StateCreationAspect.java:136)
| at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConsumerDelegate_13797435.invoke(StateCreationAspect_z_handleCreateConsumerDelegate_13797435.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.container.ConsumerAspect.handleCreateConsumerDelegate(ConsumerAspect.java:76)
| at org.jboss.aop.advice.org.jboss.jms.client.container.ConsumerAspect_z_handleCreateConsumerDelegate_13797435.invoke(ConsumerAspect_z_handleCreateConsumerDelegate_13797435.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:114)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.createConsumerDelegate(ClientSessionDelegate.java)
| at org.jboss.jms.client.state.SessionState.synchronizeWith(SessionState.java:249)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.synchronizeWith(ClientSessionDelegate.java:128)
| at org.jboss.jms.client.state.ConnectionState.synchronizeWith(ConnectionState.java:177)
| at org.jboss.jms.client.delegate.ClientConnectionDelegate.synchronizeWith(ClientConnectionDelegate.java:129)
| at org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:145)
| at org.jboss.jms.client.container.ConnectionFailureListener.handleConnectionException(ConnectionFailureListener.java:62)
| at org.jboss.jms.client.remoting.ConsolidatedRemotingConnectionListener.handleConnectionException(ConsolidatedRemotingConnectionListener.java:88)
| at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:498)
|
| org.jboss.jms.exception.MessagingJMSException: Failed to invoke
| at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:271)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:205)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvokeOneway(DelegateSupport.java:165)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$send$aop(ClientSessionDelegate.java:495)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeTarget(ClientSessionDelegate$send_6145266547759487588.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
| at org.jboss.jms.client.container.SessionAspect.handleSend(SessionAspect.java:661)
| at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleSend_13797435.invoke(SessionAspect_z_handleSend_13797435.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:114)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java)
| at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:276)
| at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect_z_handleSend_13797435.invoke(ProducerAspect_z_handleSend_13797435.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:165)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:208)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:146)
| ...............................
|
| at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.Exception: Can not make remoting client invocation due to not being connected to server.
| at org.jboss.remoting.Client.invoke(Client.java:1922)
| at org.jboss.remoting.Client.invoke(Client.java:768)
| at org.jboss.remoting.Client.invokeOneway(Client.java:817)
| at org.jboss.remoting.Client.invokeOneway(Client.java:1003)
| at org.jboss.remoting.Client.invokeOneway(Client.java:994)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:180)
| ... 102 more
| 2009-11-30 16:25:45,815 [Thread-75] ERROR jms.client.container.ConnectionFailureListener : Caught exception in handling failure
| javax.jms.InvalidDestinationException: No such destination: JBossTemporaryQueue[wj-xktxqm2g-1-ci1oqm2g-mn37k7-l3l3ls4] has it been deployed?
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegateInternal(ServerSessionEndpoint.java:1891)
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegate(ServerSessionEndpoint.java:262)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$createConsumerDelegate$aop(SessionAdvised.java:94)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_8721389917985689973.invokeTarget(SessionAdvised$createConsumerDelegate_8721389917985689973.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
| at org.jboss.jms.server.container.SecurityAspect.handleCreateConsumerDelegate(SecurityAspect.java:123)
| at sun.reflect.GeneratedMethodAccessor3253.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised.createConsumerDelegate(SessionAdvised.java)
| at org.jboss.jms.wireformat.SessionCreateConsumerDelegateRequest.serverInvoke(SessionCreateConsumerDelegateRequest.java:100)
| at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:157)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:897)
| at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:768)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:721)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:575)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:213)
| at org.jboss.remoting.Client.invoke(Client.java:1917)
| at org.jboss.remoting.Client.invoke(Client.java:768)
| at org.jboss.remoting.Client.invoke(Client.java:756)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$createConsumerDelegate$aop(ClientSessionDelegate.java:267)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_8721389917985689973.invokeTarget(ClientSessionDelegate$createConsumerDelegate_8721389917985689973.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
| at org.jboss.jms.client.container.StateCreationAspect.handleCreateConsumerDelegate(StateCreationAspect.java:136)
| at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConsumerDelegate_13797435.invoke(StateCreationAspect_z_handleCreateConsumerDelegate_13797435.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.container.ConsumerAspect.handleCreateConsumerDelegate(ConsumerAspect.java:76)
| at org.jboss.aop.advice.org.jboss.jms.client.container.ConsumerAspect_z_handleCreateConsumerDelegate_13797435.invoke(ConsumerAspect_z_handleCreateConsumerDelegate_13797435.java)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:114)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.createConsumerDelegate(ClientSessionDelegate.java)
| at org.jboss.jms.client.state.SessionState.synchronizeWith(SessionState.java:249)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.synchronizeWith(ClientSessionDelegate.java:128)
| at org.jboss.jms.client.state.ConnectionState.synchronizeWith(ConnectionState.java:177)
| at org.jboss.jms.client.delegate.ClientConnectionDelegate.synchronizeWith(ClientConnectionDelegate.java:129)
| at org.jboss.jms.client.FailoverCommandCenter.failureDetected(FailoverCommandCenter.java:145)
| at org.jboss.jms.client.container.ConnectionFailureListener.handleConnectionException(ConnectionFailureListener.java:62)
| at org.jboss.jms.client.remoting.ConsolidatedRemotingConnectionListener.handleConnectionException(ConsolidatedRemotingConnectionListener.java:88)
| at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:498)
|
We saw the similar issue with JBoss messaing 1.4.2.SP1, but still got it with JBoss messaging 1.4.6, as a result, the two nodes lost connection with each other, can you please advise what could be the cause? Thanks in advance.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268030#4268030
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268030
15 years, 3 months
[EJB 3.0 Users] - Re: EJB jar cannot be deployed as a library (JBoss 5.0.1.GA)
by rsoika
Jaikiran,
thanks for your help. Yes when I put the persistence.xml into the .ear it looks much better. The deployer now recognizes the entities and so I take one step forward... :-)
"jaikiran" wrote :
| The weird part about the packaging is - the my_ejb_module.jar is mapped as a EJB module and contains only the descriptors (ejb-jar.xml, jboss.xml etc..). No classes within that jar.
|
I know this looks not typical for an jee project, but I think it should be a typical way deploying existing JEE components. The reason for that ear layout is, that I want to provide developers of workflow applications with a EJB based workflow component. This component is part of the imixs wokflow project and packaged into the imixs-workflow-jee-x.x.x and imixs-workflow-jee-impl-x.x.x jars.
So if you plan to add Imixs workflow components into your JEE Web project there should be no need to add sources/classes into the EJB Module or deal with the whole EJB stuff. The developer should only declare a few descriptors. So the JEE Project becomes very compact.
My vision is that the application developer concentrates on the GUI and add only some Richfaces libs and some business logic bundled in ejb-jars.
I think this is one of the concepts behind JEE component architecture. And I did not understand why we found so much cool GUI components like RichFaces but no business components which helps developers to speed up the application development.
Maybe this idea becomes more clear if you look at one tutorial I wrote about the usage of my maven archetype:
http://www-02.imixs.com/roller/imixsworkflow/entry/building_a_imixs_workf...
you see - I want to attest that not only RubyOnRails developers are speedy ;-)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268028#4268028
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268028
15 years, 3 months
[Beginner's Corner] - Re: JBoss (Apr) jboss-native :: linux
by rbrtfreund
Rest of log... sorry for the long log
| 2009-11-30 08:00:16,272 DEBUG [org.apache.catalina.core.AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/jboss4/lib
| java.lang.reflect.InvocationTargetException
| 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.core.AprLifecycleListener.init(AprLifecycleListener.java:134)
| at org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleListener.java:79)
| at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
| at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:766)
| at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
| at org.apache.catalina.startup.Catalina.start(Catalina.java:568)
| 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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.web.tomcat.service.JBossWeb.startService(JBossWeb.java:457)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.deployment.SubDeployerInterceptor.invokeNext(SubDeployerInterceptor.java:124)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:109)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at org.jboss.system.ServiceController.start(ServiceController.java:435)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| 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:619)
| Caused by: java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path, no libtcnative-1 in java.library.path(/opt/jboss4/lib)
| at org.apache.tomcat.jni.Library.<init>(Library.java:56)
| at org.apache.tomcat.jni.Library.initialize(Library.java:157)
| ... 116 more
|
run.sh
| #!/bin/sh
| ### ====================================================================== ###
| ## ##
| ## JBoss Bootstrap Script ##
| ## ##
| ### ====================================================================== ###
|
| ### $Id: run.sh 75849 2008-07-15 18:43:17Z dimitris(a)jboss.org $ ###
|
| if $JBOSS_OVERRIDE; then
| # not using wrapper
| echo "Not using wrapper, please start JBoss using 'service jboss4 start|stop|restart'"
| exit
| fi
|
| DIRNAME=`dirname $0`
| PROGNAME=`basename $0`
| GREP="grep"
|
| # Use the maximum available, or set MAX_FD != -1 to use that
| MAX_FD="maximum"
|
| #
| # Helper to complain.
| #
| warn() {
| echo "${PROGNAME}: $*"
| }
|
| #
| # Helper to puke.
| #
| die() {
| warn $*
| exit 1
| }
|
| # OS specific support (must be 'true' or 'false').
| cygwin=false;
| darwin=false;
| linux=false;
| case "`uname`" in
| CYGWIN*)
| cygwin=true
| ;;
|
| Darwin*)
| darwin=true
| ;;
|
| Linux)
| linux=true
| ;;
| esac
|
| # Read an optional running configuration file
| if [ "x$RUN_CONF" = "x" ]; then
| RUN_CONF="$DIRNAME/run.conf"
| fi
| if [ -r "$RUN_CONF" ]; then
| . "$RUN_CONF"
| fi
|
| # Force IPv4 on Linux systems since IPv6 doesn't work correctly with jdk5 and lower
| if [ "$linux" = "true" ]; then
| JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
| fi
|
| # For Cygwin, ensure paths are in UNIX format before anything is touched
| if $cygwin ; then
| [ -n "$JBOSS_HOME" ] &&
| JBOSS_HOME=`cygpath --unix "$JBOSS_HOME"`
| [ -n "$JAVA_HOME" ] &&
| JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
| [ -n "$JAVAC_JAR" ] &&
| JAVAC_JAR=`cygpath --unix "$JAVAC_JAR"`
| fi
|
| # Setup JBOSS_HOME
| if [ "x$JBOSS_HOME" = "x" ]; then
| # get the full path (without any relative bits)
| JBOSS_HOME=`cd $DIRNAME/..; pwd`
| fi
| export JBOSS_HOME
|
| # Increase the maximum file descriptors if we can
| if [ "$cygwin" = "false" ]; then
| MAX_FD_LIMIT=`ulimit -H -n`
| if [ $? -eq 0 ]; then
| if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ]; then
| # use the system max
| MAX_FD="$MAX_FD_LIMIT"
| fi
|
| ulimit -n $MAX_FD
| if [ $? -ne 0 ]; then
| warn "Could not set maximum file descriptor limit: $MAX_FD"
| fi
| else
| warn "Could not query system maximum file descriptor limit: $MAX_FD_LIMIT"
| fi
| fi
|
| # Setup the JVM
| if [ "x$JAVA" = "x" ]; then
| if [ "x$JAVA_HOME" != "x" ]; then
| JAVA="$JAVA_HOME/bin/java"
| else
| JAVA="java"
| fi
| fi
|
| # Setup the classpath
| runjar="$JBOSS_HOME/bin/run.jar"
| if [ ! -f "$runjar" ]; then
| die "Missing required file: $runjar"
| fi
| JBOSS_BOOT_CLASSPATH="$runjar"
|
| # Tomcat uses the JDT Compiler
| # Only include tools.jar if someone wants to use the JDK instead.
| # compatible distribution which JAVA_HOME points to
| if [ "x$JAVAC_JAR" = "x" ]; then
| JAVAC_JAR_FILE="$JAVA_HOME/lib/tools.jar"
| else
| JAVAC_JAR_FILE="$JAVAC_JAR"
| fi
| if [ ! -f "$JAVAC_JAR_FILE" ]; then
| # MacOSX does not have a seperate tools.jar
| if [ "$darwin" != "true" -a "x$JAVAC_JAR" != "x" ]; then
| warn "Missing file: JAVAC_JAR=$JAVAC_JAR"
| warn "Unexpected results may occur."
| fi
| JAVAC_JAR_FILE=
| fi
|
| if [ "x$JBOSS_CLASSPATH" = "x" ]; then
| JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH"
| else
| JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPATH"
| fi
| if [ "x$JAVAC_JAR_FILE" != "x" ]; then
| JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JAVAC_JAR_FILE"
| fi
|
| # If -server not set in JAVA_OPTS, set it, if supported
| SERVER_SET=`echo $JAVA_OPTS | $GREP "\-server"`
| if [ "x$SERVER_SET" = "x" ]; then
|
| # Check for SUN(tm) JVM w/ HotSpot support
| if [ "x$HAS_HOTSPOT" = "x" ]; then
| HAS_HOTSPOT=`"$JAVA" -version 2>&1 | $GREP -i HotSpot`
| fi
|
| # Enable -server if we have Hotspot, unless we can't
| if [ "x$HAS_HOTSPOT" != "x" ]; then
| # MacOS does not support -server flag
| if [ "$darwin" != "true" ]; then
| JAVA_OPTS="-server $JAVA_OPTS"
| fi
| fi
| fi
|
| # Setup JBosst Native library path
| JBOSS_NATIVE_DIR="$JBOSS_HOME/bin/native"
| if [ -d "$JBOSS_NATIVE_DIR" ]; then
| if $cygwin ; then
| export PATH="$JBOSS_NATIVE_DIR:$PATH"
| JBOSS_NATIVE_DIR=`cygpath --dos "$JBOSS_NATIVE_DIR"`
| fi
| if [ "x$LD_LIBRARY_PATH" = "x" ]; then
| LD_LIBRARY_PATH="$JBOSS_NATIVE_DIR"
| else
| LD_LIBRARY_PATH="$JBOSS_NATIVE_DIR:$LD_LIBRARY_PATH"
| fi
| export LD_LIBRARY_PATH
| if [ "x$JAVA_OPTS" = "x" ]; then
| JAVA_OPTS="-Djava.library.path=$JBOSS_NATIVE_DIR"
| else
| JAVA_OPTS="$JAVA_OPTS -Djava.library.path=$JBOSS_NATIVE_DIR"
| fi
| fi
|
| # Setup JBoss specific properties
| JAVA_OPTS="-Dprogram.name=$PROGNAME $JAVA_OPTS"
|
| # Setup the java endorsed dirs
| JBOSS_ENDORSED_DIRS="$JBOSS_HOME/lib/endorsed"
|
| # For Cygwin, switch paths to Windows format before running java
| if $cygwin; then
| JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
| JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
| JBOSS_CLASSPATH=`cygpath --path --windows "$JBOSS_CLASSPATH"`
| JBOSS_ENDORSED_DIRS=`cygpath --path --windows "$JBOSS_ENDORSED_DIRS"`
| fi
|
| # Display our environment
| echo "========================================================================="
| echo ""
| echo " JBoss Bootstrap Environment"
| echo ""
| echo " JBOSS_HOME: $JBOSS_HOME"
| echo ""
| echo " JAVA: $JAVA"
| echo ""
| echo " JAVA_OPTS: $JAVA_OPTS"
| echo ""
| echo " CLASSPATH: $JBOSS_CLASSPATH"
| echo ""
| echo "========================================================================="
| echo ""
|
| while true; do
| if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]; then
| # Execute the JVM in the foreground
| "$JAVA" $JAVA_OPTS \
| -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
| -classpath "$JBOSS_CLASSPATH" \
| org.jboss.Main "$@"
| JBOSS_STATUS=$?
| else
| # Execute the JVM in the background
| "$JAVA" $JAVA_OPTS \
| -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
| -classpath "$JBOSS_CLASSPATH" \
| org.jboss.Main "$@" &
| JBOSS_PID=$!
| # Trap common signals and relay them to the jboss process
| trap "kill -HUP $JBOSS_PID" HUP
| trap "kill -TERM $JBOSS_PID" INT
| trap "kill -QUIT $JBOSS_PID" QUIT
| trap "kill -PIPE $JBOSS_PID" PIPE
| trap "kill -TERM $JBOSS_PID" TERM
| # Wait until the background process exits
| WAIT_STATUS=128
| while [ "$WAIT_STATUS" -ge 128 ]; do
| wait $JBOSS_PID 2>/dev/null
| WAIT_STATUS=$?
| if [ "${WAIT_STATUS}" -gt 128 ]; then
| SIGNAL=`expr ${WAIT_STATUS} - 128`
| SIGNAL_NAME=`kill -l ${SIGNAL}`
| echo "*** JBossAS process (${JBOSS_PID}) received ${SIGNAL_NAME} signal ***" >&2
| fi
| done
| if [ "${WAIT_STATUS}" -lt 127 ]; then
| JBOSS_STATUS=$WAIT_STATUS
| else
| JBOSS_STATUS=0
| fi
| fi
| # If restart doesn't work, check you are running JBossAS 4.0.4+
| # http://jira.jboss.com/jira/browse/JBAS-2483
| # or the following if you're running Red Hat 7.0
| # http://developer.java.sun.com/developer/bugParade/bugs/4465334.html
| if [ "$JBOSS_STATUS" -eq 10 ]; then
| echo "Restarting JBoss..."
| else
| exit $JBOSS_STATUS
| fi
| done
|
JBOSS_HOME/bin
.:
classpath.sh openssl run.sh.orig twiddle.sh wsrunclient.sh
jboss4 probe.sh shutdown.jar twiddle.sh.orig wstools.sh
jboss4.pid run.conf shutdown.sh wrapper
jboss_init_hpux.sh run.jar shutdown.sh.orig wsconsume.sh
native run.sh twiddle.jar wsprovide.sh
./native:
engines libcrypto.so.0 libtcnative-1.so
libapr-1.so libcrypto.so.0.9.8 libtcnative-1.so.0
libapr-1.so.0 libexpat.so libtcnative-1.so.0.1.18
libapr-1.so.0.3.8 libexpat.so.0 libz.so
libaprutil-1.so libexpat.so.0.1.0 libz.so.1
libaprutil-1.so.0 libssl.so libz.so.1.2.3
libaprutil-1.so.0.3.9 libssl.so.0 openssl
libcrypto.so libssl.so.0.9.8
./native/engines:
lib4758cca.so libatalla.so libchil.so libgmp.so libsureware.so
libaep.so libcapi.so libcswift.so libnuron.so libubsec.so
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268016#4268016
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268016
15 years, 3 months