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 <[EMAIL PROTECTED]> 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 > >
