From dev-return-5151-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Mon Jul 30 18:08:15 2007 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 27580 invoked from network); 30 Jul 2007 18:08:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jul 2007 18:08:14 -0000 Received: (qmail 56812 invoked by uid 500); 30 Jul 2007 18:08:14 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 56655 invoked by uid 500); 30 Jul 2007 18:08:14 -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 56646 invoked by uid 99); 30 Jul 2007 18:08:14 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2007 11:08:14 -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; Mon, 30 Jul 2007 18:08:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 428EC7141F5 for ; Mon, 30 Jul 2007 11:07:53 -0700 (PDT) Message-ID: <154856.1185818873269.JavaMail.jira@brutus> Date: Mon, 30 Jul 2007 11:07:53 -0700 (PDT) From: "Carl Smotricz (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-302) PCEnhancer needs target classes on classpath! MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org PCEnhancer needs target classes on classpath! --------------------------------------------- Key: OPENJPA-302 URL: https://issues.apache.org/jira/browse/OPENJPA-302 Project: OpenJPA Issue Type: Improvement Components: docs Affects Versions: 0.9.7 Environment: Eclipse Reporter: Carl Smotricz Priority: Minor The documentation (sections 3.5.2.1, 3.12.1.2) doesn't make it clear that the classes to be enhanced need to be on the class path of the PCEnhancer application or Ant task. In an Eclipse environment, I battled for some hours to get the enhancer to work. In my setup, the following appears to be true: * The application needs a classpath consisting of the OpenJPA libraries as well as the java compilation destination directory for the compiled entity classes. Here's how I ran the program (as an application) under Ant: * As an Ant task, the taskdef needs the OpenJPA libraries on its classpath, but it does no good to include the compiled classes destination path there. Rather, the openjpa task will accept a nested classpath element, and this classpath must contain both the OpenJPA libraries and the compiled entity classes path. Here's my Ant target for this: Hopefully augmenting the doc with some of this information will save other users some pain. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.