1 2 3 4 Previous Next 50 Replies Latest reply on Dec 19, 2014 10:25 AM by fapinheiro Go to original post Branched to a new discussion.
      • 15. Re: ejb access from one server to a second server
        jaikiran

        Juan Jordaan wrote:

         

        I am now getting a java.lang.IllegalStateException : No EJB receiver available, and I think it might have something to do with not specifying SSL_ENABLED=false. Where do I specify that now in the jboss-ejb-client.xml ?

        I've updated the "Create a "remote-outbound-connection" which uses this newly created "outbound-socket-binding"" section in that document. That's where this has to be specified. Give it a try and let me know if that works. I'm setting up an application to try it out myself.

        • 16. Re: ejb access from one server to a second server
          jaikiran

          Juan, I tested with a sample application against 7.1.0.CR1b and latest AS7 nightly build https://community.jboss.org/thread/167590.

           

          Turns out this bug https://issues.jboss.org/browse/AS7-3247 affects 7.1.0.CR1b (I believe you are running into this issue). It's been fixed in upstream and available in the nightly build. So please give it a try there.

          • 17. Re: ejb access from one server to a second server
            juan_jordaan

            Thank you I will give it a try ... and yes i am running CR1b

            • 18. Re: ejb access from one server to a second server
              juan_jordaan

              Helo Jaikiran

               

              I changed the jboss on my server and client machines to 7.x latest

              I tested my remotely hosted .war on jboss-as-7.x latest and i get a java.lang.IllegalArgumentException: Could not find module app: test-server-ear module: test-ejb-0.0.1

              The server side is working, I tested this with a Java SE test app.

              • 19. Re: ejb access from one server to a second server
                jaikiran

                Radek, just a FYI - I haven't ignored this post of your's nor the one in the other thread. I'll come back to this and reply once I finish a few other tasks. For now, I wanted to make sure the documentation is atleast available and we can get feedback like you provided.

                • 20. Re: ejb access from one server to a second server
                  jaikiran

                  Juan, can you post the lookup code, the "Destination server" logs, the "Client server" configurations (standalone*.xml ones) and the entire exception stacktrace that you see?

                  • 21. Re: ejb access from one server to a second server
                    juan_jordaan

                    Thanks Jaikiran

                     

                    From standalone-full.xml
                    <outbound-connections>
                    <remote-outbound-connection name="remote-ejb-connection" outbound-socket-binding-ref="remote-ejb">
                      <connection-creation-options>
                       <option name="SSL_ENABLED" value="false"/>
                       <option name="SASL_POLICY_NOANONYMOUS" value="false"/>
                      </connection-creation-options>
                    </remote-outbound-connection>
                    </outbound-connections>

                    <outbound-socket-binding name="remote-ejb">
                    <remote-destination host="##.###.##.###" port="4447"/>
                    </outbound-socket-binding>

                     

                    From jboss-ejb-client.xml
                    <jboss-ejb-client xmlns="urn:jboss:ejb-client:1.0">
                    <client-context>
                      <ejb-receivers>
                       <remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection" />
                      </ejb-receivers>
                    </client-context>
                    </jboss-ejb-client>

                     

                    .war test bean
                    @RequestScoped
                    @Named
                    public class RemoteTestBean
                    {
                    private RemoteCalculator remoteCalculator;
                    private GreeterEjbRemote greeterEjb;

                    public String remoteTest1( )
                    {
                      int a = 204;
                      int b = 340;
                      System.out.println( "Adding " + a + " and " + b + " via the remote stateless calculator deployed on the server" );
                      int sum = remoteCalculator.add( a, b );
                      System.out.println( "Remote calculator returned sum = " + sum );
                     
                      return null;
                    }

                    public String remoteTest2( )
                    {
                      try
                      {
                       System.out.println( "Getting message from remote ejb" );
                       String message = greeterEjb.getMessage( );
                       System.out.println( "Greeter message = " + message );
                      }
                      catch( Exception e )
                      {
                       // TODO Auto-generated catch block
                       e.printStackTrace();
                      }
                     
                      return null;
                    }

                    @PostConstruct
                    public void postConstruct( )
                    {
                      try
                      {
                       System.out.println("Initializing ... ");
                       Hashtable<String, String> jndiProperties = new Hashtable<String, String>();
                             jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
                             Context context = new InitialContext(jndiProperties);
                            
                             remoteCalculator = ( RemoteCalculator )context.lookup( "ejb:test-server-ear/test-ejb-0.0.1//CalculatorBean!org.jboss.as.quickstarts.ejb.remote.stateless.RemoteCalculator" );
                         
                             System.out.println("Got a RemoteCalculator. remoteCalculator == null ? " + ( remoteCalculator == null ? "true" : "false") );
                            
                             greeterEjb = ( GreeterEjbRemote ) context.lookup( "ejb:test-server-ear/test-ejb-0.0.1//GreeterEjb!org.jboss.as.quickstarts.ejb.remote.stateless.GreeterEjbRemote" );
                            
                             System.out.println("Got a GreeterEjbRemote. greeterEjb == null ? " + ( greeterEjb == null ? "true" : "false") );
                      }
                      catch( NamingException e )
                      {
                       System.out.println("Failed getting a RemoteCalculator");
                       e.printStackTrace( );
                      }
                    }
                    }

                     

                    The Client Stack Trace:

                    [root@webstage01 bin]# 10:18:55,780 INFO  [stdout]  Initializing ...
                    10:18:55,785 INFO  [stdout]  Got a RemoteCalculator. remoteCalculator == null ? false
                    10:18:55,788 INFO  [stdout]  Got a GreeterEjbRemote. greeterEjb == null ? false
                    10:18:55,788 INFO  [stdout]  Getting message from remote ejb
                    10:18:55,789 ERROR [stderr]  java.lang.IllegalArgumentException: Could not find module app: test-server-ear module: test-ejb-0.0.1 distinct name:
                    10:18:55,790 ERROR [stderr]     at org.jboss.as.ejb3.remote.LocalEjbReceiver.findBean(LocalEjbReceiver.java:240)
                    10:18:55,790 ERROR [stderr]     at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:105)
                    10:18:55,790 ERROR [stderr]     at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:173)
                    10:18:55,791 ERROR [stderr]     at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43)
                    10:18:55,791 ERROR [stderr]     at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:175)
                    10:18:55,791 ERROR [stderr]     at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:92)
                    10:18:55,792 ERROR [stderr]     at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:175)
                    10:18:55,792 ERROR [stderr]     at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:122)
                    10:18:55,792 ERROR [stderr]     at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:107)
                    10:18:55,793 ERROR [stderr]     at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:90)
                    10:18:55,793 ERROR [stderr]     at $Proxy138.getMessage(Unknown Source)
                    10:18:55,793 ERROR [stderr]     at com.conigma.tests.remote.RemoteTestBean.remoteTest2(RemoteTestBean.java:39)
                    10:18:55,794 ERROR [stderr]     at com.conigma.tests.remote.RemoteTestBean$Proxy$_$$_WeldClientProxy.remoteTest2(RemoteTestBean$Proxy$_$$_WeldClientProxy.java)
                    10:18:55,794 ERROR [stderr]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    10:18:55,794 ERROR [stderr]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                    10:18:55,795 ERROR [stderr]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    10:18:55,795 ERROR [stderr]     at java.lang.reflect.Method.invoke(Method.java:597)
                    10:18:55,795 ERROR [stderr]     at org.apache.el.parser.AstValue.invoke(AstValue.java:262)
                    10:18:55,796 ERROR [stderr]     at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
                    10:18:55,796 ERROR [stderr]     at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:39)
                    10:18:55,796 ERROR [stderr]     at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
                    10:18:55,797 ERROR [stderr]     at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
                    10:18:55,797 ERROR [stderr]     at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
                    10:18:55,797 ERROR [stderr]     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
                    10:18:55,798 ERROR [stderr]     at javax.faces.component.UICommand.broadcast(UICommand.java:315)
                    10:18:55,798 ERROR [stderr]     at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
                    10:18:55,798 ERROR [stderr]     at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
                    10:18:55,799 ERROR [stderr]     at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
                    10:18:55,799 ERROR [stderr]     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
                    10:18:55,799 ERROR [stderr]     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                    10:18:55,800 ERROR [stderr]     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
                    10:18:55,800 ERROR [stderr]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
                    10:18:55,800 ERROR [stderr]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
                    10:18:55,801 ERROR [stderr]     at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
                    10:18:55,801 ERROR [stderr]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
                    10:18:55,801 ERROR [stderr]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
                    10:18:55,802 ERROR [stderr]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
                    10:18:55,802 ERROR [stderr]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
                    10:18:55,802 ERROR [stderr]     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:155)
                    10:18:55,803 ERROR [stderr]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
                    10:18:55,803 ERROR [stderr]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    10:18:55,803 ERROR [stderr]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    10:18:55,804 ERROR [stderr]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
                    10:18:55,804 ERROR [stderr]     at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)
                    10:18:55,804 ERROR [stderr]     at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626)
                    10:18:55,805 ERROR [stderr]     at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033)
                    10:18:55,805 ERROR [stderr]     at java.lang.Thread.run(Thread.java:662)

                    • 22. Re: ejb access from one server to a second server
                      markus78

                      Hello,

                       

                      Is it possible to define the destination host dynamically?

                      Perhaps using the same approach as with an remote standalone client that you described in another topic recently? ( that is using the jboss remoting api to specify wich destination server you want to use for lookup before creating the initialContext, but this time in the host - host case )

                       

                      BR

                      /Markus

                      • 23. Re: ejb access from one server to a second server
                        jaikiran

                        Juan, looking at that stacktrace it appears that the jboss-ejb-client.xml wasn't picked up. Where exactly have you placed that file in your application? And is your application a .ear file, .war file or a .jar file? How is it packaged?

                        • 24. Re: ejb access from one server to a second server
                          juan_jordaan

                          Jaikiran, my client app is test-web.war and the xml was in it was in test-web.war\WEB-INF\classes

                          I have moved it to test-web.war\META-INF and now it works.

                           

                          Maybe worth mentioning to everyone else, 7.1-SNAPSHOT(My client) did not like CR1b(Server) and I got

                          16:22:23,763 INFO  [org.jboss.ejb.client.remoting.ChannelAssociation] (Remoting "webstage01" task-4) Channel Channel ID 84f96936 (outbound) of Remoting connection 018780a2 to /##.###.##.###:4447 can no longer process messages

                          16:22:23,774 ERROR [stderr]  java.lang.NullPointerException

                          16:22:23,774 ERROR [stderr]  at org.jboss.ejb.client.remoting.ChannelAssociation$UnusableChannelResultProducer.getResult(ChannelAssociation.java:350)

                           

                          Thanks for the help Jaikiran

                           

                          (Sorry, I edited this as you posted your reply)

                          • 25. Re: ejb access from one server to a second server
                            jaikiran

                            Right so it's picking up the client configuration now (the jboss-ejb-client.xml is expected to be in the META-INF folder of the top level deployment). As for the error, do you see any log messages on the "Destination Server" when you try this invocation? Looks like something is failing there. Are you on Windows OS by the way?

                            • 26. Re: ejb access from one server to a second server
                              jaikiran

                              Juan Jordaan wrote:

                               

                              Jaikiran, my client app is test-web.war and the xml was in it was in test-web.war\WEB-INF\classes

                              I have moved it to test-web.war\META-INF and now it works.

                               

                              Glad to know that worked! Thanks for giving it a try

                               

                               

                              Juan Jordaan wrote:

                               

                               

                              Maybe worth mentioning to everyone else, 7.1-SNAPSHOT(My client) did not like CR1b(Server) and I got

                              16:22:23,763 INFO  [org.jboss.ejb.client.remoting.ChannelAssociation] (Remoting "webstage01" task-4) Channel Channel ID 84f96936 (outbound) of Remoting connection 018780a2 to /##.###.##.###:4447 can no longer process messages

                              16:22:23,774 ERROR [stderr]  java.lang.NullPointerException

                              16:22:23,774 ERROR [stderr]  at org.jboss.ejb.client.remoting.ChannelAssociation$UnusableChannelResultProducer.getResult(ChannelAssociation.java:350)

                               

                              Hmm, there were some remoting, xnio and other version changes in those versions so not sure if that was the cause.

                              • 27. Re: ejb access from one server to a second server
                                sathish.santhosam

                                Hi jaikiran,

                                 

                                I've same issue, I'm using JBOSS 7.1.0 final as my server for both client & server. I'm using a single machine with port offset 100 for client.

                                 

                                My Standalone-full.xml

                                <outbound-connections>

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

                                             <properties>

                                                <property name="SASL_POLICY_NOANONYMOUS" value="false"/>

                                                <property name="SSL_ENABLED" value="false"/>

                                             </properties>

                                     </remote-outbound-connection>

                                </outbound-connections>

                                 

                                 

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

                                            <remote-destination host="localhost" port="4447"/>

                                </outbound-socket-binding>

                                 

                                I've kept the jboss-ejb-client.xml inside metainf folder.

                                 

                                <jboss-ejb-client xmlns="urn:jboss:ejb-client:1.0">

                                    <client-context>

                                        <ejb-receivers>

                                            <remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection"/>

                                        </ejb-receivers>

                                    </client-context>

                                </jboss-ejb-client>

                                 

                                 

                                this is my jboss-ejb-client.properties, i've kept under test.war/web-inf/classes

                                 

                                remote.connections=default

                                endpoint.name=client-endpoint

                                remote.connection.default.port = 4447

                                remote.connection.default.host=localhost

                                remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false

                                remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false

                                remote.connection.default.username=test

                                remote.connection.default.password=password

                                 

                                My Client Code

                                 

                                final Hashtable jndiProperties = new Hashtable();

                                             jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");

                                             final Context context = new InitialContext(jndiProperties);           

                                             final String appName = "testEar";        

                                             final String moduleName = "EJB-0.0.1-SNAPSHOT";           

                                             final String distinctName = "";           

                                             final String beanName = TestImpl.class.getSimpleName();           

                                             final String viewClassName = TestInterface.class.getName();         

                                            TestInterface testif = (TestInterface) context.lookup("ejb:"+appName + "/" + moduleName + "/" +"/"+beanName + "!" + viewClassName);

                                            int result = testif.add(10, 20);

                                            System.out.println(result);

                                 

                                I'm not able to deploy my client jar. I'm getting

                                javax.security.sasl.SaslException: Authentication failed: all available authentic

                                ation mechanisms failed exception.

                                 

                                Server Log

                                 

                                 

                                D:\apps\jboss_as_7.1.0.final_clinet\jboss-as-7.1.0.Final\bin>standalone -server-config=standalone-full.xml -Djboss.socke

                                t.binding.port-offset=100

                                Calling "D:\apps\jboss_as_7.1.0.final_clinet\jboss-as-7.1.0.Final\bin\standalone.conf.bat"

                                ===============================================================================

                                 

                                  JBoss Bootstrap Environment

                                 

                                  JBOSS_HOME: D:\apps\jboss_as_7.1.0.final_clinet\jboss-as-7.1.0.Final

                                 

                                  JAVA: D:\tools\Java\jdk1.6.0_20\bin\java

                                 

                                  JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.cl

                                ient.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.war

                                ning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone.xml

                                 

                                ===============================================================================

                                 

                                15:30:50,224 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

                                15:30:55,067 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

                                15:30:55,146 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.0.Final "Thunder" starting

                                15:31:24,551 INFO  [org.xnio] XNIO Version 3.0.3.GA

                                15:31:24,551 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-h

                                ttp)

                                15:31:24,567 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

                                15:31:24,582 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.2.GA

                                15:31:24,786 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

                                15:31:24,942 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service

                                15:31:24,973 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013100: Current PicketBox version=4.0.6.final

                                15:31:25,036 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 76) JBAS015537: Activating WebServices Exten

                                sion

                                15:31:25,395 INFO  [org.jboss.as.connector] (MSC service thread 1-3) JBAS010408: Starting JCA Subsystem (JBoss IronJacam

                                ar 1.0.7.Final)

                                15:31:25,395 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-4) JBAS015400: Bound mail session [java:jboss/mai

                                l/Default]

                                15:31:25,864 INFO  [org.jboss.as.jaxr] (MSC service thread 1-4) Binding JAXR ConnectionFactory: java:jboss/jaxr/Connecti

                                onFactory

                                15:31:26,770 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 51) JBAS010403: Deployi

                                ng JDBC-compliant driver class org.h2.Driver (version 1.3)

                                15:31:28,286 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http--

                                127.0.0.1-8180

                                15:31:28,895 WARN  [org.jboss.as.messaging] (MSC service thread 1-3) JBAS011600: AIO wasn't located on this platform, it

                                will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal

                                15:31:29,567 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-3) live server is starting wit

                                h configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=D:\apps\jboss_as_7

                                .1.0.final_clinet\jboss-as-7.1.0.Final\standalone\data\messagingjournal,bindingsDirectory=D:\apps\jboss_as_7.1.0.final_c

                                linet\jboss-as-7.1.0.Final\standalone\data\messagingbindings,largeMessagesDirectory=D:\apps\jboss_as_7.1.0.final_clinet\

                                jboss-as-7.1.0.Final\standalone\data\messaginglargemessages,pagingDirectory=D:\apps\jboss_as_7.1.0.final_clinet\jboss-as

                                -7.1.0.Final\standalone\data\messagingpaging)

                                15:31:29,582 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-3) Waiting to obtain live lock

                                 

                                15:31:29,879 INFO  [org.hornetq.core.persistence.impl.journal.JournalStorageManager] (MSC service thread 1-3) Using NIO

                                Journal

                                15:31:29,911 WARN  [jacorb.codeset] (MSC service thread 1-2) Warning - unknown codeset (Cp1252) - defaulting to ISO-8859

                                -1

                                15:31:30,036 INFO  [org.jboss.as.jacorb] (MSC service thread 1-2) JBAS016330: CORBA ORB Service started

                                15:31:30,239 INFO  [org.hornetq.core.server.impl.FileLockNodeManager] (MSC service thread 1-3) Waiting to obtain live lo

                                ck

                                15:31:30,239 INFO  [org.hornetq.core.server.impl.FileLockNodeManager] (MSC service thread 1-3) Live Server Obtained live

                                lock

                                15:31:30,754 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data sourc

                                e [java:jboss/datasources/ExampleDS]

                                15:31:30,801 INFO  [org.jboss.as.jacorb] (MSC service thread 1-2) JBAS016328: CORBA Naming Service started

                                15:31:31,645 INFO  [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-3) Started Netty Acceptor

                                version 3.2.5.Final-a96d88c 127.0.0.1:5545 for CORE protocol

                                15:31:31,645 INFO  [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-3) Started Netty Acceptor

                                version 3.2.5.Final-a96d88c 127.0.0.1:5555 for CORE protocol

                                15:31:31,660 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-3) Server is now live

                                15:31:31,660 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-3) HornetQ Server version 2.2.

                                11.Final (HQ_2_2_11_FINAL_AS7, 122) [674a3bce-5d3a-11e1-a36d-b8ac6f464480]) started

                                15:31:31,660 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-4) trying to deploy queue jms.

                                queue.testQueue

                                15:31:31,660 INFO  [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name jav

                                a:/queue/test

                                15:31:31,660 INFO  [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name jav

                                a:jboss/exported/jms/queue/test

                                15:31:31,723 INFO  [org.jboss.as.messaging] (MSC service thread 1-3) JBAS011601: Bound messaging object to jndi name jav

                                a:/ConnectionFactory

                                15:31:31,723 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-2) trying to deploy queue jms.

                                topic.testTopic

                                15:31:31,785 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-3) JBAS010406: Registered connection factor

                                y java:/JmsXA

                                15:31:31,801 INFO  [org.hornetq.ra.HornetQResourceAdapter] (MSC service thread 1-3) HornetQ resource adaptor started

                                15:31:31,801 INFO  [org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC servi

                                ce thread 1-3) IJ020002: Deployed: file://RaActivatorhornetq-ra

                                15:31:31,801 INFO  [org.jboss.as.deployment.connector] (MSC service thread 1-3) JBAS010401: Bound JCA ConnectionFactory

                                [java:/JmsXA]

                                15:31:31,817 INFO  [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name jav

                                a:/topic/test

                                15:31:31,817 INFO  [org.jboss.as.messaging] (MSC service thread 1-2) JBAS011601: Bound messaging object to jndi name jav

                                a:jboss/exported/jms/topic/test

                                15:31:31,817 INFO  [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name jav

                                a:jboss/exported/jms/RemoteConnectionFactory

                                15:31:31,817 INFO  [org.jboss.as.messaging] (MSC service thread 1-4) JBAS011601: Bound messaging object to jndi name jav

                                a:/RemoteConnectionFactory

                                15:31:34,957 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - S

                                tack CXF Server 4.0.1.GA

                                15:31:36,645 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeplo

                                ymentService for directory D:\apps\jboss_as_7.1.0.final_clinet\jboss-as-7.1.0.Final\standalone\deployments

                                15:31:36,645 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting fa

                                iled deployment ClientTest-0.0.1-SNAPSHOT.war

                                15:31:36,660 INFO  [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on 127.0.0.1/127.0.0.1:4547

                                15:31:36,660 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:10099

                                15:31:37,442 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "ClientT

                                est-0.0.1-SNAPSHOT.war"

                                15:31:38,348 ERROR [org.jboss.remoting.remote.connection] (Remoting "pc1381" read-1) JBREM000200: Remote connection fail

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

                                15:31:38,379 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.ejb3.dd

                                -based-ejb-client-context."ClientTest-0.0.1-SNAPSHOT.war": org.jboss.msc.service.StartException in service jboss.ejb3.dd

                                -based-ejb-client-context."ClientTest-0.0.1-SNAPSHOT.war": Failed to start service

                                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.G

                                A.jar:1.0.2.GA]

                                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_20]

                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_20]

                                        at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_20]

                                Caused by: java.lang.RuntimeException: javax.security.sasl.SaslException: Authentication failed: all available authentic

                                ation mechanisms failed

                                        at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:91)

                                        at org.jboss.as.ejb3.remote.DescriptorBasedEJBClientContextService.createRemotingConnections(DescriptorBasedEJBC

                                lientContextService.java:124)

                                        at org.jboss.as.ejb3.remote.DescriptorBasedEJBClientContextService.start(DescriptorBasedEJBClientContextService.

                                java:86)

                                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-ms

                                c-1.0.2.GA.jar:1.0.2.GA]

                                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.G

                                A.jar:1.0.2.GA]

                                        ... 3 more

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

                                        at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener

                                .java:315)

                                        at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener

                                .java:214)

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

                                        at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189)

                                        at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103)

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

                                        at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189)

                                        at org.xnio.ssl.JsseConnectedSslStreamChannel.handleReadable(JsseConnectedSslStreamChannel.java:180)

                                        at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103)

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

                                        at org.xnio.nio.NioHandle.run(NioHandle.java:90)

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

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

                                        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:270)

                                        at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:251)

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

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

                                        at org.jboss.as.remoting.RemoteOutboundConnectionService.connect(RemoteOutboundConnectionService.java:130)

                                        at org.jboss.as.ejb3.remote.DescriptorBasedEJBClientContextService.createRemotingConnections(DescriptorBasedEJBC

                                lientContextService.java:122)

                                        ... 6 more

                                 

                                15:31:38,395 ERROR [org.jboss.as] (MSC service thread 1-4) JBAS015875: JBoss AS 7.1.0.Final "Thunder" started (with erro

                                rs) in 50921ms - Started 174 of 253 services (2 services failed or missing dependencies, 76 services are passive or on-d

                                emand)

                                15:31:38,598 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "ClientTest-0.

                                0.1-SNAPSHOT.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.ejb3.dd-based-ejb-clien

                                t-context.\"ClientTest-0.0.1-SNAPSHOT.war\"" => "org.jboss.msc.service.StartException in service jboss.ejb3.dd-based-ejb

                                -client-context.\"ClientTest-0.0.1-SNAPSHOT.war\": Failed to start service"}}

                                15:31:38,613 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment ClientTest-0

                                .0.1-SNAPSHOT.war in 18ms

                                15:31:38,613 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

                                JBAS014777:   Services which failed to start:      service jboss.ejb3.dd-based-ejb-client-context."ClientTest-0.0.1-SNAP

                                SHOT.war": org.jboss.msc.service.StartException in service jboss.ejb3.dd-based-ejb-client-context."ClientTest-0.0.1-SNAP

                                SHOT.war": Failed to start service

                                 

                                15:31:38,613 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite oper

                                ation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jbos

                                s.ejb3.dd-based-ejb-client-context.\"ClientTest-0.0.1-SNAPSHOT.war\"" => "org.jboss.msc.service.StartException in servic

                                e jboss.ejb3.dd-based-ejb-client-context.\"ClientTest-0.0.1-SNAPSHOT.war\": Failed to start service"}}}}

                                 

                                Please help me resolve this & let me know what i'm doing wrong.

                                • 28. Re: ejb access from one server to a second server
                                  jdabrowski

                                  I've got similar situation: "Authentication failed: all available authentication mechanisms failed"

                                  Probably if I could add somehow user and password it would work.

                                   

                                  ps. The same situation happens when I call second server from standalone application and comment user and password in jboss-client.properties

                                  Important thing is that it works like that when second server is on another host then client - if on the same - it works without user and password (for standalone client)

                                  I can't check it with server-calling-server situation.

                                  • 29. Re: ejb access from one server to a second server
                                    jaikiran

                                    Satish, for the case you are trying, the jboss-ejb-client.properties won't work. Please follow this https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance for your usecase.