1 Reply Latest reply on Oct 19, 2010 8:01 AM by Dietmar Scheidl

    seam jms user guest is not athenticated

    Simon Cigoj Newbie

      I'm tring to conect to a queue on jboss server but I get the folowing error :

      javax.jms.JMSSecurityException: User guest is NOT authenticated
           at org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore.authenticate(JBossASSecurityMetadataStore.java:223)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
           at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
           at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
           at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
           at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
           at javax.management.StandardMBean.invoke(Unknown Source)
           at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
           at $Proxy326.authenticate(Unknown Source)

      im using
      mysql5.1 as queue persistent datastore
      seam 2.2.0

      my components.xml

       <jms:queue-connection queue-connection-factory-jndi-name="java:/JmsXA" />  
       <jms:managed-queue-sender name="videoConverterQueueSender" auto-create="true" queue-jndi-name="queue/VideoConverterQueue" />

      my queue definition in destinations-service.xml


       <mbean code="org.jboss.jms.server.destination.QueueService"
            <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

      can anyone point me to a possible cause? Would be very grateful

        • 1. Re: seam jms user guest is not athenticated
          Dietmar Scheidl Newbie

          I know this is an old message ... but in case someone is searching for the solution:

          If you change the store of the messages to MySql, you may have taken the example mysql-persistence-service.xml from the docs directory and changed the DefaultDS to e.g. MySqlDS. The JMSUserManager also points to the new DataSource (MySqlDS) and creates the default entries.

          If you forget to change messaging-jboss-beans.xml which contains the definition of the LoginModule which then still points to the old DefaultDS you will get this error because the unauthenticatedIdentity is not found in the local HSQLDB which is still running on DefaultDS.

          Change this reference to the new MySqlDS and you are up and running.