Return-Path: Delivered-To: apmail-maven-continuum-dev-archive@www.apache.org Received: (qmail 13176 invoked from network); 26 Feb 2007 20:36:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2007 20:36:57 -0000 Received: (qmail 14507 invoked by uid 500); 26 Feb 2007 20:37:05 -0000 Delivered-To: apmail-maven-continuum-dev-archive@maven.apache.org Received: (qmail 14476 invoked by uid 500); 26 Feb 2007 20:37:05 -0000 Mailing-List: contact continuum-dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-dev@maven.apache.org Delivered-To: mailing list continuum-dev@maven.apache.org Received: (qmail 14465 invoked by uid 99); 26 Feb 2007 20:37:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 12:37:05 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [69.36.241.87] (HELO mail.sventech.com) (69.36.241.87) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 12:36:53 -0800 Received: from mail.sventech.com (localhost.localdomain [127.0.0.1]) by mail.sventech.com (Postfix) with ESMTP id BFB034804B for ; Mon, 26 Feb 2007 12:36:33 -0800 (PST) Received: from [192.168.1.109] (c-71-59-22-52.hsd1.ga.comcast.net [71.59.22.52]) by mail.sventech.com (Postfix) with ESMTP id 5C02B48040 for ; Mon, 26 Feb 2007 12:36:33 -0800 (PST) Message-ID: <45E34509.9070405@erdfelt.com> Date: Mon, 26 Feb 2007 15:37:29 -0500 From: Joakim Erdfelt User-Agent: Thunderbird 1.5.0.9 (X11/20070104) MIME-Version: 1.0 To: continuum-dev@maven.apache.org Subject: Re: svn commit: r511667 - /maven/continuum/trunk/continuum-rpc-client/pom.xml References: <20070226000735.BF8B41A981A@eris.apache.org> <45E29F0F.1050907@venisse.net> <16CD4EE6-02D3-4381-961B-F9E2AF8636D7@handyande.co.uk> <45E2D83F.9040305@venisse.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Checked: Checked by ClamAV on apache.org You have a few options here. 1) Don't expose jpox enhanced objects in the rpc interface. 2) Have a second set of identical objects, on a different package, that are exposed via RPC. This would require a set of Copy methods to copy the JPOX enhanced object values into this second set of objects. 3) Don't use jpox. Use ibatis instead. Short answer, you can't use jpox and rpc at the same time, on the same objects. I have this same problem with archiva, and my desire to use the Maven Model and Metadata objects in a DB mapping. I can't enhance those objects, so I choose ibatis instead. - Joakim Andrew Williams wrote: > Reverted. Can someone look at fixing this the correct way then? I > would like to use this code. > > Andy > > On 26 Feb 2007, at 12:53, Emmanuel Venisse wrote: > >> This patch isn't correct because the rpc client doesn't need enhanced >> classes. >> We need to generate model classes for the rpc client without >> enhancement. >> Please, revert your patch. >> >> Emmanuel >> >> Andrew Williams a �crit : >>> The SampleClient fails to run without it. >>> Caused by: java.lang.NoClassDefFoundError: >>> javax/jdo/spi/PersistenceCapable >>> at java.lang.ClassLoader.defineClass0(Native Method) >>> at java.lang.ClassLoader.defineClass(ClassLoader.java:539) >>> at >>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) >>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) >>> at java.net.URLClassLoader.access$100(URLClassLoader.java:55) >>> at java.net.URLClassLoader$1.run(URLClassLoader.java:194) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:187) >>> at >>> org.codehaus.mojo.exec.ExecJavaMojo$IsolatedClassLoader.loadClass(ExecJavaMojo.java:265) >>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) >>> at >>> org.apache.maven.continuum.rpc.ProjectsReader.readProjects(ProjectsReader.java:79) >>> at >>> org.apache.maven.continuum.rpc.SampleClient.main(SampleClient.java:51) >>> ... 23 more >>> A >>> On 26 Feb 2007, at 08:49, Emmanuel Venisse wrote: >>>> Why? we don't use it in the rpc client. >>>> >>>> handyande@apache.org a �crit : >>>>> Author: handyande >>>>> Date: Sun Feb 25 16:07:34 2007 >>>>> New Revision: 511667 >>>>> URL: http://svn.apache.org/viewvc?view=rev&rev=511667 >>>>> Log: >>>>> rpc client need jdo2 too >>>>> Modified: >>>>> maven/continuum/trunk/continuum-rpc-client/pom.xml >>>>> Modified: maven/continuum/trunk/continuum-rpc-client/pom.xml >>>>> URL: >>>>> http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-rpc-client/pom.xml?view=diff&rev=511667&r1=511666&r2=511667 >>>>> >>>>> ============================================================================== >>>>> >>>>> --- maven/continuum/trunk/continuum-rpc-client/pom.xml (original) >>>>> +++ maven/continuum/trunk/continuum-rpc-client/pom.xml Sun Feb 25 >>>>> 16:07:34 2007 >>>>> @@ -70,5 +70,9 @@ >>>>> commons-httpclient >>>>> 2.0.2 >>>>> >>>>> + >>>>> + org.codehaus.plexus >>>>> + plexus-jdo2 >>>>> + >>>>> >>>>> >>>> >> >