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
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

    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