1 Reply Latest reply on Feb 8, 2006 11:46 AM by Clive Hill

    Errors in the EJB3.0 TrailBlazer

    Clive Hill Newbie

      I've just installed JBoss4.0.3SP1 fresh out of the box and deployed and run the EJB3.0 trailblazer - and there are failures in it!

      I'd appreciate knowing what to do to fix it. Thanks!



      On starting:
      16:14:43,553 INFO [ProxyDeployer] no declared remote bindings for : trail.apptr
      ans.CalculatorBean
      16:14:43,583 INFO [ProxyDeployer] no declared remote bindings for : trail.entit
      y.basic.CalculatorBean
      16:14:43,613 INFO [ProxyDeployer] no declared remote bindings for : trail.entit
      y.query.CalculatorBean
      16:14:43,623 INFO [ProxyDeployer] no declared remote bindings for : trail.entit
      y.update.CalculatorBean
      16:14:43,684 WARN [MDB] Could not find the queue destination-jndi-name=queue/in
      jection
      16:14:43,684 WARN [MDB] destination not found: queue/injection reason: javax.na
      ming.NameNotFoundException: injection not bound
      16:14:43,684 WARN [MDB] creating a new temporary destination: queue/injection
      16:14:43,684 INFO [injection] Bound to JNDI name: queue/injection
      16:14:43,684 INFO [MDB] JNDI Hashtable: null
      16:14:43,754 WARN [ResourceHandler] Unbound injected resource interface javax.s
      ql.DataSource myDb
      16:14:43,754 WARN [ServiceController] Problem starting service jboss.j2ee:servi
      ce=EJB3,name=trail.injection.RecordManagerBean
      javax.naming.NameNotFoundException: queue not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
      etc....




      On running JMX Calculator on trail 4 hike 2:
      Browser displays:
      java.lang.NullPointerException
      org.apache.jsp.serviceobjects.jmx.calculator_jsp._jspService(org.apache.jsp.serviceobjects.jmx.calculator_jsp:100)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      etc....

      and log shows:
      16:17:26,978 INFO [STDOUT] java.lang.RuntimeException: Error creating MBeanProxy: trail:service=calculator
      16:17:26,978 INFO [STDOUT] at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:365)
      16:17:26,978 INFO [STDOUT] at org.jboss.mx.util.MBeanProxyExt.(MBeanProxyExt.java:65)
      etc...
      16:17:26,988 INFO [STDOUT] Caused by: javax.management.InstanceNotFoundException: trail:service=calculator is not registered.
      16:17:26,988 INFO [STDOUT] at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:508)

        • 1. Re: Errors in the EJB3.0 TrailBlazer
          Clive Hill Newbie

          On inject dependency trail 7 hike 2:
          java.lang.NullPointerException
          org.apache.jsp.serviceobjects.injection.check_jsp._jspService(org.apache.jsp.serviceobjects.injection.check_jsp:63)
          org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
          javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

          and:
          16:43:26,771 ERROR [MDB] Exception in JMSCI message listener
          java.lang.RuntimeException: Unable to inject jndi dependency: java:comp.ejb3/env/ejb/rm into field trail.injection.RecordManager trail.injection.CalculatorMDB.rm
          at org.jboss.ejb3.injection.JndiFieldInjector.inject(JndiFieldInjector.java:48)
          at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:59)
          at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:33)
          at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:36)
          etc....
          Caused by: javax.naming.NameNotFoundException: trail.injection.RecordManager not bound
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
          at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
          at org.jnp.server.NamingServer.lookup(NamingServer.java:281)