2 Replies Latest reply on Dec 1, 2005 4:20 PM by Dave Chen

    deploy, NoClassDefFoundError, but the class is the session j

    Dave Chen Master

      When deploy, I got NoClassDefFoundError,
      but the class "session.ShapeManagerBean" is in the session jar.
      what might be wrong? thanks!

      package session;
      public interface ShapeManager {

      ...
      }

      package session;
      @Stateless
      public class ShapeManagerBean implements ShapeManager {

      @PersistenceContext
      protected EntityManager em;
      ....
      }

      [ProxyDeployer] no declared remote bindings for : session.ShapeManagerBean
      WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,name=session.ShapeManagerBean
      java.lang.NoClassDefFoundError
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:164)
      at $Proxy91.(Unknown Source)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at org.jboss.ejb3.stateless.StatelessLocalProxyFactory.createProxy(StatelessLocalProxyFactory.java:55)
      at org.jboss.ejb3.stateless.BaseStatelessProxyFactory.start(BaseStatelessProxyFactory.java:47)
      at org.jboss.ejb3.ProxyDeployer.start(ProxyDeployer.java:127)
      at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:55)
      at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:63)
      at org.jboss.ejb3.stateless.StatelessManager.startService(StatelessManager.java:93)
      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)