java - JBoss AS 7.1 ERROR: JBREM000200: Remote connection failed: -


i have 2 projects, 1 si running on server (jboss 7.1) , other 1 should client, can communicate server.

both on same machine.

picture of eclipse workspace

here code class main.java in client project.

import javax.naming.context; import javax.naming.initialcontext; import javax.naming.namingexception;  public class main {     public static void main(string[] args) {         calculetteservice calculette = null;         try {             context    context = new initialcontext();             calculette = (calculetteservice) context.lookup("ejb:/analyzator-server//calculetteserviceimpl!calculetteservice");             system.out.println("vysledok je: " + calculette.add(10, 10));         } catch (namingexception e) {             e.printstacktrace();         }     }     public main() {         super();     }  } 

after trying run error:

apr 29, 2015 4:26:12 pm org.xnio.xnio <clinit> info: xnio version 3.0.3.ga apr 29, 2015 4:26:12 pm org.xnio.nio.nioxnio <clinit> info: xnio nio implementation version 3.0.3.ga apr 29, 2015 4:26:12 pm org.jboss.remoting3.endpointimpl <clinit> info: jboss remoting version 3.2.2.ga apr 29, 2015 4:26:13 pm org.jboss.remoting3.remote.remoteconnection handleexception error: jbrem000200: remote connection failed: javax.security.sasl.saslexception: authentication failed: available authentication mechanisms failed javax.naming.namingexception: failed create remoting connection [root exception java.lang.runtimeexception: javax.security.sasl.saslexception: authentication failed: available authentication mechanisms failed]     @ org.jboss.naming.remote.client.clientutil.namingexception(clientutil.java:36)     @ org.jboss.naming.remote.client.initialcontextfactory.getinitialcontext(initialcontextfactory.java:117)     @ javax.naming.spi.namingmanager.getinitialcontext(unknown source)     @ javax.naming.initialcontext.getdefaultinitctx(unknown source)     @ javax.naming.initialcontext.init(unknown source)     @ javax.naming.initialcontext.<init>(unknown source)     @ main.main(main.java:9) caused by: java.lang.runtimeexception: javax.security.sasl.saslexception: authentication failed: available authentication mechanisms failed     @ org.jboss.naming.remote.protocol.iofuturehelper.get(iofuturehelper.java:87)     @ org.jboss.naming.remote.client.cache.connectioncache.get(connectioncache.java:42)     @ org.jboss.naming.remote.client.initialcontextfactory.createconnection(initialcontextfactory.java:153)     @ org.jboss.naming.remote.client.initialcontextfactory.getorcreateconnection(initialcontextfactory.java:126)     @ org.jboss.naming.remote.client.initialcontextfactory.getinitialcontext(initialcontextfactory.java:106)     ... 5 more caused by: javax.security.sasl.saslexception: authentication failed: available authentication mechanisms failed     @ org.jboss.remoting3.remote.clientconnectionopenlistener$capabilities.handleevent(clientconnectionopenlistener.java:365)     @ org.jboss.remoting3.remote.clientconnectionopenlistener$capabilities.handleevent(clientconnectionopenlistener.java:214)     @ org.xnio.channellisteners.invokechannellistener(channellisteners.java:72)     @ org.xnio.channels.translatingsuspendablechannel.handlereadable(translatingsuspendablechannel.java:189)     @ org.xnio.channels.translatingsuspendablechannel$1.handleevent(translatingsuspendablechannel.java:103)     @ org.xnio.channellisteners.invokechannellistener(channellisteners.java:72)     @ org.xnio.nio.niohandle.run(niohandle.java:90)     @ org.xnio.nio.workerthread.run(workerthread.java:184)     @ ...asynchronous invocation...(unknown source)     @ org.jboss.remoting3.endpointimpl.doconnect(endpointimpl.java:270)     @ org.jboss.remoting3.endpointimpl.doconnect(endpointimpl.java:251)     @ org.jboss.remoting3.endpointimpl.connect(endpointimpl.java:349)     @ org.jboss.remoting3.endpointimpl.connect(endpointimpl.java:333)     @ org.jboss.naming.remote.client.cache.endpointcache$endpointwrapper.connect(endpointcache.java:110)     @ org.jboss.naming.remote.client.cache.connectioncache.get(connectioncache.java:41)     ... 8 more 

i tried able find on internet nothing helps.

here part of standalone.xml, else set default

<interfaces>     <interface name="management">         <inet-address value="${jboss.bind.address:127.0.0.1}"/>     </interface>     <interface name="public">         <inet-address value="${jboss.bind.address:127.0.0.1}"/>     </interface> </interfaces>  <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">     <socket-binding name="http" port="8080"/>     <socket-binding name="https" port="8443"/>     <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>     <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9980}"/>     <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>     <socket-binding name="osgi-http" interface="management" port="8090"/>     <socket-binding name="remoting" port="4447"/>     <socket-binding name="txn-recovery-environment" port="4712"/>     <socket-binding name="txn-status-manager" port="4713"/>     <outbound-socket-binding name="mail-smtp">         <remote-destination host="localhost" port="25"/>     </outbound-socket-binding> </socket-binding-group> 

and jndi.properties in client project

java.naming.factory.initial=org.jboss.naming.remote.client.initialcontextfactory java.naming.provider.url = remote\://localhost\:4447 jboss.naming.client.ejb.context=true java.naming.factory.url.pkgs=org.jboss.ejb.client.naming 

server running fine, no errors.

i grateful because don't know else try. thank time.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -