1 2 Previous Next 15 Replies Latest reply on Mar 14, 2018 10:21 AM by azepeda

    Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11

    h.sharma

      HI,

       

      I am trying to invoke an EJB deployed on say server1 from a client application say deployed on server2 via JNDI lookup. Both the servers are running on wildfly11.

      Below is the configuration from standalone-full.xml from the server1 where EJB's are deployed:

                EJB Subsystem:

      1. <subsystem xmlns="urn:jboss:domain:ejb3:5.0"
      2. ... 
      3.     <application-security-domains> 
      4.         <application-security-domain name="other" security-domain="ApplicationDomain"/> 
      5.     </application-security-domains> 
      6. ... 
      7. </subsystem>

       

              Remoting Subsystem:     

                <subsystem xmlns="urn:jboss:domain:remoting:4.0">

                       <endpoint/>

                       <http-connector name="http-remoting-connector" connector-ref="default" sasl-authentication-factory="application-sasl-authentication"/>

               </subsystem>

      Also I have added @SecurityDomain("others") to all my EJB Implementations.

       

      Below is the configuration from standalone-full.xml from the server2 , the client application from where i am trying to invoke the remote EJB:

       

           Remoting Subsystem:

            <subsystem xmlns="urn:jboss:domain:remoting:4.0">

                  <endpoint/>

                  <outbound-connections>

                       <remote-outbound-connection name="remote-ejb-connection" outbound-socket-binding-ref="remote-ejb" authentication-context="ejb-auth-context">

                      </remote-outbound-connection>

                  </outbound-connections>

                  <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>

                </subsystem>

       

          Elytron Subsystem:

                 <subsystem xmlns="urn:wildfly:elytron:1.2" final-providers="combined-providers" disallowed-providers="OracleUcrypto">

                  <authentication-client>

                      <authentication-configuration name="ejb-auth-config" authentication-name="ejb">

                      <credential-reference clear-text="secret"/>

                      </authentication-configuration>

                      <authentication-context name="ejb-auth-context">

                          <match-rule authentication-configuration="ejb-auth-config"/>

                      </authentication-context>

                   </authentication-client>

       

           Outbound Socket configuration:

            <outbound-socket-binding name="remote-ejb">

                  <remote-destination host="server1" port="8080"/>

              </outbound-socket-binding>

       

       

      Below is the code for invocation on the client side:

            Properties remoteContextProps = new Properties();

             //remoteContextProps.put(Context.URL_PKG_PREFIXES, URL_PKG_PREFIXES);

             // remoteContextProps.put("jboss.naming.client.ejb.context", "true");

             remoteContextProps.put(Context.INITIAL_CONTEXT_FACTORY,  "org.wildfly.naming.client.WildFlyInitialContextFactory");

            // remoteContextProps.put(Context.PROVIDER_URL, EJB_REMOTING_URL);

           return (UserRemote) InitialContext(remoteContextProps).lookup(ejb:ear.project/ejb.project/UserSessionBean!com.test.ejb.entityfacade.remote.UserRemote);

       

      Using the above configuration when i try to invoke the EJB i am getting the below error on the client side:

       

      2018-02-21 07:54:41,575 ERROR [com.test.publisher.ws.handler.BaseHandler] (default task-7) EJBException occured during asset type list.: javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB StatelessEJBLocator for "ear.project/ejb.project/UserSessionBean", view is interface com.test.ejb.entityfacade.remote.UserRemote, affinity is None

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:567)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocationResult(RemotingEJBClientInterceptor.java:56)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocationResult(TransactionPostDiscoveryInterceptor.java:133)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocationResult(DiscoveryEJBClientInterceptor.java:118)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocationResult(NamingEJBClientInterceptor.java:78)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:172)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:907)

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

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

              at com.sun.proxy.$Proxy149.getMediaTestTypes(Unknown Source)

              at com.test.publisher.ws.processor.TestProcessor.listTestTypes(TestProcessor.java:133)

              at com.test.publisher.ws.handler.TestHandler.listTestTypes(TestHandler.java:155)

              at com.test.publisher.ws.resource.TestResource.listTestTypes(TestResource.java:227)

              at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldSubclass.listTestTypes$$super(Unknown Source)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.interceptor.proxy.TerminalAroundInvokeInvocationContext.proceedInternal(TerminalAroundInvokeInvocationContext.java:49)

              at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

              at com.test.publisher.ws.resource.interceptor.PreventionInterceptor.intercept(PreventionInterceptor.java:39)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

              at org.jboss.weld.interceptor.proxy.NonTerminalAroundInvokeInvocationContext.proceedInternal(NonTerminalAroundInvokeInvocationContext.java:64)

              at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

              at com.test.publisher.ws.resource.interceptor.AuthorizeInterceptor.intercept(AuthorizeInterceptor.java:44)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

              at org.jboss.weld.interceptor.proxy.NonTerminalAroundInvokeInvocationContext.proceedInternal(NonTerminalAroundInvokeInvocationContext.java:64)

              at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

              at com.test.publisher.ws.resource.interceptor.AuthenticateInterceptor.intercept(AuthenticateInterceptor.java:29)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

              at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeAroundInvoke(InterceptorMethodHandler.java:84)

              at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:72)

              at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:56)

              at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:79)

              at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:68)

              at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldSubclass.listTestTypes(Unknown Source)

              at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldClientProxy.listTestTypes(Unknown Source)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

              at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)

              at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)

              at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)

              at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

              at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)

              at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

              at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

              at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)

              at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)

              at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)

              at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)

              at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)

              at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)

              at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

              at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

              at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

              at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

              at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

              at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

              at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

              at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

              at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

              at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

              at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)

              at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)

              at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)

              at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)

              at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)

              at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

              at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)

              at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

              at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)

              at io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)

              at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

              at java.lang.Thread.run(Thread.java:748)

       

       

      2018-02-21 07:54:41,575 ERROR [com.test.publisher.ws.handler.BaseHandler] (default task-7) EJBException occured during asset type list.: javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB StatelessEJBLocator for "ear.project/ejb.project/UserSessionBean", view is interface com.test.ejb.entityfacade.remote.UserRemote, affinity is None

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:567)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocationResult(RemotingEJBClientInterceptor.java:56)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocationResult(TransactionPostDiscoveryInterceptor.java:133)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocationResult(DiscoveryEJBClientInterceptor.java:118)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocationResult(NamingEJBClientInterceptor.java:78)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:172)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:907)

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

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

              at com.sun.proxy.$Proxy149.getMediaTestTypes(Unknown Source)

              at com.test.publisher.ws.processor.TestProcessor.listMediaTypes(TestProcessor.java:122)

              at com.test.publisher.ws.handler.TestHandler.listMediaTypes(TestHandler.java:138)

              at com.test.publisher.ws.resource.TestResource.listMediaTypes(TestResource.java:212)

              at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldSubclass.listMediaTypes$$super(Unknown Source)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.interceptor.proxy.TerminalAroundInvokeInvocationContext.proceedInternal(TerminalAroundInvokeInvocationContext.java:49)

              at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

              at com.test.publisher.ws.resource.interceptor.PreventionInterceptor.intercept(PreventionInterceptor.java:39)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

              at org.jboss.weld.interceptor.proxy.NonTerminalAroundInvokeInvocationContext.proceedInternal(NonTerminalAroundInvokeInvocationContext.java:64)

              at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

              at com.test.publisher.ws.resource.interceptor.AuthorizeInterceptor.intercept(AuthorizeInterceptor.java:44)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

              at org.jboss.weld.interceptor.proxy.NonTerminalAroundInvokeInvocationContext.proceedInternal(NonTerminalAroundInvokeInvocationContext.java:64)

              at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

              at com.test.publisher.ws.resource.interceptor.AuthenticateInterceptor.intercept(AuthenticateInterceptor.java:29)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

              at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeAroundInvoke(InterceptorMethodHandler.java:84)

              at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:72)

              at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:56)

              at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:79)

              at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:68)

              at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldSubclass.listMediaTypes(Unknown Source)

              at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldClientProxy.listMediaTypes(Unknown Source)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

              at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)

              at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)

              at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)

              at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

              at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)

              at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

              at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

              at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)

              at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)

              at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)

              at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)

              at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)

              at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)

              at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

              at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

              at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

              at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

              at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

              at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

              at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

              at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

              at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

              at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

              at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)

              at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)

              at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)

              at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)

              at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)

              at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

              at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)

              at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

              at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)

              at io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)

              at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

              at java.lang.Thread.run(Thread.java:748)

       

       

      Adding below line to the client code snippet above i get the error mentioned below :

               Client Code:

       

                 Properties remoteContextProps = new Properties();

                  //remoteContextProps.put(Context.URL_PKG_PREFIXES, URL_PKG_PREFIXES);

                  // remoteContextProps.put("jboss.naming.client.ejb.context", "true");

                  remoteContextProps.put(Context.INITIAL_CONTEXT_FACTORY,  "org.wildfly.naming.client.WildFlyInitialContextFactory");

                 // remoteContextProps.put(Context.PROVIDER_URL, "remote+http://server1:8080");

                return (UserRemote) InitialContext(remoteContextProps).lookup(ejb:ear.project/ejb.project/UserSessionBean!com.test.ejb.entityfacade.remote.UserRemote);

       

               Error with the above client code:

              

               2018-02-21 08:32:23,481 ERROR [com.test.publisher.ws.handler.BaseHandler] (default task-11) Throwable occured during asset type list.: org.jboss.ejb.client.RequestSendFailedException: EJBCLIENT000409: No more destinations are available

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:567)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocationResult(RemotingEJBClientInterceptor.java:56)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocationResult(TransactionPostDiscoveryInterceptor.java:133)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocationResult(DiscoveryEJBClientInterceptor.java:118)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocationResult(NamingEJBClientInterceptor.java:78)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:172)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

              at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

              at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:907)

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

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

              at com.sun.proxy.$Proxy149.getMediaTestTypes(Unknown Source)

              at com.test.publisher.ws.processor.TestProcessor.listTestTypes(TestProcessor.java:133)

              at com.test.publisher.ws.handler.TestHandler.listTestTypes(TestHandler.java:155)

              at com.test.publisher.ws.resource.TestResource.listTestTypes(TestResource.java:227)

              at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldSubclass.listTestTypes$$super(Unknown Source)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.interceptor.proxy.TerminalAroundInvokeInvocationContext.proceedInternal(TerminalAroundInvokeInvocationContext.java:49)

              at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

              at com.test.publisher.ws.resource.interceptor.PreventionInterceptor.intercept(PreventionInterceptor.java:39)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

              at org.jboss.weld.interceptor.proxy.NonTerminalAroundInvokeInvocationContext.proceedInternal(NonTerminalAroundInvokeInvocationContext.java:64)

              at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

              at com.test.publisher.ws.resource.interceptor.AuthorizeInterceptor.intercept(AuthorizeInterceptor.java:44)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

              at org.jboss.weld.interceptor.proxy.NonTerminalAroundInvokeInvocationContext.proceedInternal(NonTerminalAroundInvokeInvocationContext.java:64)

              at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

              at com.test.publisher.ws.resource.interceptor.AuthenticateInterceptor.intercept(AuthenticateInterceptor.java:29)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

              at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeAroundInvoke(InterceptorMethodHandler.java:84)

              at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:72)

              at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:56)

              at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:79)

              at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:68)

              at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldSubclass.listTestTypes(Unknown Source)

              at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldClientProxy.listTestTypes(Unknown Source)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

              at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)

              at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)

              at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)

              at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

              at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)

              at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

              at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

              at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)

              at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)

              at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)

              at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)

              at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)

              at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)

              at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

              at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

              at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

              at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

              at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

              at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

              at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

              at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

              at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

              at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

              at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)

              at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)

              at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)

              at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)

              at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)

              at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)

              at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

              at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

              at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)

              at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

              at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)

              at io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)

              at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

              at java.lang.Thread.run(Thread.java:748)

              Suppressed: org.jboss.ejb.client.RequestSendFailedException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed:

         JBOSS-LOCAL-USER: javax.security.sasl.SaslException: ELY05128: [JBOSS-LOCAL-USER] Failed to read challenge file [Caused by java.io.FileNotFoundException: /tmp/local2344456256625810187.challenge (No such file or directory)]

                      at org.jboss.ejb.protocol.remote.RemoteEJBReceiver$1.handleFailed(RemoteEJBReceiver.java:101)

                      at org.jboss.ejb.protocol.remote.RemoteEJBReceiver$1.handleFailed(RemoteEJBReceiver.java:74)

                      at org.xnio.IoFuture$HandlingNotifier.notify(IoFuture.java:215)

                      at org.xnio.AbstractIoFuture$NotifierRunnable.run(AbstractIoFuture.java:720)

                      at org.jboss.remoting3.EndpointImpl$TrackingExecutor.lambda$execute$0(EndpointImpl.java:926)

                      ... 3 more

              Caused by: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed:

         JBOSS-LOCAL-USER: javax.security.sasl.SaslException: ELY05128: [JBOSS-LOCAL-USER] Failed to read challenge file [Caused by java.io.FileNotFoundException: /tmp/local2344456256625810187.challenge (No such file or directory)]

                      at org.jboss.remoting3.remote.ClientConnectionOpenListener.allMechanismsFailed(ClientConnectionOpenListener.java:109)

                      at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:446)

                      at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)

                      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:570)

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

                      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:487)

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

                      at org.jboss.remoting3.Endpoint.getConnectedIdentity(Endpoint.java:122)

                      at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.lambda$getConnection$2(RemoteEJBReceiver.java:185)

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

                      at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.getConnection(RemoteEJBReceiver.java:185)

                      at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.processInvocation(RemoteEJBReceiver.java:128)

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

                      at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocation(RemotingEJBClientInterceptor.java:51)

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

                      at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocation(TransactionPostDiscoveryInterceptor.java:79)

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

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

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

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

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

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

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

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

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

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

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

                      at com.sun.proxy.$Proxy149.getMediaTestTypes(Unknown Source)

                      at com.test.publisher.ws.processor.TestProcessor.listMediaTypes(TestProcessor.java:122)

                      at com.test.publisher.ws.handler.TestHandler.listMediaTypes(TestHandler.java:138)

                      at com.test.publisher.ws.resource.TestResource.listMediaTypes(TestResource.java:212)

                      at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldSubclass.listMediaTypes$$super(Unknown Source)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                      at java.lang.reflect.Method.invoke(Method.java:498)

                      at org.jboss.weld.interceptor.proxy.TerminalAroundInvokeInvocationContext.proceedInternal(TerminalAroundInvokeInvocationContext.java:49)

                      at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

                      at com.test.publisher.ws.resource.interceptor.PreventionInterceptor.intercept(PreventionInterceptor.java:39)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                      at java.lang.reflect.Method.invoke(Method.java:498)

                      at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

                      at org.jboss.weld.interceptor.proxy.NonTerminalAroundInvokeInvocationContext.proceedInternal(NonTerminalAroundInvokeInvocationContext.java:64)

                      at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

                      at com.test.publisher.ws.resource.interceptor.AuthorizeInterceptor.intercept(AuthorizeInterceptor.java:44)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                      at java.lang.reflect.Method.invoke(Method.java:498)

                      at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

                      at org.jboss.weld.interceptor.proxy.NonTerminalAroundInvokeInvocationContext.proceedInternal(NonTerminalAroundInvokeInvocationContext.java:64)

                      at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

                      at com.test.publisher.ws.resource.interceptor.AuthenticateInterceptor.intercept(AuthenticateInterceptor.java:29)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                      at java.lang.reflect.Method.invoke(Method.java:498)

                      at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

                      at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeAroundInvoke(InterceptorMethodHandler.java:84)

                      at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:72)

                      at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:56)

                      at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:79)

                      at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:68)

                      at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldSubclass.listMediaTypes(Unknown Source)

                      at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldClientProxy.listMediaTypes(Unknown Source)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                      at java.lang.reflect.Method.invoke(Method.java:498)

                      at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

                      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)

                      at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)

                      at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)

                      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

                      at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)

                      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

                      at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

                      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)

                      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)

                      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)

                      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)

                      at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)

                      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)

                      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

                      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

                      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

                      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

                      at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

                      at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

                      at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

                      at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

                      at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

                      at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

                      at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                      at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                      at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)

                      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)

                      at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)

                      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)

                      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)

                      at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)

                      at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

                      at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)

                      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

                      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

                      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

                      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

                      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

                      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)

                      at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

                      at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)

                      at io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)

                      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)

                      ... 3 more

                      Suppressed: javax.security.sasl.SaslException: ELY05128: [JBOSS-LOCAL-USER] Failed to read challenge file [Caused by java.io.FileNotFoundException: /tmp/local2344456256625810187.challenge (No such file or directory)]

                              at org.wildfly.security.sasl.localuser.LocalUserClient.evaluateMessage(LocalUserClient.java:107)

                              at org.wildfly.security.sasl.util.AbstractSaslParticipant.evaluateMessage(AbstractSaslParticipant.java:180)

                              at org.wildfly.security.sasl.util.AbstractSaslClient.evaluateChallenge(AbstractSaslClient.java:59)

                              at org.wildfly.security.sasl.util.AbstractDelegatingSaslClient.evaluateChallenge(AbstractDelegatingSaslClient.java:54)

                              at org.wildfly.security.sasl.util.PrivilegedSaslClient.lambda$evaluateChallenge$0(PrivilegedSaslClient.java:55)

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

                              at org.wildfly.security.sasl.util.PrivilegedSaslClient.evaluateChallenge(PrivilegedSaslClient.java:55)

                              at org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication.lambda$handleEvent$0(ClientConnectionOpenListener.java:650)

                              at org.jboss.remoting3.EndpointImpl$TrackingExecutor.lambda$execute$0(EndpointImpl.java:926)

                              ... 3 more

                      Caused by: java.io.FileNotFoundException: /tmp/local2344456256625810187.challenge (No such file or directory)

                              at java.io.FileInputStream.open0(Native Method)

                              at java.io.FileInputStream.open(FileInputStream.java:195)

                              at java.io.FileInputStream.<init>(FileInputStream.java:138)

                              at org.wildfly.security.sasl.localuser.LocalUserClient.evaluateMessage(LocalUserClient.java:93)

                              ... 11 more

       

      Can someone help with this. I am not sure which configuration i am missing here . Please help

        • 1. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
          mchoma

          I would say

          <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/> is applied in this case.

          Only JBOSS-LOCAL-USER authentication is tried, which can't work on remote access.

          And I suppose it is because you did not provide username password on client side in your case remoteContextProps.

          • 2. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
            h.sharma

            HI Martin,

             

            I had tried by adding the username and password in the client side. Below is the code snippet:

             

                 remoteContextProps.put(Context.INITIAL_CONTEXT_FACTORY,  "org.wildfly.naming.client.WildFlyInitialContextFactory");

                remoteContextProps.put(Context.SECURITY_PRINCIPAL, "ejb");

                remoteContextProps.put(Context.SECURITY_CREDENTIALS, "secret");

                 remoteContextProps.put(Context.PROVIDER_URL, "remote+http://server1:8080");

                return (UserRemote) InitialContext(remoteContextProps).lookup(ejb:ear.project/ejb.project/UserSessionBean!com.test.ejb.entityfacade.remote.UserRemote)

             

            Now i am getting the below error :

             

            2018-02-21 06:57:21,717 ERROR [com.test.publisher.ws.handler.BaseHandler] (default task-16) Throwable occured during asset type list.: org.jboss.ejb.client

            .RequestSendFailedException: EJBCLIENT000409: No more destinations are available

                    at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:567)

                    at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

                    at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocationResult(RemotingEJBClientInterceptor.java:56)

                    at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

                    at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

                    at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocationResult(TransactionPostDiscoveryInterceptor.java:133)

                    at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

                    at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

                    at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocationResult(DiscoveryEJBClientInterceptor.java:118)

                    at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

                    at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

                    at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocationResult(NamingEJBClientInterceptor.java:78)

                    at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

                    at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

                    at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:172)

                    at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:569)

                    at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:503)

                    at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:907)

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

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

                    at com.sun.proxy.$Proxy149.getMediaTestTypes(Unknown Source)

                    at com.test.publisher.ws.processor.TestProcessor.listTestTypes(TestProcessor.java:133)

                    at com.test.publisher.ws.handler.TestHandler.listTestTypes(TestHandler.java:155)

                    at com.test.publisher.ws.resource.TestResource.listTestTypes(TestResource.java:227)

                    at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldSubclass.listTestTypes$$super(Unknown Source)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                    at java.lang.reflect.Method.invoke(Method.java:498)

                    at org.jboss.weld.interceptor.proxy.TerminalAroundInvokeInvocationContext.proceedInternal(TerminalAroundInvokeInvocationContext.java:49)

                    at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

                    at com.test.publisher.ws.resource.interceptor.PreventionInterceptor.intercept(PreventionInterceptor.java:39)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                    at java.lang.reflect.Method.invoke(Method.java:498)

                    at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

                    at org.jboss.weld.interceptor.proxy.NonTerminalAroundInvokeInvocationContext.proceedInternal(NonTerminalAroundInvokeInvocationContext.java:64)

                    at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

                    at com.test.publisher.ws.resource.interceptor.AuthorizeInterceptor.intercept(AuthorizeInterceptor.java:44)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                     at java.lang.reflect.Method.invoke(Method.java:498)

            at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

            at org.jboss.weld.interceptor.proxy.NonTerminalAroundInvokeInvocationContext.proceedInternal(NonTerminalAroundInvokeInvocationContext.java:64)

            at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:77)

            at com.test.publisher.ws.resource.interceptor.AuthenticateInterceptor.intercept(AuthenticateInterceptor.java:29)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:498)

            at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

            at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeAroundInvoke(InterceptorMethodHandler.java:84)

            at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:72)

            at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:56)

            at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:79)

            at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:68)

            at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldSubclass.listTestTypes(Unknown Source)

            at com.test.publisher.ws.resource.TestResource$Proxy$_$$_WeldClientProxy.listTestTypes(Unknown Source)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            at java.lang.reflect.Method.invoke(Method.java:498)

            at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

            at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)

            at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)

            at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)

            at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

            at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)

            at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

            at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

            at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)

            at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)

            at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)

            at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)

            at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)

            at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)

            at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)

            at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

            at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

            at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

            at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

            at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

            at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

            at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

            at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

                    at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                    at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

                    at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

                    at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

                    at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

                    at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

                    at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                    at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                    at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)

                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                    at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)

                    at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)

                    at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)

                    at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)

                    at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)

                    at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)

                    at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)

                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)

                    at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)

                    at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

                    at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)

                    at io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)

                    at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)

                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

                    at java.lang.Thread.run(Thread.java:748)

                    Suppressed: org.jboss.ejb.client.RequestSendFailedException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed:

               JBOSS-LOCAL-USER: javax.security.sasl.SaslException: ELY05128: [JBOSS-LOCAL-USER] Failed to read challenge file [Caused by java.io.FileNotFoundException: /tmp/local8101428068440737180.challenge (No such file or directory)]

               DIGEST-MD5: javax.security.sasl.SaslException: DIGEST-MD5: Server rejected authentication

                            at org.jboss.ejb.protocol.remote.RemoteEJBReceiver$1.handleFailed(RemoteEJBReceiver.java:101)

            at org.jboss.ejb.protocol.remote.RemoteEJBReceiver$1.handleFailed(RemoteEJBReceiver.java:74)

            at org.xnio.IoFuture$HandlingNotifier.notify(IoFuture.java:215)

                            at org.xnio.AbstractIoFuture$NotifierRunnable.run(AbstractIoFuture.java:720)

                            at org.jboss.remoting3.EndpointImpl$TrackingExecutor.lambda$execute$0(EndpointImpl.java:926)

                            ... 3 more

                    Caused by: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed:

               JBOSS-LOCAL-USER: javax.security.sasl.SaslException: ELY05128: [JBOSS-LOCAL-USER] Failed to read challenge file [Caused by java.io.FileNotFoundException: /tmp/local8101428068440737180.challenge (No such file or directory)]

               DIGEST-MD5: javax.security.sasl.SaslException: DIGEST-MD5: Server rejected authentication

                            at org.jboss.remoting3.remote.ClientConnectionOpenListener.allMechanismsFailed(ClientConnectionOpenListener.java:109)

                            at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:402)

                            at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:242)

                            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:570)

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

                            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:487)

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

                            at org.jboss.remoting3.Endpoint.getConnectedIdentity(Endpoint.java:122)

                            at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.lambda$getConnection$2(RemoteEJBReceiver.java:185)

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

                            at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.getConnection(RemoteEJBReceiver.java:185)

                            at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.processInvocation(RemoteEJBReceiver.java:128)

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

                            at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocation(RemotingEJBClientInterceptor.java:51)

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

                            at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocation(TransactionPostDiscoveryInterceptor.java:79)

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

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

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

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

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

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

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

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

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

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

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

                            at com.sun.proxy.$Proxy149.getMediaTestTypes(Unknown Source)

                            at com.test.publisher.ws.processor.TestProcessor.listMediaTypes(TestProcessor.java:122)

                            at com.test.publisher.ws.handler.TestHandler.listMediaTypes(TestHandler.java:138)

                            at com.test.publisher.ws.resource.TestResource.listMediaTypes(TestResource.java:212)

             

             

            Let me know if i need to change the <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/> config.

            Do we need to add this username/password in server end also?..

             

            Thanks in advance.

            Regards

            Himanshu

            • 3. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
              andey

              It looks like you're using ApplicationRealm for remote authentication as well. Have you updated below line with jaas realm.

              <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>

               

              Also, try to set SASL_POLICY_NOANONYMOUS and SASL_POLICY_NOPLAINTEXT to false on client side.

               

              - This exception means the $local as shown below in the attached JBoss profile xml is enabled. $local will attempt a file based challenge, if the caller is on the same sever as the server and $local authentication is allowed as it is in the config below, authentication can be checked by seeing if the calling process can create a file under the $JBOSS_HOME/ directory and it if can it will be authenticated without checking the password.

               

              <management>

                      <security-realms>

                          ...

                          </security-realm>

                          <security-realm name="ApplicationRealm">

                              <authentication>

                                  <local default-user="$local" allowed-users="*" skip-group-loading="true"/>

                                  <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>

                                  ...

               

              You need to review the client configuration and server side configuration to ensure the client is specifying valid authentication credentials (username/password) and that it matches up with what the server is configured to accept.

               

              If the server is configured to allow the $local it will attempt a file based authentication challenge where if the client can create a file under the $JBOSS_HOME directory then it will be authenticated without checking any further credentials.

               

              This file challenge will only work if the client is running on the same machine as the server and as an operating user that has write access to the $JBOSS_HOME directory. The file based authentication challenge can be disabled by removing the $local configuration from the authentication section in the JBoss profile xml.

               

              Also go through these 2 guides for WildFly 11 and see if they help:

               

              Getting started with EJBs and Elytron Part 1: Securing EJBs and invoking them from remote clients

              Getting started with EJBs and Elytron Part 2: EJB invocations from remote servers

               

               

              • 4. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
                mchoma

                It is correct. DIGEST-MD5 in log means password authentication is activated. You need to add application user "ejb/secret" on server using ${jboss.home}/bin/add-user.sh now.

                • 5. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
                  h.sharma

                  Hi Martin,

                   

                  After adding the username/password on the server , the remote EJB invocation is working fine between client(server2) and server(server1).

                  But now i am getting the below error while invoking the local session EJB's deployed on the client application server(server1) itself.

                   

                  2018-02-22 06:46:35,504 ERROR [org.jboss.as.ejb3.invocation] (Thread-2 (ActiveMQ-client-global-threads)) WFLYEJB0034: EJB Invocation failed on component IndexSessionBean for method public abstract void com.test.publisher.ejb.sessionfacade.local.IndexLocal.indexGroup(java.lang.Long,java.lang.String) throws javax.naming.NamingException: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleEndTransactionException(CMTTxInterceptor.java:138)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:118)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:279)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:332)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:240)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)

                          at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)

                          at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)

                          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:609)

                          at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)

                          at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)

                          at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                          at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)

                          at com.test.publisher.ejb.sessionfacade.local.IndexLocal$$$view22.indexGroup(Unknown Source)

                          at com.test.publisher.ejb.messagefacade.IndexMDB.onMessage(IndexMDB.java:45)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)

                          at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:90)

                          at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101)

                          at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)

                          at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:264)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:318)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:238)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)

                          at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)

                          at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:239)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)

                          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:609)

                          at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)

                          at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)

                          at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                          at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)

                          at com.test.publisher.ejb.messagefacade.IndexMDB$$$view24.onMessage(Unknown Source)

                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                          at java.lang.reflect.Method.invoke(Method.java:498)

                          at org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:139)

                          at org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73)

                          at com.test.publisher.ejb.messagefacade.IndexMDB$$$endpoint7.onMessage(Unknown Source)

                          at org.apache.activemq.artemis.ra.inflow.ActiveMQMessageHandler.onMessage(ActiveMQMessageHandler.java:303)

                          at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:1001)

                          at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.access$400(ClientConsumerImpl.java:49)

                          at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1124)

                          at org.apache.activemq.artemis.utils.OrderedExecutorFactory$OrderedExecutor$ExecutorTask.run(OrderedExecutorFactory.java:122)

                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

                          at java.lang.Thread.run(Thread.java:748)

                  Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.

                          at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1301)

                          at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)

                          at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:89)

                          at org.wildfly.transaction.client.LocalTransaction.commitAndDissociate(LocalTransaction.java:73)

                          at org.wildfly.transaction.client.ContextTransactionManager.commit(ContextTransactionManager.java:71)

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:92)

                          ... 112 more

                  Caused by: org.wildfly.transaction.client.SynchronizationException: javax.transaction.xa.XAException: WFTXN0034: Failed to acquire a connection for this operation

                          at org.wildfly.transaction.client.XAOutflowedResources$1.beforeCompletion(XAOutflowedResources.java:83)

                          at org.wildfly.transaction.client.AbstractTransaction.performConsumer(AbstractTransaction.java:209)

                          at org.wildfly.transaction.client.AbstractTransaction.performConsumer(AbstractTransaction.java:220)

                          at org.wildfly.transaction.client.AbstractTransaction$AssociatingSynchronization.beforeCompletion(AbstractTransaction.java:265)

                          at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)

                          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:368)

                          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91)

                          at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)

                          at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1289)

                          ... 117 more

                  Caused by: javax.transaction.xa.XAException: WFTXN0034: Failed to acquire a connection for this operation

                          at org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer.getPeerIdentityXA(RemotingRemoteTransactionPeer.java:94)

                          at org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer$1.beforeCompletion(RemotingRemoteTransactionPeer.java:166)

                          at org.wildfly.transaction.client.SubordinateXAResource.beforeCompletion(SubordinateXAResource.java:135)

                          at org.wildfly.transaction.client.XAOutflowedResources$1.beforeCompletion(XAOutflowedResources.java:70)

                          ... 125 more

                  Caused by: org.wildfly.security.auth.AuthenticationException: JBREM000308: Authentication failed (no mechanisms left), tried:

                     JBOSS-LOCAL-USER: org.wildfly.security.auth.AuthenticationException: JBREM000300: Authentication failed due to I/O error

                          at org.jboss.remoting3.ConnectionPeerIdentityContext.doAuthenticate(ConnectionPeerIdentityContext.java:368)

                          at org.jboss.remoting3.ConnectionPeerIdentityContext.authenticate(ConnectionPeerIdentityContext.java:174)

                          at org.jboss.remoting3.EndpointImpl$3.handleDone(EndpointImpl.java:505)

                          at org.jboss.remoting3.EndpointImpl$3.handleDone(EndpointImpl.java:494)

                          at org.xnio.IoFuture$HandlingNotifier.notify(IoFuture.java:208)

                          at org.xnio.AbstractIoFuture$NotifierRunnable.run(AbstractIoFuture.java:720)

                          at org.xnio.IoUtils$2.execute(IoUtils.java:71)

                          at org.xnio.AbstractIoFuture.runNotifier(AbstractIoFuture.java:693)

                          at org.xnio.AbstractIoFuture$CompleteState.withNotifier(AbstractIoFuture.java:132)

                          at org.xnio.AbstractIoFuture.addNotifier(AbstractIoFuture.java:570)

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

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

                          at org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer.getPeerIdentity(RemotingRemoteTransactionPeer.java:87)

                          at org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer.getPeerIdentityXA(RemotingRemoteTransactionPeer.java:92)

                          ... 128 more

                   

                  IndexLocal is a local EJB deployed on the client application. Why is it doing authentication for local ejb within the client application .How do i disable that ?

                   

                   

                  Thanks & Regards

                  Himanshu Sharma

                  • 6. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
                    vivivivi

                    I noticed, you use "ebj:" without a slash after ":" to do a context lookup. This was the error in my case, as I got the same exception as you did. Perhaps you try it. For more details, see my post with example here: Re: Why is Wildfly 11 pure http invocation not working?

                    • 7. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
                      h.sharma

                      HI Ivi,

                       

                      That problem is resolved. The remote EJB invocation is working now after adding the username/password. Now i am getting the authentication error for the EJB's deployed locally on the client application.

                       

                      Regards

                      Himanshu

                      • 8. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
                        h.sharma

                        Also receive a warning just before the error ...Not sure if it is related. The com.test.publisher.ejb.sessionfacade.local.IndexLocal.is locally deployed EJB on the client server . Not sure why this remote authentication is taking place:

                         

                        The error is :

                        2018-02-22 09:51:00,166 ERROR [org.jboss.as.ejb3.invocation] (Thread-1 (ActiveMQ-client-global-threads)) WFLYEJB0034: EJB Invocation failed on component IndexSessionBean for method public abstract void com.test.publisher.ejb.sessionfacade.local.IndexLocal.indexGroup(java.lang.Long,java.lang.String) throws javax.naming.NamingException: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back

                         

                        Below is the complete stack trace:

                         

                        2018-02-22 09:51:00,161 WARN  [com.arjuna.ats.jta] (Thread-1 (ActiveMQ-client-global-threads)) ARJUNA016045: attempted rollback of < formatId=131077, gtrid_length=29, bqual_length=36, tx_uid=0:ffff0a0ccc76:-4d190a6e:5a8ed71a:26a, node_name=1, branch_uid=0:ffff0a0ccc76:-4d190a6e:5a8ed71a:280, subordinatenodename=null, eis_name=unknown eis name > (Subordinate XAResource at remote+http://msrvd-ejb1a-wf11-01:8080) failed with exception code XAException.XAER_RMFAIL: javax.transaction.xa.XAException: WFTXN0034: Failed to acquire a connection for this operation

                                at org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer.getPeerIdentityXA(RemotingRemoteTransactionPeer.java:94)

                                at org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer$1.rollback(RemotingRemoteTransactionPeer.java:148)

                                at org.wildfly.transaction.client.SubordinateXAResource.rollback(SubordinateXAResource.java:147)

                                at com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelAbort(XAResourceRecord.java:330)

                                at com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:3023)

                                at com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:3002)

                                at com.arjuna.ats.arjuna.coordinator.BasicAction.Abort(BasicAction.java:1674)

                                at com.arjuna.ats.arjuna.coordinator.BasicAction.Abort(BasicAction.java:1615)

                                at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:99)

                                at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)

                                at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1289)

                                at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)

                                at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:89)

                                at org.wildfly.transaction.client.LocalTransaction.commitAndDissociate(LocalTransaction.java:73)

                                at org.wildfly.transaction.client.ContextTransactionManager.commit(ContextTransactionManager.java:71)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:92)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:279)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:332)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:240)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)

                                at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)

                                at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)

                                at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:609)

                                at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)

                                at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)

                                at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                                at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)

                                at com.test.publisher.ejb.sessionfacade.local.IndexLocal$$$view22.indexGroup(Unknown Source)

                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:498)

                                at org.jboss.weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:433)

                                at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:127)

                                at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)

                                at org.jboss.weld.bean.proxy.InjectionPointPropagatingEnterpriseTargetBeanInstance.invoke(InjectionPointPropagatingEnterpriseTargetBeanInstance.java:67)

                                at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100)

                                at com.test.publisher.ejb.sessionfacade.impl.IndexLocal$1835101199$Proxy$_$$_Weld$EnterpriseProxy$.indexGroup(Unknown Source)

                                at com.test.publisher.ejb.messagefacade.IndexMDB.onMessage(IndexMDB.java:46)

                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:498)

                                at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)

                                at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:90)

                                at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101)

                                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)

                                at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:264)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:318)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:238)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)

                                at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)

                                at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:239)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)

                                at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:609)

                                at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)

                                at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)

                                at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                                at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)

                                at com.test.publisher.ejb.messagefacade.IndexMDB$$$view24.onMessage(Unknown Source)

                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:498)

                                at org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:139)

                                at org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73)

                                at com.test.publisher.ejb.messagefacade.IndexMDB$$$endpoint6.onMessage(Unknown Source)

                                at org.apache.activemq.artemis.ra.inflow.ActiveMQMessageHandler.onMessage(ActiveMQMessageHandler.java:303)

                                at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:1001)

                                at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.access$400(ClientConsumerImpl.java:49)

                                at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1124)

                                at org.apache.activemq.artemis.utils.OrderedExecutorFactory$OrderedExecutor$ExecutorTask.run(OrderedExecutorFactory.java:122)

                                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

                                at java.lang.Thread.run(Thread.java:748)

                        Caused by: org.wildfly.security.auth.AuthenticationException: JBREM000308: Authentication failed (no mechanisms left), tried:

                           JBOSS-LOCAL-USER: org.wildfly.security.auth.AuthenticationException: JBREM000300: Authentication failed due to I/O error

                                at org.jboss.remoting3.ConnectionPeerIdentityContext.doAuthenticate(ConnectionPeerIdentityContext.java:368)

                                at org.jboss.remoting3.ConnectionPeerIdentityContext.authenticate(ConnectionPeerIdentityContext.java:174)

                                at org.jboss.remoting3.EndpointImpl$3.handleDone(EndpointImpl.java:505)

                                at org.jboss.remoting3.EndpointImpl$3.handleDone(EndpointImpl.java:494)

                                at org.xnio.IoFuture$HandlingNotifier.notify(IoFuture.java:208)

                                at org.xnio.AbstractIoFuture$NotifierRunnable.run(AbstractIoFuture.java:720)

                                at org.xnio.IoUtils$2.execute(IoUtils.java:71)

                                at org.xnio.AbstractIoFuture.runNotifier(AbstractIoFuture.java:693)

                                at org.xnio.AbstractIoFuture$CompleteState.withNotifier(AbstractIoFuture.java:132)

                                at org.xnio.AbstractIoFuture.addNotifier(AbstractIoFuture.java:570)

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

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

                                at org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer.getPeerIdentity(RemotingRemoteTransactionPeer.java:87)

                                at org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer.getPeerIdentityXA(RemotingRemoteTransactionPeer.java:92)

                                ... 137 more

                         

                         

                        2018-02-22 09:51:00,163 WARN  [com.arjuna.ats.arjuna] (Thread-1 (ActiveMQ-client-global-threads)) ARJUNA012091: Top-level abort of action 0:ffff0a0ccc76:-4d190a6e:5a8ed71a:26a received TwoPhaseOutcome.FINISH_ERROR from com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord

                        2018-02-22 09:51:00,166 ERROR [org.jboss.as.ejb3.invocation] (Thread-1 (ActiveMQ-client-global-threads)) WFLYEJB0034: EJB Invocation failed on component IndexSessionBean for method public abstract void com.test.publisher.ejb.sessionfacade.local.IndexLocal.indexGroup(java.lang.Long,java.lang.String) throws com.amazonaws.util.json.JSONException,javax.naming.NamingException: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleEndTransactionException(CMTTxInterceptor.java:138)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:118)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:279)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:332)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:240)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)

                                at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)

                                at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)

                                at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:609)

                                at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)

                                at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)

                                at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                                at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)

                                at com.test.publisher.ejb.sessionfacade.local.IndexLocal$$$view22.indexGroup(Unknown Source)

                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:498)

                                at org.jboss.weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:433)

                                at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:127)

                                at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)

                                at org.jboss.weld.bean.proxy.InjectionPointPropagatingEnterpriseTargetBeanInstance.invoke(InjectionPointPropagatingEnterpriseTargetBeanInstance.java:67)

                                at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100)

                                at com.test.publisher.ejb.sessionfacade.impl.IndexLocal$1835101199$Proxy$_$$_Weld$EnterpriseProxy$.indexGroup(Unknown Source)

                                at com.test.publisher.ejb.messagefacade.IndexMDB.onMessage(IndexMDB.java:46)

                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:498)

                                at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)

                                at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:90)

                                at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101)

                                at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)

                                at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:264)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:318)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:238)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)

                                at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)

                                at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:239)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)

                                at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:609)

                                at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)

                                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

                                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)

                                at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)

                                at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

                                at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:81)

                                at com.test.publisher.ejb.messagefacade.IndexMDB$$$view24.onMessage(Unknown Source)

                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                                at java.lang.reflect.Method.invoke(Method.java:498)

                                at org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:139)

                                at org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73)

                                at com.test.publisher.ejb.messagefacade.IndexMDB$$$endpoint6.onMessage(Unknown Source)

                                at org.apache.activemq.artemis.ra.inflow.ActiveMQMessageHandler.onMessage(ActiveMQMessageHandler.java:303)

                                at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:1001)

                                at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.access$400(ClientConsumerImpl.java:49)

                                at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1124)

                                at org.apache.activemq.artemis.utils.OrderedExecutorFactory$OrderedExecutor$ExecutorTask.run(OrderedExecutorFactory.java:122)

                                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

                                at java.lang.Thread.run(Thread.java:748)

                        Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.

                                at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1301)

                                at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)

                                at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:89)

                                at org.wildfly.transaction.client.LocalTransaction.commitAndDissociate(LocalTransaction.java:73)

                                at org.wildfly.transaction.client.ContextTransactionManager.commit(ContextTransactionManager.java:71)

                                at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:92)

                                ... 122 more

                        Caused by: org.wildfly.transaction.client.SynchronizationException: javax.transaction.xa.XAException: WFTXN0034: Failed to acquire a connection for this operation

                                at org.wildfly.transaction.client.XAOutflowedResources$1.beforeCompletion(XAOutflowedResources.java:83)

                                at org.wildfly.transaction.client.AbstractTransaction.performConsumer(AbstractTransaction.java:209)

                                at org.wildfly.transaction.client.AbstractTransaction.performConsumer(AbstractTransaction.java:220)

                                at org.wildfly.transaction.client.AbstractTransaction$AssociatingSynchronization.beforeCompletion(AbstractTransaction.java:265)

                                at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)

                                at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:368)

                                at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91)

                                at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)

                                at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1289)

                                ... 127 more

                        Caused by: javax.transaction.xa.XAException: WFTXN0034: Failed to acquire a connection for this operation

                                at org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer.getPeerIdentityXA(RemotingRemoteTransactionPeer.java:94)

                                at org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer$1.beforeCompletion(RemotingRemoteTransactionPeer.java:166)

                                at org.wildfly.transaction.client.SubordinateXAResource.beforeCompletion(SubordinateXAResource.java:135)

                                at org.wildfly.transaction.client.XAOutflowedResources$1.beforeCompletion(XAOutflowedResources.java:70)

                                ... 135 more

                        Caused by: org.wildfly.security.auth.AuthenticationException: JBREM000308: Authentication failed (no mechanisms left), tried:

                           JBOSS-LOCAL-USER: org.wildfly.security.auth.AuthenticationException: JBREM000300: Authentication failed due to I/O error

                                at org.jboss.remoting3.ConnectionPeerIdentityContext.doAuthenticate(ConnectionPeerIdentityContext.java:368)

                                at org.jboss.remoting3.ConnectionPeerIdentityContext.authenticate(ConnectionPeerIdentityContext.java:174)

                                at org.jboss.remoting3.EndpointImpl$3.handleDone(EndpointImpl.java:505)

                                at org.jboss.remoting3.EndpointImpl$3.handleDone(EndpointImpl.java:494)

                                at org.xnio.IoFuture$HandlingNotifier.notify(IoFuture.java:208)

                                at org.xnio.AbstractIoFuture$NotifierRunnable.run(AbstractIoFuture.java:720)

                                at org.xnio.IoUtils$2.execute(IoUtils.java:71)

                                at org.xnio.AbstractIoFuture.runNotifier(AbstractIoFuture.java:693)

                                at org.xnio.AbstractIoFuture$CompleteState.withNotifier(AbstractIoFuture.java:132)

                                at org.xnio.AbstractIoFuture.addNotifier(AbstractIoFuture.java:570)

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

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

                                at org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer.getPeerIdentity(RemotingRemoteTransactionPeer.java:87)

                                at org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer.getPeerIdentityXA(RemotingRemoteTransactionPeer.java:92)

                                ... 138 more

                         

                         

                        Please help.

                         

                        Thanks & Regards,

                        Himanshu

                        • 9. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
                          vivivivi

                          Oh, I'm sorry, I can't help you with topics around transactions. I hope, someone else can do it...

                          • 10. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
                            mchoma

                            And local calls stop to work just after remote call start to work? Or it wasn't working from the beginning? This thread is getting messy. Probably you should create separate thread for new issue?

                            • 11. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
                              h.sharma

                              Hi Martin,

                               

                              The local EJB were working before adding the Elytron subsystem. I had added Elytron to enable Remote EJB n wildfly11. After doing the above , now the remote EJB are working but local EJB are failing for authentication.

                              I have opened another thread for this issue :

                               

                              JBOSS-LOCAL-USER: org.wildfly.security.auth.AuthenticationException: JBREM000300 error while calling EJB's deployed n wildfly 11

                               

                              Appreciate your help on this.

                               

                              Thanks & Regards

                              Himanshu

                              • 13. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
                                azepeda

                                Hello, I have followed those two guides. I used three machines: my desktop pc for the standlone client, one for the client server with Wildfly 11 and another for the destination server with Wildfly 11.

                                 

                                I called a service located in a server1 from an standalone client without problems, according to the procedure stated in the first guide.

                                 

                                However, as it is written in the second one, I tried to configure the client server using these CLI commands:

                                 

                                [standalone@tmp0:9990 /] /subsystem=elytron/authentication-configuration=ejb-auth-config:add(authentication-name=ejb, credential-reference={clear-text="ejb2017"})

                                {"outcome" => "success"}

                                [standalone@tmp0:9990 /] /subsystem=elytron/authentication-context=ejb-auth-context:add(match-rules=[{authentication-configuration=ejb-outbound-config}])

                                {

                                    "outcome" => "failed",

                                    "failure-description" => "WFLYCTL0369: Required capabilities are not available:

                                    org.wildfly.security.authentication-configuration.ejb-outbound-config; Possible registration points for this capability:

                                                /subsystem=elytron/authentication-configuration=*",

                                    "rolled-back" => true

                                }  

                                [standalone@tmp0:9990 /] /socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=remote-ejb:add(host=calculator, port=8080)

                                {"outcome" => "success"}

                                [standalone@tmp0:9990 /] /subsystem=remoting/remote-outbound-connection=remote-ejb-connection:add(authentication-context=ejb-auth-context, outbound-socket-binding-ref=remote-ejb)

                                {

                                    "outcome" => "failed",

                                    "failure-description" => "WFLYCTL0369: Required capabilities are not available:

                                    org.wildfly.security.authentication-context.ejb-auth-context; Possible registration points for this capability:

                                                /subsystem=elytron/authentication-context=*",

                                    "rolled-back" => true

                                }  

                                 

                                Could you please tell me what it is happening here?

                                • 14. Re: Invoking remote EJB deployed on Wildfly11 server from another client application also deployed on Wildfly11
                                  fjuma

                                  Apologies, there's a typo in the second CLI command, "ejb-outbound-config" should be "ejb-auth-config", as shown below. I've also updated the blog post.

                                   

                                  /subsystem=elytron/authentication-context=ejb-auth-context:add(match-rules=[{authentication-configuration=ejb-auth-config}])
                                  1 of 1 people found this helpful
                                  1 2 Previous Next