activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aragoubi <aymen....@gmail.com>
Subject Adding activemq jetty-all jar for using ws doesn't allow me anymore getting jboss exposed ejb
Date Thu, 08 Jun 2017 12:35:19 GMT
I have an activemq broker deployed within my jboss server. 
activemq is deployed as a rar file placed into jboss standalone/deployment
repository. 
An other project is also deployed within my jboss as an ear file.   
This last is exposing some ejb objects. 
I tried to get an ejb inside a jar file placed inside my activemq rar file.
A class placed within the jar is called when I connect a client to the
broker.
I am connecting a client over websocket. To do so, I am adding the
jetty-all-server jar in order to define a websocket connector inside my
broker config.
My problem is that I am not able anymore to get EJBs exposed into my jboss
when I add the jetty jar.
I think that activemq is looking for EJBs always inside the jetty context.
I tried the code allowing me to get EJB in other place and it works fine.
I also posted question in jboss forum and stackoverflow and they  told me
that the problem is coming maybe from jetty inside activemq.

Here the error that I get when I try to get the EJB:


12:44:41,688 ERROR [stderr] (qtp936717879-140)
javax.naming.NameNotFoundException; remaining name
'ejb:global/Hemis/HemisCoreClient//HardwareDataManagement!com.ubiant.hemis.client.ejb.interf.I_HardwareDataManagement'

12:44:41,688 ERROR [stderr] (qtp936717879-140) 	at
org.eclipse.jetty.jndi.local.localContextRoot.lookup(localContextRoot.java:490)

12:44:41,689 ERROR [stderr] (qtp936717879-140) 	at
org.eclipse.jetty.jndi.local.localContextRoot.lookup(localContextRoot.java:536)

12:44:41,689 ERROR [stderr] (qtp936717879-140) 	at
javax.naming.InitialContext.lookup(InitialContext.java:411)

12:44:41,689 ERROR [stderr] (qtp936717879-140) 	at
authentification.TokenAuthentificationBroker.addConnection(TokenAuthentificationBroker.java:83)

12:44:41,690 ERROR [stderr] (qtp936717879-140) 	at
org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:97)

12:44:41,690 ERROR [stderr] (qtp936717879-140) 	at
org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:733)

12:44:41,691 ERROR [stderr] (qtp936717879-140) 	at
org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:79)

12:44:41,691 ERROR [stderr] (qtp936717879-140) 	at
org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:139)

12:44:41,692 ERROR [stderr] (qtp936717879-140) 	at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:292)

12:44:41,692 ERROR [stderr] (qtp936717879-140) 	at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:149)

12:44:41,693 ERROR [stderr] (qtp936717879-140) 	at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)

12:44:41,693 ERROR [stderr] (qtp936717879-140) 	at
org.apache.activemq.transport.ws.MQTTSocket.sendToActiveMQ(MQTTSocket.java:112)

12:44:41,693 ERROR [stderr] (qtp936717879-140) 	at
org.apache.activemq.transport.mqtt.MQTTProtocolConverter.sendToActiveMQ(MQTTProtocolConverter.java:133)

12:44:41,694 ERROR [stderr] (qtp936717879-140) 	at
org.apache.activemq.transport.mqtt.MQTTProtocolConverter.onMQTTConnect(MQTTProtocolConverter.java:235)

12:44:41,694 ERROR [stderr] (qtp936717879-140) 	at
org.apache.activemq.transport.mqtt.MQTTProtocolConverter.onMQTTCommand(MQTTProtocolConverter.java:157)

12:44:41,695 ERROR [stderr] (qtp936717879-140) 	at
org.apache.activemq.transport.ws.MQTTSocket.onMessage(MQTTSocket.java:59)

12:44:41,696 ERROR [stderr] (qtp936717879-140) 	at
org.eclipse.jetty.websocket.WebSocketConnectionRFC6455$WSFrameHandler.onFrame(WebSocketConnectionRFC6455.java:860)

12:44:41,696 ERROR [stderr] (qtp936717879-140) 	at
org.eclipse.jetty.websocket.WebSocketParserRFC6455.parseNext(WebSocketParserRFC6455.java:349)

12:44:41,697 ERROR [stderr] (qtp936717879-140) 	at
org.eclipse.jetty.websocket.WebSocketConnectionRFC6455.handle(WebSocketConnectionRFC6455.java:225)

12:44:41,697 ERROR [stderr] (qtp936717879-140) 	at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)

12:44:41,698 ERROR [stderr] (qtp936717879-140) 	at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)

12:44:41,698 ERROR [stderr] (qtp936717879-140) 	at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)

12:44:41,699 ERROR [stderr] (qtp936717879-140) 	at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)

12:44:41,699 ERROR [stderr] (qtp936717879-140) 	at
java.lang.Thread.run(Thread.java:745)





--
View this message in context: http://activemq.2283324.n4.nabble.com/Adding-activemq-jetty-all-jar-for-using-ws-doesn-t-allow-me-anymore-getting-jboss-exposed-ejb-tp4727190.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message