Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-256

java.lang.ClassNotFoundException: org.apache.openjpa.util.CacheMap in a jetty spring environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None
    • jetty 6.1.3 jdk 1.5 spring 2.0.5 openjpa 1.0.0-SNAPSHOT maven 2.0.5

    Description

      Get a ClassNotFoundException: org.apache.openjpa.util.CacheMap.

      I think the java.util.Map in Line 1405

      queryCompilationCachePlugin.instantiate(Map.class, this);

      of OpenJPAConfigurationImpl cause the error.

      The classloader in this enviroment is a sun.misc.Launcher$AppClassLoader for java.util.Map not a WebAppClassLoader.

      Changing the Map.class to CacheMap.class solves the problem (the right ClassLoader is used)

      Attachments

        1. OPENJPA-256.error.log
          10 kB
          Bernd Bohmann
        2. OPENJPA256.patch
          2 kB
          Bernd Bohmann

        Activity

          People

            Unassigned Unassigned
            bommel Bernd Bohmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: