ant v1.4 taskdef/classloader problem
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Deryl_Seale
Posted On:   Tuesday, September 25, 2001 01:56 PM

I'm having some problems using ant v1.4 in conjunction with a custom task. This worked fine in ant v1.3, but when using 1.4, I get a NoClassDefFoundError. I read that in ant v1.4, class loading for the taskdef target has changed, but I am at a loss as to how I would fix this problem. build.xml: ... ... output: generate: [echo] generating dbutil code [codegen] [codegen] Number of input files to process:13 [codegen] [codegen] Using code generator:com.achieve.dbutil.codegen.GenCode BUILD FAILED java.lang.NoClassDefFoundError: com/achieve/general/logging/Logger at   More>>

I'm having some problems using ant v1.4 in conjunction with a custom task. This worked fine in ant v1.3, but when using 1.4, I get a NoClassDefFoundError. I read that in ant v1.4, class loading for the taskdef target has changed, but I am at a loss as to how I would fix this problem.



build.xml:



			
...








...



output:

			
generate:
[echo] generating dbutil code
[codegen] [codegen] Number of input files to process:13
[codegen] [codegen] Using code generator:com.achieve.dbutil.codegen.GenCode
BUILD FAILED

java.lang.NoClassDefFoundError: com/achieve/general/logging/Logger
at com.achieve.parserutil.ParserDriver. (ParserDriver.java:40)
at com.achieve.dbutil.codegen.GenSqlDescr.generateContainer(GenSqlDescr.
java:568)
...



Logger is a singleton class, btw.



Any help is much appreciated!

--Deryl

deryl@acm.org    <<Less

Re: ant v1.4 taskdef/classloader problem

Posted By:   Erik_Hatcher  
Posted On:   Wednesday, September 26, 2001 03:58 PM

I'm assuming Logger is in class.path, correct? Have you tried running Ant with Logger in the system classpath prior to launching Ant? Does that solve the problem?
About | Sitemap | Contact