1 Reply Latest reply on Dec 13, 2005 8:15 PM by Thomas Orr

    EJB Suddenly Stopped Deploying

    Thomas Orr Newbie

      I deployed some code that hasn't been touched in a couple weeks today, and it will no longer deploy. I continually receive a NoClassDefFoundError when I can plainly see inside all of the deployed archives that everything is fine. I downloaded and installed 4.0.3SP1 again and it is still happening.

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:service=EJB3,name=foo.bar.services.UserServiceImpl
       State: FAILED
       Reason: java.lang.NoSuchFieldError: doPruning
      
      ObjectName: jboss.j2ee:service=EJB3,name=foo.bar.services.UserServiceEjb3Dao
       State: FAILED
       Reason: java.lang.NoClassDefFoundError
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.j2ee:service=EJB3,name=foo.bar.services.UserServiceEjb3Dao
       State: FAILED
       Reason: java.lang.NoClassDefFoundError
      
      ObjectName: jboss.j2ee:service=EJB3,name=foo.bar.services.UserServiceImpl
       State: FAILED
       Reason: java.lang.NoSuchFieldError: doPruning
      


      This is insane to me because I can see plain as day that all the classes are properly packaged. However, the EJB will no longer deploy. Has anyone ever seen this before?

      Complete stack trace:

      15:53:20,773 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=foo.bar.services.UserServiceImpl, class=foo.bar.services.UserServiceImpl, type=STATELESS
      15:53:20,804 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,name=foo.bar.services.UserServiceImpl
      java.lang.NoSuchFieldError: doPruning
      at org.jboss.aop.AOPClassPool.(AOPClassPool.java:34)
      at org.jboss.aop.AspectManager.registerClassLoader(AspectManager.java:552)
      at org.jboss.aop.AspectManager.findClassPool(AspectManager.java:537)
      at org.jboss.aop.annotation.PortableAnnotationElement.getClassFile(PortableAnnotationElement.java:237)
      at org.jboss.aop.annotation.PortableAnnotationElement.isAnyAnnotationPresent(PortableAnnotationElement.java:219)
      at org.jboss.aop.Advisor.hasAnnotation(Advisor.java:260)
      at org.jboss.aop.pointcut.Util.matchesClassExpr(Util.java:78)
      at org.jboss.aop.pointcut.AnnotationMatcher.visit(AnnotationMatcher.java:185)
      at org.jboss.aop.pointcut.ast.ASTClass.jjtAccept(ASTClass.java:23)
      at org.jboss.aop.pointcut.AnnotationMatcher.visit(AnnotationMatcher.java:76)
      at org.jboss.aop.pointcut.ast.ASTNot.jjtAccept(ASTNot.java:22)
      at org.jboss.aop.pointcut.AnnotationMatcher.visit(AnnotationMatcher.java:60)
      at org.jboss.aop.pointcut.ast.ASTStart.jjtAccept(ASTStart.java:22)
      at org.jboss.aop.introduction.AnnotationIntroduction.matches(AnnotationIntroduction.java:123)
      at org.jboss.aop.Advisor.deployAnnotationOverrides(Advisor.java:192)
      at org.jboss.aop.ClassContainer.initializeMetadata(ClassContainer.java:56)
      at org.jboss.aop.ClassContainer.initializeClassContainer(ClassContainer.java:41)
      at org.jboss.ejb3.EJBContainer.create(EJBContainer.java:292)
      at org.jboss.ejb3.stateless.StatelessManager.createService(StatelessManager.java:87)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:228)
      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.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.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:341)
      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.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 $Proxy73.create(Unknown Source)
      at org.jboss.ejb3.Ejb3JmxDeployment.registerContainer(Ejb3JmxDeployment.java:220)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:329)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:311)
      at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:293)
      at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:264)
      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:251)
      at org.jboss.ejb3.Ejb3JmxDeployment.create(Ejb3JmxDeployment.java:230)
      at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:34)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:228)
      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.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.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:341)
      at org.jboss.system.ServiceController.create(ServiceController.java:284)
      at sun.reflect.GeneratedMethodAccessor5.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 $Proxy10.create(Unknown Source)
      at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:208)
      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.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 $Proxy11.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor8.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)
      15:53:20,820 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=foo.bar.services.UserServiceEjb3Dao, class=foo.bar.services.UserServiceEjb3Dao, type=STATELESS
      15:53:20,835 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,name=foo.bar.services.UserServiceEjb3Dao
      java.lang.NoClassDefFoundError
      at org.jboss.aop.AspectManager.registerClassLoader(AspectManager.java:552)
      at org.jboss.aop.AspectManager.findClassPool(AspectManager.java:537)
      at org.jboss.aop.annotation.PortableAnnotationElement.getClassFile(PortableAnnotationElement.java:237)
      at org.jboss.aop.annotation.PortableAnnotationElement.isAnyAnnotationPresent(PortableAnnotationElement.java:219)
      at org.jboss.aop.Advisor.hasAnnotation(Advisor.java:260)
      at org.jboss.aop.pointcut.Util.matchesClassExpr(Util.java:78)
      at org.jboss.aop.pointcut.AnnotationMatcher.visit(AnnotationMatcher.java:185)
      at org.jboss.aop.pointcut.ast.ASTClass.jjtAccept(ASTClass.java:23)
      at org.jboss.aop.pointcut.AnnotationMatcher.visit(AnnotationMatcher.java:76)
      at org.jboss.aop.pointcut.ast.ASTNot.jjtAccept(ASTNot.java:22)
      at org.jboss.aop.pointcut.AnnotationMatcher.visit(AnnotationMatcher.java:60)
      at org.jboss.aop.pointcut.ast.ASTStart.jjtAccept(ASTStart.java:22)
      at org.jboss.aop.introduction.AnnotationIntroduction.matches(AnnotationIntroduction.java:123)
      at org.jboss.aop.Advisor.deployAnnotationOverrides(Advisor.java:192)
      at org.jboss.aop.ClassContainer.initializeMetadata(ClassContainer.java:56)
      at org.jboss.aop.ClassContainer.initializeClassContainer(ClassContainer.java:41)
      at org.jboss.ejb3.EJBContainer.create(EJBContainer.java:292)
      at org.jboss.ejb3.stateless.StatelessManager.createService(StatelessManager.java:87)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:228)
      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.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.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:341)
      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.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 $Proxy73.create(Unknown Source)
      at org.jboss.ejb3.Ejb3JmxDeployment.registerContainer(Ejb3JmxDeployment.java:220)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:329)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:311)
      at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:293)
      at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:264)
      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:251)
      at org.jboss.ejb3.Ejb3JmxDeployment.create(Ejb3JmxDeployment.java:230)
      at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:34)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:228)
      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.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.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:341)
      at org.jboss.system.ServiceController.create(ServiceController.java:284)
      at sun.reflect.GeneratedMethodAccessor5.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 $Proxy10.create(Unknown Source)
      at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:208)
      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.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 $Proxy11.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor8.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)
      15:53:20,835 INFO [JaccHelper] JACC Policy Configuration for deployment has been put in service
      15:53:20,835 INFO [Ejb3Deployment] EJB3 deployment time took: 140
      15:53:20,851 INFO [EJB3Deployer] Deployed: file:/E:/jboss-4.0.3SP1/server/default/deploy/userservice-ejb3-1.0.ejb3


        • 1. Re: EJB Suddenly Stopped Deploying
          Thomas Orr Newbie

          Okay, I'm pretty sure JBoss is going bonkers. Below is the interface and bean. I stripped them down to near nothing:

          package foo.bar.services;
          
          import javax.ejb.Stateless;
          import foo.bar.services.api.UserService;
          
          /**
           *
           */
          @Stateless
          public class UserServiceImpl implements UserService { }
          

          package foo.bar.services.api;
          
          /**
           *
           */
          public interface UserService { }
          


          It still won't deploy:

          --- MBeans waiting for other MBeans ---
          ObjectName: jboss.j2ee:service=EJB3,name=foo.bar.services.UserServiceImpl
           State: FAILED
           Reason: java.lang.NoSuchFieldError: doPruning
          
          --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
          ObjectName: jboss.j2ee:service=EJB3,name=foo.bar.services.UserServiceImpl
           State: FAILED
           Reason: java.lang.NoSuchFieldError: doPruning
          


          If that doesn't prove that it's not me, I don't know what does.