java.lang.IncompatibleClassChangeError: Expected non-static field org.apache.naming.resources.FileDirContext.sm at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:955) and on another with this: javax.ejb.EJBException: No EJBContainer provider available The following providers: org.glassfish.ejb.embedded.EJBContainerProviderImpl Returned null from createEJBContainer call.

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.IncompatibleClassChangeError: Expected non-static field org.apache.naming.resources.FileDirContext.sm at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:955) and on another with this: javax.ejb.EJBException: No EJBContainer provider available The following providers: org.glassfish.ejb.embedded.EJBContainerProviderImpl Returned null from createEJBContainer call.

    Root Cause Analysis

    1. java.lang.IncompatibleClassChangeError

      Expected non-static field org.apache.naming.resources.FileDirContext.sm at org.apache.naming.resources.FileDirContext.file(FileDirContext.java:955) and on another with this: javax.ejb.EJBException: No EJBContainer provider available The following providers: org.glassfish.ejb.embedded.EJBContainerProviderImpl Returned null from createEJBContainer call.

      at javax.ejb.embeddable.EJBContainer.reportError()
    2. JavaEE 7
      EJBContainer.createEJBContainer
      1. javax.ejb.embeddable.EJBContainer.reportError(EJBContainer.java:200)
      2. javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:135)
      2 frames