From dev-return-4505-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Sun Jun 10 08:03:57 2007 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 7827 invoked from network); 10 Jun 2007 08:03:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2007 08:03:57 -0000 Received: (qmail 4521 invoked by uid 500); 10 Jun 2007 08:03:52 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 4486 invoked by uid 500); 10 Jun 2007 08:03:51 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 4366 invoked by uid 99); 10 Jun 2007 08:03:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 01:03:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 01:03:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D7E997141E8 for ; Sun, 10 Jun 2007 01:03:25 -0700 (PDT) Message-ID: <30860777.1181462605874.JavaMail.jira@brutus> Date: Sun, 10 Jun 2007 01:03:25 -0700 (PDT) From: "Bernd Bohmann (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-256) java.lang.ClassNotFoundException: org.apache.openjpa.util.CacheMap in a jetty spring environment In-Reply-To: <31214896.1181390908639.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503158 ] 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: http://svn.apache.org/repos/asf/myfaces/tobago/trunk/example/addressbook/ 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 http://svn.apache.org/repos/asf/myfaces/tobago/tags/tobago-1.0.11/example/addressbook/ 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 with 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 environment > ------------------------------------------------------------------------------------------------ > > Key: OPENJPA-256 > URL: https://issues.apache.org/jira/browse/OPENJPA-256 > 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 used) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.