java.lang.RuntimeException: EJB Container initialization error

Oracle Community | 392 Guest | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Embedded GlassFish trunk not working

    Oracle Community | 7 years ago | 392 Guest
    java.lang.RuntimeException: EJB Container initialization error

    Root Cause Analysis

    1. java.lang.IncompatibleClassChangeError

      Expected non-static field org.apache.naming.resources.FileDirContext.sm

      at org.apache.naming.resources.FileDirContext.file()
    2. Web Container Naming Utilities
      FileDirContext.lookup
      1. org.apache.naming.resources.FileDirContext.file(FileDirContext.java:955)
      2. org.apache.naming.resources.FileDirContext.file(FileDirContext.java:870)
      3. org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:280)
      3 frames
    3. Web Container Common Utilities
      WebappClassLoader.loadClass
      1. org.glassfish.web.loader.WebappClassLoader.findResourceInternalFromRepositories(WebappClassLoader.java:2109)
      2. org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2064)
      3. org.glassfish.web.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1956)
      4. org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:895)
      5. org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1465)
      6. org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1348)
      6 frames
    4. Java RT
      Package.getAnnotations
      1. java.lang.Class.forName0(Native Method)
      2. java.lang.Class.forName(Class.java:247)
      3. java.lang.Package.getPackageInfo(Package.java:352)
      4. java.lang.Package.getAnnotations(Package.java:383)
      4 frames
    5. GlassFish Annotation
      AnnotationProcessorImpl.process
      1. org.glassfish.apf.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:281)
      2. org.glassfish.apf.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:267)
      3. org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:167)
      4. org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:130)
      4 frames
    6. Deployment Object Library
      Archivist.processAnnotations
      1. com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:607)
      1 frame
    7. Glassfish
      EmbeddedWebArchivist.processAnnotations
      1. org.glassfish.web.embed.impl.EmbeddedWebArchivist.processAnnotations(EmbeddedWebArchivist.java:123)
      1 frame
    8. Deployment Object Library
      Archivist.readDeploymentDescriptors
      1. com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:456)
      2. com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:443)
      3. com.sun.enterprise.deployment.archivist.Archivist.readRestDeploymentDescriptors(Archivist.java:419)
      4. com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:394)
      4 frames