Return-Path: Delivered-To: apmail-openjpa-users-archive@locus.apache.org Received: (qmail 85862 invoked from network); 18 Aug 2007 18:11:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Aug 2007 18:11:24 -0000 Received: (qmail 35303 invoked by uid 500); 18 Aug 2007 18:11:21 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 35284 invoked by uid 500); 18 Aug 2007 18:11:21 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 35275 invoked by uid 99); 18 Aug 2007 18:11:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Aug 2007 11:11:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sudhakar@co.brazos.tx.us designates 209.189.225.20 as permitted sender) Received: from [209.189.225.20] (HELO post.co.brazos.tx.us) (209.189.225.20) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Aug 2007 18:11:44 +0000 Received: by post.co.brazos.tx.us (Postfix, from userid 500) id C99D2B1B5; Sat, 18 Aug 2007 13:10:56 -0500 (CDT) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on post.co.brazos.tx.us X-Spam-Level: Received: from webmail.co.brazos.tx.us (bordergrd.co.brazos.tx.us [209.189.225.17]) by post.co.brazos.tx.us (Postfix) with ESMTP id 421F3B193 for ; Sat, 18 Aug 2007 13:10:56 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by webmail.co.brazos.tx.us (Postfix) with ESMTP id 2B53A7EA4B for ; Sat, 18 Aug 2007 13:10:56 -0500 (CDT) Received: from webmail.co.brazos.tx.us ([127.0.0.1]) by localhost (webmail.co.brazos.tx.us [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28113-01 for ; Sat, 18 Aug 2007 13:10:55 -0500 (CDT) Received: from [10.200.18.196] (mxd52503lx.co.brazos.tx.us [10.200.18.196]) by webmail.co.brazos.tx.us (Postfix) with ESMTP id B4A907D2C4 for ; Sat, 18 Aug 2007 13:10:55 -0500 (CDT) Message-ID: <46C7362F.7070302@co.brazos.tx.us> Date: Sat, 18 Aug 2007 13:10:55 -0500 From: sudhakar User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: users@openjpa.apache.org Subject: Using openjpa in Eclipse RCP X-Enigmail-Version: 0.95.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at co.brazos.tx.us X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-4.3 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.1 I have an Eclipse RCP application and a plugin project that uses OpenJPA. I can get the TestNG tests to run successfully by passing -javaagent:C:\Libraries\openjpa\current\openjpa.jar as VM arguments. When I try to launch the RCP application with the plugin I get the following stacktrace java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323) at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.apache.openjpa.enhance.PCEnhancerAgent.premain(PCEnhancerAgent.java:47) ... 6 more Exception in thread "main" FATAL ERROR in native method: processing of -javaagent failed I realize this has to do with Eclipse classloading....but I was hoping someone else on this list might have gotten this to work I'd appreciate any pointers. Thanks -sud