java.lang.IncompatibleClassChangeError: Expected non-static > field org.apache.naming.resources.FileDirContext.sm > at > org.apache.naming.resources.FileDirContext.file(FileDirContext.java:955) > at > org.apache.naming.resources.FileDirContext.file(FileDirContext.java:870) > at > org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:280) > at > org.glassfish.web.loader.WebappClassLoader.findResourceInternalFromRepositories(WebappClassLoader.java:2109) > at > org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2064) > at > org.glassfish.web.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1956) > at > org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:895) > at > org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1465) > at > org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1348) >

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) > at > org.apache.naming.resources.FileDirContext.file(FileDirContext.java:870) > at > org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:280) > at > org.glassfish.web.loader.WebappClassLoader.findResourceInternalFromRepositories(WebappClassLoader.java:2109) > at > org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2064) > at > org.glassfish.web.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1956) > at > org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:895) > at > org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1465) > at > org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1348) >

    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) > at > org.apache.naming.resources.FileDirContext.file(FileDirContext.java:870) > at > org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:280) > at > org.glassfish.web.loader.WebappClassLoader.findResourceInternalFromRepositories(WebappClassLoader.java:2109) > at > org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2064) > at > org.glassfish.web.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1956) > at > org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:895) > at > org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1465) > at > org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1348) >

      at java.lang.Class.forName0()
    2. 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