2 Replies Latest reply on Jun 6, 2014 4:45 AM by C S

    Error accessing EJB from remote client

    C S Newbie


      Hello,

       

      when I try to access an EJB running in Wildfly 8.1.0 from my remote client, I get the following exception:

      ..

      Caused by: java.lang.NoSuchMethodError: org.jboss.remoting3.Remoting.createEndpoint(Ljava/lang/String;Lorg/x

      at org.jboss.naming.remote.client.EndpointCache.get(EndpointCache.java:47)                              

      at org.jboss.naming.remote.client.InitialContextFactory.createEndpoint(InitialContextFactory.java:226)  

      at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateEndpoint(InitialContextFactory.java:207

      at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateNamingStore(InitialContextFactory.java:

      at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:146)

       

      I try to access with that:

      InitialContext context=new InitialContext();                                                                                                                   

      MyService bean=(MyService) context.lookup("ejb:/MyApp/MyEJB//MyServiceBean!de.service.test.MyService?stateful");

       

      I use jboss-ejb-client.properties:

      endpoint.name=client-endpoint

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

      remote.connections=default

      remote.connection.default.host=10.1.2.3

      remote.connection.default.port = 18080

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

      remote.connection.default.username=client

      remote.connection.default.password=pass1

       

      and  jndi.properties:

      java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory

      java.naming.factory.url.pkgs=org.jboss.ejb.client.naming

      java.naming.provider.url=http-remoting://10.3.3.33:18080

       

       

      What's wrong? I use the jboss-client.jar from the wildfly-client dir, so that should not be the reason.

       

      Could you please help. Thank you!