0 Replies Latest reply on Jun 12, 2019 11:18 AM by sajeeb

    Problem with calling Remote EJBs in JBoss EAP 7.2.

    sajeeb

      Hi there,

      I am having some issues with the application running on tomcat 8.5 to call remote EJB located on JBoss EAP 7.2. It's been working just fine for JBoss EAP 6.4 until migrating to EAP 7.2. I know JBoss EAP 7.1/7.2 added https-remoting in addition to the remote protocol. May be something is conflicting there when I want to use only remote protocol as before.

       

       

      I've already tried this solution from redhat: https://access.redhat.com/solutions/3802121. However, my problem did not get resolved and I am still getting this exception (application specific code is non shareable, so represented by "..."):

       

       

      javax.faces.FacesException: #{...}: javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB StatelessEJBLocator for "/.../...", view is interface ..., affinity is None

              at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)

       

       

      Suppressed: java.io.IOException: Invalid response

                      at org.xnio.http.HttpUpgradeParser.parseVersion(HttpUpgradeParser.java:164)

                      at org.xnio.http.HttpUpgradeParser.parse(HttpUpgradeParser.java:55)

                      at org.xnio.http.HttpUpgrade$HttpUpgradeState$UpgradeResultListener.handleEvent(HttpUpgrade.java:419)

                      at org.xnio.http.HttpUpgrade$HttpUpgradeState$UpgradeResultListener.handleEvent(HttpUpgrade.java:400)

                      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)

                      at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)

                      at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89)

                      at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)

                      at ...asynchronous invocation...(Unknown Source)

                      at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:571)

                      at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:537)

                      at org.jboss.remoting3.ConnectionInfo$None.getConnection(ConnectionInfo.java:82)

                      at org.jboss.remoting3.ConnectionInfo.getConnection(ConnectionInfo.java:55)

                      at org.jboss.remoting3.EndpointImpl.doGetConnection(EndpointImpl.java:488)

                      at org.jboss.remoting3.EndpointImpl.getConnectedIdentity(EndpointImpl.java:434)

                      at org.jboss.remoting3.UncloseableEndpoint.getConnectedIdentity(UncloseableEndpoint.java:52)

                      at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.getConnectedIdentityUsingClusterEffective(RemotingEJBDiscoveryProvider.java:311)

                      at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider$DiscoveryAttempt.lambda$connectAndDiscover$0(RemotingEJBDiscoveryProvider.java:384)

                      at java.security.AccessController.doPrivileged(Native Method)

                      at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider$DiscoveryAttempt.connectAndDiscover(RemotingEJBDiscoveryProvider.java:384)

                      at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.discover(RemotingEJBDiscoveryProvider.java:209)

                      at org.jboss.ejb.protocol.remote.RemoteEJBDiscoveryConfigurator.lambda$configure$0(RemoteEJBDiscoveryConfigurator.java:42)

                      at org.wildfly.discovery.ConfiguredProvider.discover(ConfiguredProvider.java:45)

                      at org.wildfly.discovery.Discovery.discover(Discovery.java:100)

                      at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.discover(DiscoveryEJBClientInterceptor.java:242)

                      at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.doAnyDiscovery(DiscoveryEJBClientInterceptor.java:371)

                      at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.executeDiscovery(DiscoveryEJBClientInterceptor.java:305)

                      at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocation(DiscoveryEJBClientInterceptor.java:95)

                      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)

                      at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocation(NamingEJBClientInterceptor.java:64)

                      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)

                      at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:165)

                      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)

                      at org.wildfly.common.context.Contextual.runExConsumer(Contextual.java:203)

                      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequestInitial(EJBClientInvocationContext.java:327)

                      at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:173)

                      ... 53 more

       

       

      Does anybody have any idea how to resolve this issue? Thanks in advance!