1 Reply Latest reply on Oct 23, 2002 11:29 AM by Paul Manning

    Problem with MDB deploymernt:  The connection has already a

    Paul Manning Newbie

      Hello,

      I have just been conducting an evaluation of JBoss. Both as a J2EE server and as a JMS server. I would appreciate some assistance deploying a very simple MDB. I am getting a "javax.jms.IllegalStateException: The connection has already a clientID" error.

      When the server attempts to hot deploy the MDB, I get the following error:

      17:48:08,451 INFO [MainDeployer] Starting deployment of package:
      file:/C:/Java/
      JBOSS/jboss-3.0.3/server/default/deploy/JBossMDB.ear
      17:48:08,521 INFO [EARDeployer] Init J2EE application:
      file:/C:/Java/JBOSS/jbos
      s-3.0.3/server/default/deploy/JBossMDB.ear
      17:48:08,642 INFO [EjbModule] Creating
      17:48:08,662 INFO [EjbModule] Deploying PrintBean
      17:48:08,732 INFO [JMSContainerInvoker] Creating
      17:48:08,732 INFO [JMSContainerInvoker] Created
      17:48:08,742 INFO [EjbModule] Created
      17:48:08,742 INFO [EjbModule] Starting
      17:48:08,752 INFO [JMSContainerInvoker] Starting
      17:48:08,762 INFO [DLQHandler] Creating
      17:48:08,932 INFO [DLQHandler] Created
      17:48:08,942 INFO [DLQHandler] Starting
      17:48:08,962 INFO [DLQHandler] Started
      17:48:08,962 INFO [JMSContainerInvoker] Started
      17:48:08,962 INFO [EjbModule] Started
      17:48:08,972 WARN [JMSContainerInvoker] JMS provider failure detected:
      javax.jms.IllegalStateException: The connection has already a clientID
      at org.jboss.mq.Connection.setClientID(Connection.java:288)
      at
      org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContaine
      rInvoker.java:714)
      at
      org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContain
      erInvoker.java:824)
      at
      org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      64)
      at
      org.jboss.ejb.MessageDrivenContainer.start(MessageDrivenContainer.jav
      a:200)
      at org.jboss.ejb.Container.invoke(Container.java:756)
      at
      org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at
      org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:976)
      at $Proxy5.start(Unknown Source)
      at

      The MDB is the very simple onMessage and then println example. I have tried deploying the MDB as a different client and using a different user, but I can't seem to get around this error.

      My jboss.xml file is:

      <?xml version="1.0"?>

      <enterprise-beans>
      <message-driven>
      <ejb-name>PrintBean</ejb-name>
      <configuration-name>Standard Message Driven Bean</configuration-name>
      <destination-jndi-name>queue/Journals</destination-jndi-name>
      <mdb-user>mdbtester</mdb-user>
      <mdb-passwd>mdbtest</mdb-passwd>
      <mdb-client-id>mdbtester</mdb-client-id>
      </message-driven>
      </enterprise-beans>


      ejb-jar.xml.....

      <?xml version="1.0"?>
      <!DOCTYPE ejb-jar>
      <ejb-jar>
      <enterprise-beans>
      <message-driven>
      <ejb-name>PrintBean</ejb-name>
      <ejb-class>example.beans.PrintBean</ejb-class>
      <message-selector></message-selector>
      <transaction-type>Container</transaction-type>
      <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
      <message-driven-destination>
      <destination-type>javax.jms.Topic</destination-type>
      <subscription-durability>Durable</subscription-durability>
      </message-driven-destination>
      </message-driven>
      </enterprise-beans>
      </ejb-jar>


      And jbossmq-state.xml is...

      <?xml version="1.0" encoding="UTF-8"?>



      Mims
      mimsvagos
      Mims


      Cms
      CmsLondon
      Cms


      mdbtester
      mdbtest
      mdbtester


      john
      needle
      DurableSubscriberExample


      guest
      guest


      nobody
      nobody


      dynsub
      dynsub




      guest
      john


      john
      Mims
      mdbtest


      john
      dynsub
      Mims
      Cms
      mdbtest


      john
      dynsub
      Mims
      mdbtest


      nobody




      DurableSubscriberExample
      DurableSubscriberExample
      testTopic


      DurableSubscriberExample

      testTopic


      Mims
      Mims
      Journals


      mdbtest
      mdbtest
      Journals




      Any assistance would be most appreciated!

      Thanks,

      Paul.