javax.ejb.EJBException: javax.ejb.EJBException: javax.ejb.CreateException: Could not create stateless EJB

Stack Overflow | Meinew | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Reason for “java.lang.NoClassDefFoundError: org/apache/openejb/loader/OpenEJBInstance” - www.scriptscoop.net

    scriptscoop.net | 11 months ago
    javax.ejb.EJBException: javax.ejb.EJBException: javax.ejb.CreateException: Could not create stateless EJB
  2. 0

    Reason for "java.lang.NoClassDefFoundError: org/apache/openejb/loader/OpenEJBInstance"

    Stack Overflow | 3 years ago | Meinew
    javax.ejb.EJBException: javax.ejb.EJBException: javax.ejb.CreateException: Could not create stateless EJB

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/apache/openejb/loader/OpenEJBInstance

      at org.apache.openejb.core.LocalInitialContextFactory.init()
    2. OpenEJB :: OSGi :: Core
      LocalInitialContextFactory.getInitialContext
      1. org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:63)
      2. org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:51)
      3. org.apache.openejb.core.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:40)
      3 frames
    3. Java RT
      InitialContext.<init>
      1. javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
      2. javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
      3. javax.naming.InitialContext.init(InitialContext.java:244)
      4. javax.naming.InitialContext.<init>(InitialContext.java:216)
      4 frames
    4. metier
      Metier.<init>
      1. metier.Metier.<init>(Metier.java:30)
      1 frame
    5. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:408)
      4 frames
    6. Weld Implementation
      SessionBeanInjectionTarget.produce
      1. org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:79)
      2. org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:63)
      3. org.jboss.weld.injection.producer.AbstractInstantiator.newInstance(AbstractInstantiator.java:29)
      4. org.jboss.weld.injection.producer.DefaultInstantiator.newInstance(DefaultInstantiator.java:90)
      5. org.jboss.weld.injection.producer.BasicInjectionTarget.produce(BasicInjectionTarget.java:86)
      6. org.jboss.weld.injection.producer.BeanInjectionTarget.produce(BeanInjectionTarget.java:172)
      7. org.jboss.weld.injection.producer.ejb.SessionBeanInjectionTarget.produce(SessionBeanInjectionTarget.java:98)
      7 frames
    7. Embedded GlassFish Web
      EJBObjectInvocationHandlerDelegate.invoke
      1. org.glassfish.weld.services.JCDIServiceImpl._createJCDIInjectionContext(JCDIServiceImpl.java:210)
      2. org.glassfish.weld.services.JCDIServiceImpl.createJCDIInjectionContext(JCDIServiceImpl.java:179)
      3. com.sun.ejb.containers.BaseContainer.createEjbInstanceAndContext(BaseContainer.java:1631)
      4. com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:456)
      5. com.sun.ejb.containers.StatelessSessionContainer.access$000(StatelessSessionContainer.java:97)
      6. com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:698)
      7. com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:246)
      8. com.sun.ejb.containers.StatelessSessionContainer._getContext(StatelessSessionContainer.java:430)
      9. com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:2516)
      10. com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1906)
      11. com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:204)
      12. com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:79)
      12 frames
    8. com.sun.proxy
      $Proxy330.calculerFeuilleSalaire
      1. com.sun.proxy.$Proxy330.calculerFeuilleSalaire(Unknown Source)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:483)
      4 frames
    10. glassfish-corba-orb
      MessageMediatorImpl.doWork
      1. com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:143)
      2. com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:173)
      3. com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatchToServant(ServerRequestDispatcherImpl.java:528)
      4. com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatch(ServerRequestDispatcherImpl.java:199)
      5. com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequestRequest(MessageMediatorImpl.java:1549)
      6. com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:1425)
      7. com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleInput(MessageMediatorImpl.java:930)
      8. com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:213)
      9. com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:694)
      10. com.sun.corba.ee.impl.protocol.MessageMediatorImpl.dispatch(MessageMediatorImpl.java:496)
      11. com.sun.corba.ee.impl.protocol.MessageMediatorImpl.doWork(MessageMediatorImpl.java:2222)
      11 frames
    11. Maven Default Project
      ThreadPoolImpl$WorkerThread.run
      1. com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
      2. com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
      2 frames