From ddlutils-user-return-378-apmail-db-ddlutils-user-archive=db.apache.org@db.apache.org Fri May 19 12:07:00 2006 Return-Path: Delivered-To: apmail-db-ddlutils-user-archive@www.apache.org Received: (qmail 99361 invoked from network); 19 May 2006 12:07:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 May 2006 12:07:00 -0000 Received: (qmail 47325 invoked by uid 500); 19 May 2006 12:07:00 -0000 Delivered-To: apmail-db-ddlutils-user-archive@db.apache.org Received: (qmail 47306 invoked by uid 500); 19 May 2006 12:06:59 -0000 Mailing-List: contact ddlutils-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-user@db.apache.org Delivered-To: mailing list ddlutils-user@db.apache.org Received: (qmail 47295 invoked by uid 99); 19 May 2006 12:06:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2006 05:06:59 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of listom@bestsolution.at designates 81.16.98.99 as permitted sender) Received: from [81.16.98.99] (HELO mail.bestsolution.at) (81.16.98.99) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2006 05:06:59 -0700 Received: from localhost (ogmios.bestsolution.at [81.16.98.100]) by mail.bestsolution.at (Postfix) with ESMTP id B650D122FAE for ; Fri, 19 May 2006 14:06:37 +0200 (CEST) X-Virus-Scanned: BestSolution.at amavisd-new at bestsolution.at Received: from mail.bestsolution.at ([81.16.98.97]) by localhost (ogmios.bestsolution.at [81.16.98.100]) (amavisd-new, port 10026) with LMTP id 7BjeTLBwmGIx for ; Fri, 19 May 2006 14:06:31 +0200 (CEST) Received: from [192.168.100.12] (heimdall.bestsolution.at [81.16.98.98]) by mail.bestsolution.at (Postfix) with ESMTP id BBA58122F08 for ; Fri, 19 May 2006 14:06:31 +0200 (CEST) Message-ID: <446DB4C8.5060804@bestsolution.at> Date: Fri, 19 May 2006 14:06:32 +0200 From: Tom Schindl User-Agent: Thunderbird 1.5.0.2 (X11/20060422) MIME-Version: 1.0 To: ddlutils-user@db.apache.org Subject: Re: Problems running ddlutils in our eclipse RCP application References: <224f32340605190149n647f40fajf8936da2598753d7@mail.gmail.com> <004301c67b32$e80c4fa0$fe7aa8c0@wagnerlap> <224f32340605190459s547b7c4bjcd196ba9fa12fbae@mail.gmail.com> In-Reply-To: <224f32340605190459s547b7c4bjcd196ba9fa12fbae@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N What I have done is that I created an eclipse-plugin(Right click on project and select "Convert Projects to Plug-in Projects) from the ddl-utils project using this way I could use betwixt inside my GEF-Database-Designer I'm working on ;-) What version of eclipse are you using in line 3.2 there've changes to the Classloader because e.g. Jasper-Reports faced the same problems. If I've got problems with class-loading this is one option which might prevent you from having many different headaches. To give better points I would need to know more about your project structure, ... . Tom Thomas Dudziak schrieb: > On 5/19/06, Josef Wagner wrote: > >> I have tested changing ClassLoader already. No Success. >> >> This are the ClassLoaders before swapping: >> >> Current Thread ClassLoader: >> org.eclipse.core.runtime.internal.adaptor.ContextFinder >> >> getClass().getClassLoader(): >> org.eclipse.core.runtime.adaptor.EclipseClassLoader >> >> I swap width: >> Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); >> >> >> At the end, I get the following Exception: >> java.lang.ClassNotFoundException: org.apache.ddlutils.model.Database >> at org.apache.commons.betwixt.digester.ClassRule.begin(ClassRule.java:63) > > It looks like ddlutils and betwixt are loaded with different > classloaders. You should debug your classloaders, e.g. try to load the > ddlutils and betwixt classes via the ClassLoader#loadClass method. > > Tom > >