Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BD6ED200C8E for ; Thu, 8 Jun 2017 14:50:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BC05C160BE5; Thu, 8 Jun 2017 12:50:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0EDE1160BCA for ; Thu, 8 Jun 2017 14:50:55 +0200 (CEST) Received: (qmail 49069 invoked by uid 500); 8 Jun 2017 12:50:55 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 49043 invoked by uid 99); 8 Jun 2017 12:50:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jun 2017 12:50:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 70E24C6A4A for ; Thu, 8 Jun 2017 12:50:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.487 X-Spam-Level: **** X-Spam-Status: No, score=4.487 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=1] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id HBRNufsaXVhc for ; Thu, 8 Jun 2017 12:50:50 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id A33715F2AE for ; Thu, 8 Jun 2017 12:50:49 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 023A448589C1B for ; Thu, 8 Jun 2017 05:50:49 -0700 (MST) Date: Thu, 8 Jun 2017 05:35:19 -0700 (PDT) From: aragoubi To: users@activemq.apache.org Message-ID: <1496925319361-4727190.post@n4.nabble.com> Subject: Adding activemq jetty-all jar for using ws doesn't allow me anymore getting jboss exposed ejb MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Thu, 08 Jun 2017 12:50:56 -0000 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.