ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [GUMP] Build Failure - myrmidon-api
Date Fri, 07 Jun 2002 07:45:59 GMT
On Fri, 07 Jun 2002, Peter Donald <peter@apache.org> wrote:

> Stefan - Can you figure this one out?

Not really, but ...

Using Gump's build.sh as "./build.sh myrmidon-api -debug" with an
empty CLASSPATH, I get (snipped stuff):

lass org.apache.myrmidon.build.AntlibDescriptorTask loaded from parent loader
 +User task: antlib-descriptor     org.apache.myrmidon.build.AntlibDescriptorTask
BUILD FAILED
/home/bodewig/dev/gump/jakarta-ant-myrmidon/api/build.xml:110: Could not create task of type:
antlib-descriptor due to java.lang.NoClassDefFoundError
	at org.apache.tools.ant.Project.createTask(Project.java:1044)
	at org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:271)	at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:244)
	at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:115)
	at org.apache.tools.ant.Task.perform(Task.java:316)
	at org.apache.tools.ant.Target.execute(Target.java:309)
	at org.apache.tools.ant.Target.performTasks(Target.java:334)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1216)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1160)
	at org.apache.tools.ant.Main.runBuild(Main.java:605)
	at org.apache.tools.ant.Main.start(Main.java:195)
	at org.apache.tools.ant.Main.main(Main.java:234)
--- Nested Exception ---
java.lang.NoClassDefFoundError
	at java.lang.Class.newInstance0(Native Method)
	at java.lang.Class.newInstance(Class.java:232)
	at org.apache.tools.ant.Project.createTask(Project.java:1020)
	at org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:271)	at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:244)
	at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:115)
	at org.apache.tools.ant.Task.perform(Task.java:316)
	at org.apache.tools.ant.Target.execute(Target.java:309)
	at org.apache.tools.ant.Target.performTasks(Target.java:334)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1216)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1160)
	at org.apache.tools.ant.Main.runBuild(Main.java:605)
	at org.apache.tools.ant.Main.start(Main.java:195)
	at org.apache.tools.ant.Main.main(Main.java:234)

So the AntClassLoader#initialize call succeds but the Class#newInstance
method fails.  initialize will try to invoke a constructor that isn't
there and can probably only resolve classes that your class is known
to depend on.

You may want to add a no-arg constructor to AntlibDescriptorTask, I
bet there are some classes your xdoclet version needs missing from the
system classpath (remember build.sysclasspath is set to only).

In build.sh I have

export CLASSPATH=$CP:$JAVA_HOME/lib/tools.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/xml-xerces2/java/build/xercesImpl.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/xml-xerces2/java/build/xmlParserAPIs.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-ant/dist/lib/ant.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-ant/dist/lib/optional.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-ant-myrmidon/buildtools/build/lib/myrmidon-buildtools-20020607.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-ant-myrmidon/tools/xdoclet/xdoclet-20020529.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-ant-myrmidon/tools/xdoclet/xjavadoc-20020529.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-ant-myrmidon/tools/xdoclet/commons-logging.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-ant-myrmidon/tools/xdoclet/log4j-core.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/checkstyle/dist/checkstyle-20020607/checkstyle-20020607.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-avalon/build/lib/avalon-framework.jar
export CLASSPATH=/home/bodewig/dev/gump/xml-commons/java/external/build/xml-apis.jar:$CLASSPATH
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-regexp/bin/jakarta-regexp-20020607.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-slide/lib/antlr-tools.jar
export CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-slide/lib/antlr.jar

all of these do exist.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message