On Wed, 28 Jan 2004, [ISO-8859-1] Tino Sch�llhorn wrote: > Hi Thomas, > > thanks for your answer. I checked again, but still I get a > NoClassDefFoundError. Unfortuanately there is not stacktrace so it is > quite difficult to find it. > > The class kos.generator.DataObject is located in the ojb-generator.jar > file. This jar is correct because I am using this JAR at several targets > in my build-file. > > The -v option of ant does'nt help either. I changed the setting > verifyclasspath to verifyClassPath but noting changes. Still the task > says that it is adding my JARs to its classloader. > > Do you have more ideas what I could do?
The verify task explicitly uses a classloader so there might be a problem there. You could debug the verify task but that involves debugging OJB. You would run your ant target in debug mode an IDE (by calling the ant main class directly - see the ant.bat/.sh file for what the name of that class is and what libraries it requires). There you then can place a breakpoint in the task class (org.apache.ojb.broker.ant.VerifyMappingsTask) in method getPersistentFieldClass to see what the classloader gets and does. Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
