db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Dudziak" <tom...@gmail.com>
Subject Re: Problems running ddlutils in our eclipse RCP application
Date Fri, 19 May 2006 11:59:24 GMT
On 5/19/06, Josef Wagner <josef.wagner@on-ergy.de> 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

Mime
View raw message