0 Replies Latest reply on Feb 6, 2006 6:23 PM by Jason Smith

    Issue Deploying EJB3Trail.ear

    Jason Smith Newbie

      I am attempting to go through the EJB 3.0 Trailblazer and have run into an issue.

      Steps so far:

      1. Download the JBoss 4.0.3SP1 jar installer
      2. Installed JBoss.
      3. I downloaded and followed the instrucitons under "upgrade the EJB 3.0 module" on the trail's start page.

      When I try to deploy the EJB3Trail.ear I get the following:

      17:01:01,097 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,ear=EJB3Trail.ear,jar=business.ejb3,name=CalculatorMDB
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:97)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:428)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy57.start(Unknown Source)
      at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:76)
      at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:414)
      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:463)
      at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:428)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy35.start(Unknown Source)
      at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:365)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
      Caused by: java.lang.RuntimeException: For EJB CalculatorMDB could not find jndi binding based on interface only for @EJB(trail.slsb.Calculator) not used b
      y any EJBs
      at org.jboss.ejb3.injection.EJBHandler.getJndiName(EJBHandler.java:216)
      at org.jboss.ejb3.injection.EJBHandler.loadFieldInjectors(EJBHandler.java:326)
      at org.jboss.ejb3.injection.EJBHandler.loadInjectors(EJBHandler.java:78)
      at org.jboss.ejb3.injection.EJBHandler.loadInjectors(EJBHandler.java:57)
      at org.jboss.ejb3.EJBContainer.resolveInjectors(EJBContainer.java:651)
      at org.jboss.ejb3.EJBContainer.initializePool(EJBContainer.java:586)
      at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:518)
      at org.jboss.ejb3.mdb.MDB.start(MDB.java:247)
      ... 78 more
      17:01:01,311 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,ear=EJB3Trail.ear,jar=business.ejb3,name=RecordManagerBean with depende
      ncies:
      17:01:01,474 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,ear=EJB3Trail.ear,jar=business.ejb3,name=CalculatorMBean with dependenc
      ies:
      17:01:01,555 INFO [STDOUT] Calculator - Creating
      17:01:01,555 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,ear=EJB3Trail.ear,jar=business.ejb3,name=CalculatorBean2 with dependenc
      ies:
      17:01:01,616 INFO [EJB3Deployer] Deployed: file:/C:/Jboss/jboss-4.0.3SP1/server/all/tmp/deploy/tmp7239EJB3Trail.ear-contents/business.ejb3
      17:01:01,616 INFO [EJB3Deployer] Deployed: file:/C:/Jboss/jboss-4.0.3SP1/server/all/tmp/deploy/tmp7239EJB3Trail.ear-contents/entities.par
      17:01:01,637 INFO [TomcatDeployer] deploy, ctxPath=/EJB3Trail, warUrl=.../tmp/deploy/tmp7239EJB3Trail.ear-contents/web-exp.war/
      17:01:01,708 INFO [EARDeployer] Started J2EE application: file:/C:/Jboss/jboss-4.0.3SP1/server/all/deploy/EJB3Trail.ear

      I not sure if I perhaps missed something in the upgrade (Step 3 above). Any thoughts.

      Thanks,