5 Replies Latest reply on Jul 25, 2008 9:20 AM by adrian.brock

    ejb3 mdbs not giving name not found errors in jboss5

    roshan_ail

      I originally posted this at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=138718

      I have a few mdbs that were created using the ejb3 spec.
      I specifically referred to the tutorial at http://trailblazer.demo.jboss.com/EJB3Trail/serviceobjects/mdb/index.html

      Essentially I have jar file in which I have packaged my mdb.
      The jar is being put under JBOSS_HOME/server/default/deploy/common-libs
      I haven't updated any configuration files.

      Jboss shows this when it starts up

      14:40:44,565 INFO [STDOUT] ======> Creating interceptor metadata bridge
      14:40:44,846 INFO [JBossASKernel] Created KernelDeployment for: reporting.jar
      14:40:44,846 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=reporting.jar,jar=reporting.jar,name=SEMReportDataExtraction,service=EJB3
      14:40:44,862 INFO [JBossASKernel] with dependencies:
      14:40:44,862 INFO [JBossASKernel] and demands:
      14:40:44,877 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      14:40:44,877 INFO [JBossASKernel] and supplies:
      14:40:44,877 INFO [JBossASKernel] Class:javax.jms.MessageListener
      14:40:44,893 INFO [JBossASKernel] jndi:queue/SEMReportData
      14:40:44,893 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=reporting.jar,jar=reporting.jar,name=SEMReportDataExtraction,service=EJB3) to KernelDeployment o
      f: reporting.jar
      14:40:44,908 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=reporting.jar,jar=reporting.jar,name=Tabular Report Generator Bean,service=EJB3
      14:40:44,908 INFO [JBossASKernel] with dependencies:
      14:40:44,924 INFO [JBossASKernel] and demands:
      14:40:44,924 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      14:40:44,940 INFO [JBossASKernel] and supplies:
      14:40:44,940 INFO [JBossASKernel] jndi:queue/TabularReportGenerator
      14:40:44,940 INFO [JBossASKernel] Class:javax.jms.MessageListener
      14:40:44,955 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=reporting.jar,jar=reporting.jar,name=Tabular Report Generator Bean,service=EJB3) to KernelDeploy
      ment of: reporting.jar
      


      and then it gives a name not found exception


      4:41:09,605 ERROR [JmsActivation] Unable to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@1c64057(ra=org.jboss.resource.adapter.jms.JmsR
      sourceAdapter@5e79f428 destination=queue/TabularReportGenerator isTopic=false tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null
      maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queu
      /DLQ DLQUser=null DLQMaxResent=5)
      avax.naming.NameNotFoundException: TabularReportGenerator not bound
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
       at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
       at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
       at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
       at javax.naming.InitialContext.lookup(InitialContext.java:392)
       at org.jboss.util.naming.Util.lookup(Util.java:222)
       at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(JmsActivation.java:441)
       at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:340)
       at org.jboss.resource.adapter.jms.inflow.JmsActivation.handleFailure(JmsActivation.java:280)
       at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:696)
       at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
       at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
       at java.lang.Thread.run(Thread.java:619)