openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Bohmann (JIRA)" <>
Subject [jira] Commented: (OPENJPA-256) java.lang.ClassNotFoundException: org.apache.openjpa.util.CacheMap in a jetty spring environment
Date Sun, 10 Jun 2007 08:03:25 GMT


Bernd Bohmann commented on OPENJPA-256:

OpenJPA is configured by spring and part of the webapp.
The classes are enhanced at build time.

You can see the complete example at:

the 9.6-incubating version works but any newer version shows this error.

If you want to play with it you can use this version

this is using a released version of tobago. You don't need to build the whole project :-).

Please change the property openjpa.version to a newer version in the pom and start the application

mvn jetty:run-exploded and open a browser with the url http://localhost:8080

> java.lang.ClassNotFoundException: org.apache.openjpa.util.CacheMap in a jetty spring
> ------------------------------------------------------------------------------------------------
>                 Key: OPENJPA-256
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>         Environment: jetty 6.1.3 jdk 1.5 spring 2.0.5 openjpa 1.0.0-SNAPSHOT
>            Reporter: Bernd Bohmann
>         Attachments: OPENJPA-256.error.log
> 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

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message