[jboss-user] [Security & JAAS/JBoss] - Authentication issue usin jmsxa connection factory

schndr do-not-reply at jboss.com
Wed Jan 16 21:45:24 EST 2008


Hi,
Iam using jmsxa connectionfactory.Getting authentication error 'User guest is not authenticated' I beleive this is already discussed in so many places.But still Iam not finding any solution.

Below is the login config file

<application-policy name = "jbossmq">
       
          <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
             flag = "required">
             <module-option name = "unauthenticatedIdentity">guest</module-option>
             <module-option name = "dsJndiName">java:/DefaultDS</module-option>
             <module-option name = "principalsQuery">SELECT PASSWD FROM JMS_USERS WHERE USERID=?</module-option>
             <module-option name = "rolesQuery">SELECT ROLEID, 'Roles' FROM JMS_ROLES WHERE USERID=?</module-option>
          </login-module>
       
    </application-policy>
<application-policy name = "JmsXARealm">
       
          <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule"
             flag = "required">
			 <module-option name = "principal">guest</module-option>
             <module-option name = "userName">guest</module-option>
             <module-option name = "password">guest</module-option>
             <module-option name = "managedConnectionFactoryName">jboss.jca:service=TxCM,name=JmsXA</module-option>
          </login-module>
       
    </application-policy>


And the provider url and the connection factory info are:

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://localhost:1100
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
connection.factory=java:/JmsXA

And in the jbossmq-service.xml I have the following entry


 
 
   
      
    
    java:/jaas/jbossmq
    <depends optional-attribute-name="NextInterceptor">
jboss.mq:service=DestinationManager
  

Iam using all server config for clustering.All the jms files are under deploy-hasingleton.
I have followed the instructions to use deply-hasingleton.

while server is coming up Iam getting the following error for all the listeners

listener.DefaultMessageListenerContainer | Setup of JMS message listener invoker failed - trying to recover
javax.jms.JMSException: Could not create a session: javax.resource.spi.CommException: javax.jms.JMSSecurityException: User: guest is NOT authenticated
	at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.allocateConnection(JmsSessionFactoryImpl.java:392)
	at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.createSession(JmsSessionFactoryImpl.java:358)
	at org.springframework.jms.support.JmsAccessor.createSession(JmsAccessor.java:200)

Can you please help?

Thanks in advance,
schndr

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120696#4120696

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120696



More information about the jboss-user mailing list