JBoss Community

Re: EAP 6 - EJB Remote Authentication with custom realm not working

created by Bob Smith in JBoss AS 7 Development - View the full discussion

I commented out the indicated line, rebuilt and still can't connect.  I'm really at my wits end here, are there any other files I should be looking at?

 

jboss-ejb-client.properties:

 

#remote.connection.default.callback.handler.class=net.silpada.client.util.jndi.EjbRemoteCallBackHandler

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=true

remote.connection.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS=JBOSS-LOCAL-USER

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

 

Client:

 

DEBUG [InitialContextFactory] Looking for jboss-naming-client.properties using classloader SystemClassLoader[112 modules]

DEBUG [InitialContextFactory] jboss.naming.client.endpoint.create.options. has the following options {}

DEBUG [InitialContextFactory] jboss.naming.client.remote.connectionprovider.create.options. has the following options {}

INFO  [xnio] XNIO Version 3.0.4.GA-redhat-1

INFO  [nio] XNIO NIO Implementation Version 3.0.4.GA-redhat-1

INFO  [remoting] JBoss Remoting version 3.2.8.GA-redhat-1

DEBUG [nio] Started channel thread 'Remoting "config-based-naming-client-endpoint" read-1', selector sun.nio.ch.WindowsSelectorImpl@58206cab

DEBUG [nio] Started channel thread 'Remoting "config-based-naming-client-endpoint" write-1', selector sun.nio.ch.WindowsSelectorImpl@55d3e052

DEBUG [InitialContextFactory] jboss.naming.client.connect.options. has the following options {}

ERROR [connection] JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed

ERROR [BeanManager] cannot connect

net.my.client.util.jndi.ServiceLocatorException: cannot connect

    at net.my.client.util.jndi.ServiceLocator.<init>(ServiceLocator.java:41)

    at net.my.client.util.jndi.ServiceLocator.getInstance(ServiceLocator.java:49)

    at net.my.client.util.facade.BeanManager.getCompanyBean(BeanManager.java:274)

    at net.my.client.util.company.CompanyController.findAllCompanies(CompanyController.java:35)

    at net.my.client.util.company.CompanyComboBox.<init>(CompanyComboBox.java:49)

    at net.my.client.util.company.CompanyComboBox.<init>(CompanyComboBox.java:38)

    at net.my.client.security.login.LoginPanel.<init>(LoginPanel.java:37)

    at net.my.client.security.login.Installer.authenticate(Installer.java:61)

    at net.my.client.security.login.Installer.restored(Installer.java:35)

    at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:469)

    at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:392)

    at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:103)

    at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:344)

    at org.openide.filesystems.FileUtil$2.run(FileUtil.java:619)

    at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)

    at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:607)

    at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:603)

    at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:623)

    at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:341)

    at org.netbeans.ModuleManager.enable(ModuleManager.java:1177)

    at org.netbeans.ModuleManager.enable(ModuleManager.java:1000)

    at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)

    at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)

    at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:296)

    at org.netbeans.core.startup.Main.getModuleSystem(Main.java:169)

    at org.netbeans.core.startup.Main.start(Main.java:305)

    at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)

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

 

Server log:

 

14:30:41,959 TRACE [org.jboss.remoting.remote] (Remoting "mxl1111p2c" read-1) Accepted connection from /127.0.0.1:51777 to 127.0.0.1/127.0.0.1:4447

14:30:41,959 TRACE [org.jboss.remoting.remote] (Remoting "mxl1111p2c" read-1) Accepted connection from /127.0.0.1:51777 to 127.0.0.1/127.0.0.1:4447

14:30:41,959 TRACE [org.jboss.remoting.remote] (Remoting "mxl1111p2c" read-1) Setting read listener to org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial@67eca180

14:30:41,959 TRACE [org.jboss.remoting.remote] (Remoting "mxl1111p2c" read-1) Setting read listener to org.jboss.remoting3.remote.ServerConnectionOpenListener$Initial@67eca180

14:30:41,959 TRACE [org.jboss.remoting.remote.connection] (Remoting "mxl1111p2c" read-1) Sent message java.nio.HeapByteBuffer[pos=12 lim=12 cap=8192] (direct)

14:30:41,959 TRACE [org.jboss.remoting.remote.connection] (Remoting "mxl1111p2c" read-1) Sent message java.nio.HeapByteBuffer[pos=12 lim=12 cap=8192] (direct)

14:30:41,960 TRACE [org.jboss.remoting.remote.connection] (Remoting "mxl1111p2c" read-1) Flushed channel (direct)

14:30:41,960 TRACE [org.jboss.remoting.remote.connection] (Remoting "mxl1111p2c" read-1) Flushed channel (direct)

14:30:41,960 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Server received capabilities request

14:30:41,960 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Server received capabilities request

14:30:41,960 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Server received capability: version 1

14:30:41,960 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Server received capability: version 1

14:30:41,960 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Server received capability: remote endpoint name "config-based-naming-client-endpoint"

14:30:41,960 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Server received capability: remote endpoint name "config-based-naming-client-endpoint"

14:30:41,960 TRACE [org.jboss.modules] (Remoting "mxl1111p2c" read-1) Attempting to find all resources META-INF/services/javax.security.sasl.SaslServerFactory in Module "org.jboss.remoting3:main" from local module loader @18a91155 (roots: C:\Java\jboss-eap-6.0\modules)

14:30:41,960 TRACE [org.jboss.modules] (Remoting "mxl1111p2c" read-1) Attempting to find all resources META-INF/services/javax.security.sasl.SaslServerFactory in Module "org.jboss.remoting3:main" from local module loader @18a91155 (roots: C:\Java\jboss-eap-6.0\modules)

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) No EXTERNAL mechanism due to explicit exclusion

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) No EXTERNAL mechanism due to explicit exclusion

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory org.jboss.sasl.localuser.LocalUserServerFactory@38eb6ab

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory org.jboss.sasl.localuser.LocalUserServerFactory@38eb6ab

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Excluding mechanism JBOSS-LOCAL-USER because it is not in the allowed list

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Excluding mechanism JBOSS-LOCAL-USER because it is not in the allowed list

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory org.jboss.sasl.digest.DigestMD5ServerFactory@e7a9660

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory org.jboss.sasl.digest.DigestMD5ServerFactory@e7a9660

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Excluding mechanism DIGEST-MD5 because it is not in the allowed list

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Excluding mechanism DIGEST-MD5 because it is not in the allowed list

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory org.jboss.sasl.plain.PlainServerFactory@1226800d

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory org.jboss.sasl.plain.PlainServerFactory@1226800d

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Added mechanism PLAIN

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Added mechanism PLAIN

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory org.jboss.sasl.anonymous.AnonymousServerFactory@1da0deca

14:30:41,961 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory org.jboss.sasl.anonymous.AnonymousServerFactory@1da0deca

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory com.sun.security.sasl.ntlm.FactoryImpl@2c82aef8

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory com.sun.security.sasl.ntlm.FactoryImpl@2c82aef8

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Excluding mechanism NTLM because it is not in the allowed list

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Excluding mechanism NTLM because it is not in the allowed list

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory com.sun.security.sasl.digest.FactoryImpl@37ad329c

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory com.sun.security.sasl.digest.FactoryImpl@37ad329c

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Excluding mechanism DIGEST-MD5 because it is not in the allowed list

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Excluding mechanism DIGEST-MD5 because it is not in the allowed list

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory com.sun.security.sasl.ServerFactoryImpl@4bd5bc52

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory com.sun.security.sasl.ServerFactoryImpl@4bd5bc52

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Excluding mechanism CRAM-MD5 because it is not in the allowed list

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Excluding mechanism CRAM-MD5 because it is not in the allowed list

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory com.sun.security.sasl.gsskerb.FactoryImpl@3d3ed263

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Trying SASL server factory com.sun.security.sasl.gsskerb.FactoryImpl@3d3ed263

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Excluding mechanism GSSAPI because it is not in the allowed list

14:30:41,962 TRACE [org.jboss.remoting.remote.server] (Remoting "mxl1111p2c" read-1) Excluding mechanism GSSAPI because it is not in the allowed list

14:30:41,962 TRACE [org.jboss.remoting.remote.connection] (Remoting "mxl1111p2c" read-1) Sent message java.nio.HeapByteBuffer[pos=23 lim=23 cap=8192] (direct)

14:30:41,962 TRACE [org.jboss.remoting.remote.connection] (Remoting "mxl1111p2c" read-1) Sent message java.nio.HeapByteBuffer[pos=23 lim=23 cap=8192] (direct)

14:30:41,962 TRACE [org.jboss.remoting.remote.connection] (Remoting "mxl1111p2c" read-1) Flushed channel (direct)

14:30:41,962 TRACE [org.jboss.remoting.remote.connection] (Remoting "mxl1111p2c" read-1) Flushed channel (direct)

14:30:41,968 TRACE [org.jboss.remoting.remote] (Remoting "mxl1111p2c" read-1) Received connection end-of-stream

14:30:41,968 TRACE [org.jboss.remoting.remote] (Remoting "mxl1111p2c" read-1) Received connection end-of-stream

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community