Hi, On Fri, 7 Jun 2002 17:45, Stefan Bodewig wrote: > On Fri, 07 Jun 2002, Peter Donald <[EMAIL PROTECTED]> wrote: > > Stefan - Can you figure this one out? > > Not really, but ...
[snip...] > 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). I'm not sure it's that simple, unfortunately. AntlibDescriptorTask already has a no-arg constructor, and I can replicate this problem without setting the build.sysclasspath property, simply by including jars in the system classpath (identical to the ones referenced in the build). I've attached a simple shell script which, when run from the jakarta-ant-myrmidon/api directory, gives us the same NoClassDefFoundError on Class.newInstance(). Basically, if I run the build with an empty classpath it succeeds, but if I add all of the XDoclet jars to my classpath, I get the error seem in the GUMP runs. (These are the exact same XDoclet jars which are referenced by the build) I'm hoping that someone has seen a problem like this before... Any hints? I'll have a look at this a bit more tomorrow. ciao Daz > > In build.sh I have > > export CLASSPATH=$CP:$JAVA_HOME/lib/tools.jar > export > CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/xml-xerces2/java/build/xercesIm >pl.jar export > CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/xml-xerces2/java/build/xmlParse >rAPIs.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.j >ar 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/xdoc >let/xdoclet-20020529.jar export > CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-ant-myrmidon/tools/xdoc >let/xjavadoc-20020529.jar export > CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-ant-myrmidon/tools/xdoc >let/commons-logging.jar export > CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-ant-myrmidon/tools/xdoc >let/log4j-core.jar export > CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/checkstyle/dist/checkstyle-2002 >0607/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.j >ar:$CLASSPATH export > CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-regexp/bin/jakarta-rege >xp-20020607.jar export > CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-slide/lib/antlr-tools.j >ar export > CLASSPATH=$CLASSPATH:/home/bodewig/dev/gump/jakarta-slide/lib/antlr.jar > > all of these do exist. > > Stefan -- ciao, Daz
test.sh
Description: application/shellscript
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
