3 Replies Latest reply on Dec 10, 2003 12:17 AM by liuhf

    javax.jms.JMSSecurityException: Connection not authorized to

    liuhf

      hi all,

      after i hot deploy a simple mdb. the jboss3.0.8 raeses exception:

      10:06:35,593 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider
      10:06:45,593 INFO [DLQHandler] Destroying
      10:06:45,593 INFO [DLQHandler] Destroyed
      10:06:45,593 INFO [DLQHandler] Creating
      10:06:45,593 INFO [DLQHandler] Created
      10:06:45,593 INFO [JMSContainerInvoker] Reconnected to JMS provider
      10:06:45,593 WARN [JMSContainerInvoker] JMS provider failure detected:
      javax.jms.JMSSecurityException: Connection not authorized to do durable subscrip
      tion on topic: mytestTopic

      at org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecur
      ityInterceptor.java:142)
      at org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.j
      ava:676)
      at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:
      298)
      at org.jboss.mq.il.jvm.JVMServerIL.subscribe(JVMServerIL.java:315)
      at org.jboss.mq.Connection.addConsumer(Connection.java:1073)
      at org.jboss.mq.SpyConnectionConsumer.(SpyConnectionConsumer.java:
      73)
      at org.jboss.mq.SpyConnection.createDurableConnectionConsumer(SpyConnect
      ion.java:115)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContaine
      rInvoker.java:772)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContain
      erInvoker.java:880)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.o
      nException(JMSContainerInvoker.java:1162)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvok
      er.java:891)

      but i have create the user/passwd/id:fff/fff/idfff
      and have:

      idfff
      mytestTopic


      in my jboss.xml:
      ....
      <mdb-user>fff</mdb-user>
      <mdb-passwd>fff</mdb-passwd>
      <mdb-subscription-id>idfff<mdb-subscription-id>
      <configuration-name>Standard Message Driven Bean</configuration-name>

      when the jboss.xml file becomes this:
      ...
      <mdb-user>fff</mdb-user>
      <mdb-passwd>fff</mdb-passwd>
      <mdb-client-id>idfff<mdb-client-id>
      <configuration-name>Standard Message Driven Bean</configuration-name>

      then raises exception:
      the server has already a clientID

      what can i do ?

      liuhf