Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E5AC977CC for ; Wed, 20 Jul 2011 16:34:08 +0000 (UTC) Received: (qmail 42998 invoked by uid 500); 20 Jul 2011 16:34:08 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 42912 invoked by uid 500); 20 Jul 2011 16:34:08 -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 42903 invoked by uid 99); 20 Jul 2011 16:34:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 16:34:07 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2011 16:34:01 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QjZiO-0004pI-CX for users@openjpa.apache.org; Wed, 20 Jul 2011 09:33:40 -0700 Date: Wed, 20 Jul 2011 09:33:40 -0700 (PDT) From: Pinaki Poddar To: users@openjpa.apache.org Message-ID: <1311179620284-6603430.post@n2.nabble.com> In-Reply-To: <1311176442101-6603196.post@n2.nabble.com> References: <1311063632744-6597934.post@n2.nabble.com> <1311087257037-6599059.post@n2.nabble.com> <1311157239160-6602103.post@n2.nabble.com> <1311175994520-6603154.post@n2.nabble.com> <1311176442101-6603196.post@n2.nabble.com> Subject: Re: PCEnhancer and java.lang.ClassNotFoundException MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Firstly the error shows OpenJPA has now found the persistence.xml. I do not know whether this is the right forum on helping you to set a classpath right, but let me try: Classpaths in Java helps to resolve/find bytecodes of a class. If you are using a class whose fully-qualified name is resourceMgr.model.Client, and its bytecodes reside in a file say /home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/bin/resourceMgr/model/Client.class Then the correct classpath to load that resourceMgr.model.Client class is /home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/bin Not /home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/bin/resourceMgr/model As you have posted your classpath (the lines are broken for readability) java -classpath /home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/bin/resourceMgr/model /home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/src/META-INF /home/luzer/tools/apache-openjpa-2.1.0/openjpa-all-2.1.0.jar org.apache.openjpa.enhance.PCEnhancer -p persistence.xml#Accounts This classpath entry /home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/bin/resourceMgr/model should be /home/luzer/zpd/zpd-ws/jpa_demo/JpaDemo/bin ----- Pinaki Poddar Chair, Apache OpenJPA Project -- View this message in context: http://openjpa.208410.n2.nabble.com/PCEnhancer-and-java-lang-ClassNotFoundException-tp6597934p6603430.html Sent from the OpenJPA Users mailing list archive at Nabble.com.