1 Reply Latest reply on Jul 13, 2012 8:18 AM by rodakr

    AS 7.1.2  Security Problem Accessing JMS Ressources

    rodakr Novice

      Hi

       

      I need AS 7.x Security expert help....

       

      When I try to access JMS Queue from remote client using existing quickstart examples, adding Application user with add-user.sh everything works fine as expected, as long as I have this ApplicationRealm configuration:

       

      <security-realm name="ApplicationRealm">
          <authentication>
               <local default-user="$local" allowed-users="*"/>
               <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
          </authentication>
          <authorization>
                <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
           </authorization>
          </security-realm>
      </security-realms>

       

      Now I change the configuration so ApplicationReal redirect authentication to a Domain Security like this:

       

       <security-realm name="ApplicationRealm">
                <authentication>
                     <jaas name="other"/>
                 </authentication>
              </security-realm>
      

       

      When I try to lookup an EJB , every think works.

      But when I try to lookup any JMS related ressources ( same code which worked with first configuration ) I'm getting this exception on client side:

       

      06.07.2012 16:17:43 org.jboss.logging.LoggerProviders find
      DEBUG: Logging Provider: org.jboss.logging.JDKLoggerProvider
      06.07.2012 16:17:43 org.jboss.naming.remote.client.InitialContextFactory findClientProperties
      DEBUG: Looking for jboss-naming-client.properties using classloader sun.misc.Launcher$AppClassLoader@601bb1
      06.07.2012 16:17:43 org.jboss.naming.remote.client.InitialContextFactory getOptionMapFromProperties
      DEBUG: jboss.naming.client.endpoint.create.options. has the following options {}
      06.07.2012 16:17:43 org.jboss.naming.remote.client.InitialContextFactory mergeWithDefaults
      TRACE: Options {} have been merged with defaults {org.xnio.Options.THREAD_DAEMON=>true} to form {org.xnio.Options.THREAD_DAEMON=>true}
      06.07.2012 16:17:43 org.jboss.naming.remote.client.InitialContextFactory getOptionMapFromProperties
      DEBUG: jboss.naming.client.remote.connectionprovider.create.options. has the following options {}
      06.07.2012 16:17:43 org.jboss.naming.remote.client.InitialContextFactory mergeWithDefaults
      TRACE: Options {} have been merged with defaults {org.xnio.Options.SSL_ENABLED=>false} to form {org.xnio.Options.SSL_ENABLED=>false}
      06.07.2012 16:17:43 org.xnio.Xnio <clinit>
      INFO: XNIO Version 3.0.4.GA-redhat-1
      06.07.2012 16:17:43 org.xnio.nio.NioXnio <clinit>
      INFO: XNIO NIO Implementation Version 3.0.4.GA-redhat-1
      06.07.2012 16:17:43 org.xnio.nio.NioXnio <init>
      TRACE: Starting up with selector provider sun.nio.ch.WindowsSelectorProvider
      06.07.2012 16:17:43 org.xnio.nio.NioXnio$1 run
      TRACE: Using default selector type for temporary selectors.
      06.07.2012 16:17:43 org.jboss.remoting3.EndpointImpl <clinit>
      INFO: JBoss Remoting version 3.2.8.GA-redhat-1
      06.07.2012 16:17:43 org.xnio.nio.NioXnioWorker openResourceUnconditionally
      TRACE: CAS org.xnio.nio.NioXnioWorker@a6d51e 00000001 -> 00000002
      06.07.2012 16:17:43 org.xnio.nio.NioXnioWorker openResourceUnconditionally
      TRACE: CAS org.xnio.nio.NioXnioWorker@a6d51e 00000002 -> 00000003
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Starting worker thread Thread[Remoting "config-based-naming-client-endpoint" read-1,5,main]
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      DEBUG: Started channel thread 'Remoting "config-based-naming-client-endpoint" read-1', selector sun.nio.ch.WindowsSelectorImpl@d1fa5
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Beginning select on sun.nio.ch.WindowsSelectorImpl@d1fa5
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Starting worker thread Thread[Remoting "config-based-naming-client-endpoint" write-1,5,main]
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      DEBUG: Started channel thread 'Remoting "config-based-naming-client-endpoint" write-1', selector sun.nio.ch.WindowsSelectorImpl@1cbfe9d
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Beginning select on sun.nio.ch.WindowsSelectorImpl@1cbfe9d
      06.07.2012 16:17:43 org.jboss.remoting3.EndpointImpl <init>
      TRACE: Completed open of endpoint "config-based-naming-client-endpoint" <17725c4>
      06.07.2012 16:17:43 org.jboss.remoting3.EndpointImpl resourceUntick
      TRACE: Allocated tick to 1 of endpoint "config-based-naming-client-endpoint" <17725c4> (opened Connection provider for remote)
      06.07.2012 16:17:43 org.jboss.remoting3.EndpointImpl addConnectionProvider
      TRACE: Adding connection provider registration named 'remote': Remoting remote connection provider 10849bc for endpoint "config-based-naming-client-endpoint" <17725c4>
      06.07.2012 16:17:43 org.jboss.naming.remote.client.InitialContextFactory getOptionMapFromProperties
      DEBUG: jboss.naming.client.connect.options. has the following options {}
      06.07.2012 16:17:43 org.jboss.naming.remote.client.InitialContextFactory mergeWithDefaults
      TRACE: Options {} have been merged with defaults {org.xnio.Options.SASL_POLICY_NOANONYMOUS=>false} to form {org.xnio.Options.SASL_POLICY_NOANONYMOUS=>false}
      06.07.2012 16:17:43 org.jboss.remoting3.EndpointImpl resourceUntick
      TRACE: Allocated tick to 2 of endpoint "config-based-naming-client-endpoint" <17725c4> (opened Connection to localhost/127.0.0.1:4447)
      06.07.2012 16:17:43 org.jboss.remoting3.remote.RemoteConnectionProvider connect
      TRACE: Attempting to connect to "localhost/127.0.0.1:4447" with options {org.xnio.Options.SASL_POLICY_NOANONYMOUS=>false}
      06.07.2012 16:17:43 org.xnio.nio.AbstractNioStreamChannel start
      TRACE: Adding channel java.nio.channels.SocketChannel[unconnected local=/0.0.0.0:4396] to Thread[Remoting "config-based-naming-client-endpoint" read-1,5,main] for XNIO channel TCP socket channel (NIO) <4a6cbf> (other thread)
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected on sun.nio.ch.WindowsSelectorImpl@d1fa5
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread safeRun
      TRACE: Running task org.xnio.nio.WorkerThread$SynchTask@1b000e7
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Beginning select on sun.nio.ch.WindowsSelectorImpl@d1fa5
      06.07.2012 16:17:43 org.xnio.nio.AbstractNioStreamChannel start
      TRACE: Adding channel java.nio.channels.SocketChannel[unconnected local=/0.0.0.0:4396] to Thread[Remoting "config-based-naming-client-endpoint" write-1,5,main] for XNIO channel TCP socket channel (NIO) <4a6cbf> (other thread)
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected on sun.nio.ch.WindowsSelectorImpl@1cbfe9d
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread safeRun
      TRACE: Running task org.xnio.nio.WorkerThread$SynchTask@23e5d1
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Beginning select on sun.nio.ch.WindowsSelectorImpl@1cbfe9d
      06.07.2012 16:17:43 org.xnio.nio.NioXnioWorker connectTcpStream
      TRACE: Setting channel listener to Connection finisher for java.nio.channels.SocketChannel[connection-pending local=/0.0.0.0:4396 remote=localhost/127.0.0.1:4447]
      06.07.2012 16:17:43 org.xnio.nio.NioXnioWorker connectTcpStream
      TRACE: Setting operations of key sun.nio.ch.SelectionKeyImpl@8e32e7 of java.nio.channels.SocketChannel[connection-pending local=/0.0.0.0:4396 remote=localhost/127.0.0.1:4447] to 08 (other thread)
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected on sun.nio.ch.WindowsSelectorImpl@d1fa5
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Beginning select on sun.nio.ch.WindowsSelectorImpl@d1fa5
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected on sun.nio.ch.WindowsSelectorImpl@d1fa5
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected key sun.nio.ch.SelectionKeyImpl@8e32e7 for java.nio.channels.SocketChannel[connection-pending local=/0.0.0.0:4396 remote=localhost/127.0.0.1:4447]
      06.07.2012 16:17:43 org.xnio.ChannelListeners invokeChannelListener
      TRACE: Invoking listener Connection finisher for java.nio.channels.SocketChannel[connection-pending local=/0.0.0.0:4396 remote=localhost/127.0.0.1:4447] on channel TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.nio.NioXnioWorker$1 handleEvent
      TRACE: Setting operations of key sun.nio.ch.SelectionKeyImpl@8e32e7 of java.nio.channels.SocketChannel[connected local=/127.0.0.1:4396 remote=localhost/127.0.0.1:4447] to 00 (same thread)
      06.07.2012 16:17:43 org.xnio.nio.NioXnioWorker$1 handleEvent
      TRACE: Setting channel listener to null
      06.07.2012 16:17:43 org.xnio.ChannelListeners invokeChannelListener
      TRACE: Invoking listener org.jboss.remoting3.remote.RemoteConnectionProvider$2@281d4b on channel TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.channels.TranslatingSuspendableChannel <init>
      TRACE: Setting channel listener to Read listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.channels.TranslatingSuspendableChannel <init>
      TRACE: Setting channel listener to Write listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.channels.TranslatingSuspendableChannel <init>
      TRACE: Setting channel listener to Close listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.channels.FramedMessageChannel <init>
      TRACE: Created new framed message channel around TCP socket channel (NIO) <4a6cbf>, receive buffer Pooled wrapper around java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196], transmit buffer Pooled wrapper around java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]
      06.07.2012 16:17:43 org.jboss.remoting3.remote.RemoteConnectionProvider$2 handleEvent
      TRACE: Setting channel listener to org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener@cb6009
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener handleEvent
      TRACE: Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting@1f6df4c
      06.07.2012 16:17:43 org.jboss.remoting3.remote.RemoteConnection setReadListener
      TRACE: Setting channel listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting@1f6df4c
      06.07.2012 16:17:43 org.xnio.channels.TranslatingSuspendableChannel resumeReads
      TRACE: Resume reads on TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.nio.AbstractNioStreamChannel resumeReads
      TRACE: Setting operations of key sun.nio.ch.SelectionKeyImpl@8e32e7 of java.nio.channels.SocketChannel[connected local=/127.0.0.1:4396 remote=localhost/127.0.0.1:4447] to 01 (same thread)
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Beginning select on sun.nio.ch.WindowsSelectorImpl@d1fa5
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected on sun.nio.ch.WindowsSelectorImpl@d1fa5
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected key sun.nio.ch.SelectionKeyImpl@8e32e7 for java.nio.channels.SocketChannel[connected local=/127.0.0.1:4396 remote=localhost/127.0.0.1:4447]
      06.07.2012 16:17:43 org.xnio.ChannelListeners invokeChannelListener
      TRACE: Invoking listener Read listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf> on channel TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.ChannelListeners invokeChannelListener
      TRACE: Invoking listener org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting@1f6df4c on channel org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.channels.FramedMessageChannel receive
      TRACE: Copying message from java.nio.HeapByteBuffer[pos=4 lim=16 cap=8196] into java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192]
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting handleEvent
      TRACE: Received java.nio.HeapByteBuffer[pos=12 lim=8192 cap=8192]
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting handleEvent
      TRACE: Client received greeting
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting handleEvent
      TRACE: Client received server name: localhost
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener sendCapRequest
      TRACE: Client sending capabilities request
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener sendCapRequest
      TRACE: Setting read listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities@fb56b1
      06.07.2012 16:17:43 org.jboss.remoting3.remote.RemoteConnection setReadListener
      TRACE: Setting channel listener to org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities@fb56b1
      06.07.2012 16:17:43 org.xnio.channels.FramedMessageChannel send
      TRACE: Accepting java.nio.HeapByteBuffer[pos=0 lim=41 cap=8192] into java.nio.HeapByteBuffer[pos=0 lim=8196 cap=8196]
      06.07.2012 16:17:43 org.xnio.channels.FramedMessageChannel send
      TRACE: Accepted a message into java.nio.HeapByteBuffer[pos=45 lim=8196 cap=8196]
      06.07.2012 16:17:43 org.xnio.channels.FramedMessageChannel doFlushBuffer
      TRACE: Fully flushed org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener sendCapRequest
      TRACE: Sent message java.nio.HeapByteBuffer[pos=41 lim=41 cap=8192] (direct)
      06.07.2012 16:17:43 org.xnio.channels.FramedMessageChannel doFlushBuffer
      TRACE: Fully flushed org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener sendCapRequest
      TRACE: Flushed channel (direct)
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Beginning select on sun.nio.ch.WindowsSelectorImpl@d1fa5
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected on sun.nio.ch.WindowsSelectorImpl@1cbfe9d
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Beginning select on sun.nio.ch.WindowsSelectorImpl@1cbfe9d (with timeout)
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected on sun.nio.ch.WindowsSelectorImpl@d1fa5
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected key sun.nio.ch.SelectionKeyImpl@8e32e7 for java.nio.channels.SocketChannel[connected local=/127.0.0.1:4396 remote=localhost/127.0.0.1:4447]
      06.07.2012 16:17:43 org.xnio.ChannelListeners invokeChannelListener
      TRACE: Invoking listener Read listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf> on channel TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.ChannelListeners invokeChannelListener
      TRACE: Invoking listener org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities@fb56b1 on channel org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.channels.FramedMessageChannel receive
      TRACE: Copying message from java.nio.HeapByteBuffer[pos=4 lim=23 cap=8196] into java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192]
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities handleEvent
      TRACE: Client received capabilities response
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities handleEvent
      TRACE: Client received capability: version 1
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities handleEvent
      TRACE: Client received capability: remote endpoint name "cl0037"
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities handleEvent
      TRACE: Client received capability: SASL mechanism PLAIN
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities handleEvent
      TRACE: SASL mechanism PLAIN added to allowed set
      06.07.2012 16:17:43 org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities handleEvent
      TRACE: Connection error detail
      javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
          at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:365)
          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.nio.NioHandle.run(NioHandle.java:90)
          at org.xnio.nio.WorkerThread.run(WorkerThread.java:184)
      06.07.2012 16:17:43 org.jboss.remoting3.remote.RemoteConnection handleException
      ERROR: JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
      06.07.2012 16:17:43 org.xnio.IoUtils safeClose
      TRACE: Closing resource org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.channels.FramedMessageChannel doFlushBuffer
      TRACE: Fully flushed org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.nio.NioTcpChannel close
      TRACE: Closing TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected on sun.nio.ch.WindowsSelectorImpl@1cbfe9d
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Beginning select on sun.nio.ch.WindowsSelectorImpl@1cbfe9d (with timeout)
      06.07.2012 16:17:43 org.xnio.nio.NioHandle cancelKey
      TRACE: Cancelling key sun.nio.ch.SelectionKeyImpl@8e32e7 of java.nio.channels.SocketChannel[closed] (same thread)
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected on sun.nio.ch.WindowsSelectorImpl@1cbfe9d
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Beginning select on sun.nio.ch.WindowsSelectorImpl@1cbfe9d (with timeout)
      06.07.2012 16:17:43 org.xnio.nio.NioHandle cancelKey
      TRACE: Cancelling key sun.nio.ch.SelectionKeyImpl@177b3cd of java.nio.channels.SocketChannel[closed] (other thread)
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Selected on sun.nio.ch.WindowsSelectorImpl@1cbfe9d
      06.07.2012 16:17:43 org.xnio.ChannelListeners invokeChannelListener
      TRACE: Invoking listener Close listener for org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf> on channel TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Beginning select on sun.nio.ch.WindowsSelectorImpl@1cbfe9d (with timeout)
      06.07.2012 16:17:43 org.xnio.IoUtils safeClose
      TRACE: Closing resource org.xnio.channels.FramedMessageChannel around TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.IoUtils safeClose
      TRACE: Closing resource TCP socket channel (NIO) <4a6cbf>
      06.07.2012 16:17:43 org.xnio.IoFuture$HandlingNotifier notify
      TRACE: Registered exception result
      javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
          at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:365)
          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.nio.NioHandle.run(NioHandle.java:90)
          at org.xnio.nio.WorkerThread.run(WorkerThread.java:184)
      06.07.2012 16:17:43 org.jboss.remoting3.EndpointImpl$5 handleFailed
      TRACE: Resource closed count 00000001 of endpoint "config-based-naming-client-endpoint" <17725c4> (closed a failed connection (2))
      06.07.2012 16:17:43 org.xnio.nio.WorkerThread run
      TRACE: Beginning select on sun.nio.ch.WindowsSelectorImpl@d1fa5
      06.07.2012 16:17:43 com.as7.client.QuickJmsTest testRemoteJMS
      SCHWERWIEGEND: Failed to create remoting connection
      Exception in thread "main" javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.RuntimeException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed]
          at org.jboss.naming.remote.client.ClientUtil.namingException(ClientUtil.java:51)
          at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:151)
          at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
          at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
          at javax.naming.InitialContext.init(InitialContext.java:223)
          at javax.naming.InitialContext.<init>(InitialContext.java:197)
          at com.as7.client.QuickJmsTest.getAS7RemoteInitialContext(QuickJmsTest.java:231)
          at com.as7.client.QuickJmsTest.testRemoteJMS(QuickJmsTest.java:110)
          at com.as7.client.QuickJmsTest.main(QuickJmsTest.java:75)
      Caused by: java.lang.RuntimeException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
          at org.jboss.naming.remote.protocol.IoFutureHelper.get(IoFutureHelper.java:87)
          at org.jboss.naming.remote.client.NamingStoreCache.getRemoteNamingStore(NamingStoreCache.java:68)
          at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateCachedNamingStore(InitialContextFactory.java:196)
          at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateNamingStore(InitialContextFactory.java:169)
          at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:134)
          ... 7 more
      Caused by: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
          at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:365)
          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.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:333)
          at org.jboss.naming.remote.client.EndpointCache$EndpointWrapper.connect(EndpointCache.java:105)
          at org.jboss.naming.remote.client.NamingStoreCache.getRemoteNamingStore(NamingStoreCache.java:67)
          ... 10 more
      

       

      Any help apreciated

      Radek

        • 1. Re: AS 7.1.2  Security Problem Accessing JMS Ressources
          rodakr Novice

          ... reading comments in jboss domain 1.3 schema definition helps :-)

           

            <security-realms>

                      <security-realm name="ManagementRealm">

                          <authentication>

                                <local default-user="$local"/>

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

                          </authentication>

                      </security-realm>

                      <security-realm name="ApplicationRealm">

                          <authentication>

                                 <local default-user="$local" allowed-users="*"/>

                                <jaas name="other"/>

                          </authentication>

                      </security-realm>

                  </security-realms>

          P.S:

           

          If somebody needs security on for ejb, but would still like to be able to to anonymous lookups to JMS Ressources, this will help:

           

           

            <subsystem xmlns="urn:jboss:domain:messaging:1.2">

                      <hornetq-server>

                          <persistence-enabled>true</persistence-enabled>

                          <security-domain>other</security-domain>

                          <security-enabled>false</security-enabled>