10 Replies Latest reply on Dec 4, 2006 8:35 AM by chaitanya

    Error during queue setup

    chaitanya Novice

      i have created empQueue in jbossmq-destinations-service.xml and same queue mentioned for message diven bean(EMPMessageDrivenBean) in jboss.xml;after deploying EMPMessageDrivenBean i am getting below error;

      when u look at log file at first line only empQueue was created and was bound to JNDI name: queue/empQueue but why below error was coming??

      server.log
      *********


      2006-11-30 11:21:59,505 INFO [org.jboss.mq.server.jmx.Queue.empQueue] Bound to JNDI name: queue/empQueue
      2006-11-30 11:22:01,426 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/opt/p2jboss/4.0.2/server/talon1prodcopy/farm/EMP.ear
      2006-11-30 11:22:22,301 INFO [org.jboss.ejb.EjbModule] Deploying EMPMessageDrivenBean
      2006-11-30 11:22:27,817 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Could not find the queue destination-jndi-name=queue/empQueue
      2006-11-30 11:22:27,831 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] destination not found: queue/empQueue reason: javax.naming.NameNotFoundException: queue/empQueue
      2006-11-30 11:22:27,831 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] creating a new temporary destination: queue/empQueue
      2006-11-30 11:22:27,846 INFO [org.jboss.mq.server.jmx.Queue.empQueue] Registration is not done -> stop
      2006-11-30 11:22:27,871 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected:
      org.jboss.deployment.DeploymentException: Error during queue setup; - nested throwable: (javax.management.MBeanException)
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39)


      jbossmq-destinations-service.xml
      *********************************

      <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
      <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager
      -1









      jboss.xml
      **********
      <message-driven>
      <ejb-name>EMPMessageDrivenBean</ejb-name>
      <configuration-name>Standard Message Driven Bean</configuration-name>
      <destination-jndi-name>queue/empQueue</destination-jndi-name>
      </message-driven>

        • 1. Re: Error during queue setup
          chaitanya Novice

           

          "chaituu" wrote:
          i have created empQueue in jbossmq-destinations-service.xml and same queue mentioned for message diven bean(EMPMessageDrivenBean) in jboss.xml;after deploying EMPMessageDrivenBean i am getting below error;

          when u look at log file at first line only empQueue was created and was bound to JNDI name: queue/empQueue but why below error was coming??

          server.log
          *********


          2006-11-30 11:21:59,505 INFO [org.jboss.mq.server.jmx.Queue.empQueue] Bound to JNDI name: queue/empQueue
          2006-11-30 11:22:01,426 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/opt/p2jboss/4.0.2/server/talon1prodcopy/farm/EMP.ear
          2006-11-30 11:22:22,301 INFO [org.jboss.ejb.EjbModule] Deploying EMPMessageDrivenBean
          2006-11-30 11:22:27,817 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Could not find the queue destination-jndi-name=queue/empQueue
          2006-11-30 11:22:27,831 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] destination not found: queue/empQueue reason: javax.naming.NameNotFoundException: queue/empQueue
          2006-11-30 11:22:27,831 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] creating a new temporary destination: queue/empQueue
          2006-11-30 11:22:27,846 INFO [org.jboss.mq.server.jmx.Queue.empQueue] Registration is not done -> stop
          2006-11-30 11:22:27,871 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected:
          org.jboss.deployment.DeploymentException: Error during queue setup; - nested throwable: (javax.management.MBeanException)
          at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39)


          jbossmq-destinations-service.xml
          *********************************
          <mbean code="org.jboss.mq.server.jmx.Queue"
          name="jboss.mq.destination:service=Queue,name=empQueue">
          <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
          <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
          <attribute name="MessageCounterHistoryDayLimit">-1</attribute>
          <attribute name="SecurityConf">
          <security>
          <role name="guest" read="true" write="true"/>
          <role name="publisher" read="true" write="true" create="false"/>
          <role name="noacc" read="false" write="false" create="false"/>
          </security>
          </attribute>
          </mbean>

          jboss.xml
          **********
          <message-driven>
          <ejb-name>EMPMessageDrivenBean</ejb-name>
          <configuration-name>Standard Message Driven Bean</configuration-name>
          <destination-jndi-name>queue/empQueue</destination-jndi-name>
          </message-driven>


          • 2. Re: Error during queue setup
            byorn de silva Newbie

            in
            jbossmq-destination-service.xml have you defined you quename ?


            <mbean code="org.jboss.mq.server.jmx.Queue"
            name="jboss.mq.destination:service=Queue,name=empQueue">
            <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
            1000

            • 3. Re: Error during queue setup
              byorn de silva Newbie

              How have you configured the JMS Provider?
              What DB are you using?

              • 4. Re: Error during queue setup
                chaitanya Novice

                in
                jbossmq-destination-service.xml have you defined you quename ?

                yes


                <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
                <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager
                -1












                How have you configured the JMS Provider?

                in jms-ds we have configured the JMS Provider.

                What DB are you using?

                oracle;

                • 5. Re: Error during queue setup
                  chaitanya Novice

                  html tags are not coming;sorry for that;

                  • 6. Re: Error during queue setup
                    jaikiran pai Master

                    Use the Code button to post the contents of the xml and even the stacktrace

                    • 7. Re: Error during queue setup
                      chaitanya Novice

                       

                       <mbean code="org.jboss.jms.server.destination.Queue"
                       name="jboss.messaging.destination:service=Queue,name=empQueue"
                       xmbean-dd="xmdesc/Queue-xmbean.xml">
                       <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
                       <attribute name="SecurityConfig">
                       <security>
                       <role name="guest" read="true" write="true"/>
                       <role name="publisher" read="true" write="true" create="false"/>
                       <role name="noacc" read="false" write="false" create="false"/>
                       </security>
                       </attribute>
                       </mbean>
                      
                      


                      • 8. Re: Error during queue setup
                        byorn de silva Newbie

                        how have you specifiied the datasource ?

                        • 9. Re: Error during queue setup
                          byorn de silva Newbie

                          looks like Jboss cant locate the JMS provider. Are you using the default HSQLD configs or any other database?

                          • 10. Re: Error during queue setup
                            chaitanya Novice

                            i am using Oracle as DB