Re: problem building from cvs
Thanks all for the hints on how to build from the sources and thanks especially to Craig whose suggestion was the one that got me going. It pays to understand what the build process is doing. john "Craig R. McClanahan" wrote: john d ware wrote: Thanks for the note Craig, I build ant from the cvs sources with no trouble. The optional.jar built here contains no Liaison class. The most important issue, then, is this: was your XSLT processor package (such as Xalan or JAXP/1.1-ea) on your classpath when you *built* Ant? The build script for Ant itself has conditional compilation settings that will not build components unless the required classes are on the class path at the time that Ant is built. Craig
Re: problem building from cvs
Thanks for the note Craig, I build ant from the cvs sources with no trouble. The optional.jar built here contains no Liaison class. I downloaded optional.jar, from ant 1.2 and in it are these 2 liaison classes: org/apache/tools/ant/taskdefs/optional/XslpLiaison.class org/apache/tools/ant/taskdefs/optional/XalanLiaison.class but not the one which the compiler chokes on. any other ideas? john "Craig R. McClanahan" wrote: john d ware wrote: Hi, I am attempting to build from the cvs sources and am getting ClassDefNotFound error for this class: org.apache.tools.ant.taskdefs.optional.TraXLiaison So, the question is what jar is the above class located? If you are using Ant 1.2 (the recommended version), you also need to download the "optional.jar" file and place it in $ANT_HOME/lib. This file has the liason class. Also, you'll need to make sure that you have the appropriate XSLT engine (such as Xalan) on your classpath. thanks john ware Craig McClanahan ant Buildfile: build.xml prepare.library: [mkdir] Created dir: C:\proj\jakarta\build\struts [mkdir] Created dir: C:\proj\jakarta\build\struts\library [mkdir] Created dir: C:\proj\jakarta\build\struts\library\classes [mkdir] Created dir: C:\proj\jakarta\build\struts\library\classes\META-INF [mkdir] Created dir: C:\proj\jakarta\build\struts\library\classes\META-INF\tlds [copy] Copying 1 file to C:\proj\jakarta\build\struts\library\classes\META-INF [mkdir] Created dir: C:\proj\jakarta\build\struts\library\classes\org [mkdir] Created dir: C:\proj\jakarta\build\struts\library\classes\org\apache [mkdir] Created dir: C:\proj\jakarta\build\struts\library\classes\org\apache\struts [mkdir] Created dir: C:\proj\jakarta\build\struts\library\classes\org\apache\struts\resources [copy] Copying 1 file to C:\proj\jakarta\build\struts\library\classes\org\apache\struts\resources compile.library: Property ${servlet.jar} has not been set [javac] Compiling 169 source files to C:\proj\jakarta\build\struts\library\classes [copy] Copying 5 files to C:\proj\jakarta\build\struts\library\classes [copy] Copying 2 files to C:\proj\jakarta\build\struts\library [style] Transforming into C:\proj\jakarta\build\struts\library trying trax trying xslp trying xalan BUILD FAILED c:\proj\jakarta\jakarta-struts\build.xml:124: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison at java.net.URLClassLoader$1.run(URLClassLoader.java:203) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:191) at java.lang.ClassLoader.loadClass(ClassLoader.java:291) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:290) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:124) at org.apache.tools.ant.taskdefs.XSLTProcess.setProcessor(XSLTProcess.java:230) at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:137) at org.apache.tools.ant.Target.execute(Target.java:153) at org.apache.tools.ant.Project.runTarget(Project.java:898) at org.apache.tools.ant.Project.executeTarget(Project.java:536) at org.apache.tools.ant.Project.executeTargets(Project.java:510) at org.apache.tools.ant.Main.runBuild(Main.java:421) at org.apache.tools.ant.Main.main(Main.java:149) Total time: 13 seconds
Re: problem building from cvs
trying trax trying xslp trying xalan I think you need one of these XSLT processors. I recommend the recent xalan (just because it works for me - you find it at xml.apache.org). incze
Re: problem building from cvs
On Tue, Jan 09, 2001 at 06:04:52PM -0700, john d ware wrote: Thanks for the note Craig, I build ant from the cvs sources with no trouble. The optional.jar built here contains no Liaison class. I downloaded optional.jar, from ant 1.2 and in it are these 2 liaison classes: org/apache/tools/ant/taskdefs/optional/XslpLiaison.class org/apache/tools/ant/taskdefs/optional/XalanLiaison.class but not the one which the compiler chokes on. trax is only a standard interface to xslt processors like sax to parsers. So, optional.jar + either recent xalan or recent xslp in the classpath should work. Both of them knows trax.incze
Re: problem building from cvs
john d ware wrote: Thanks for the note Craig, I build ant from the cvs sources with no trouble. The optional.jar built here contains no Liaison class. The most important issue, then, is this: was your XSLT processor package (such as Xalan or JAXP/1.1-ea) on your classpath when you *built* Ant? The build script for Ant itself has conditional compilation settings that will not build components unless the required classes are on the class path at the time that Ant is built. Craig
RE: problem building from cvs
For the records... So I install jaxp.jar, crimson.jar, and xalan.jar from the jaxp1.1ea2 distribution. Then I get some kind of "sealing violation". To fix that I removed parser.jar from the old jaxp from the classpath. Ant now builds fine. -Original Message- From: Schachter, Michael To: '[EMAIL PROTECTED] ' Sent: 1/9/01 10:46 PM Subject: RE: problem building from cvs I have the same problem. However, TraXLiason is included with the distribution, but it's not built in for some reason. I think you have to build ant with jaxp1.1ea for TraXLiason -Original Message- From: Incze Lajos To: [EMAIL PROTECTED] Sent: 1/9/01 10:38 PM Subject: Re: problem building from cvs On Tue, Jan 09, 2001 at 06:04:52PM -0700, john d ware wrote: Thanks for the note Craig, I build ant from the cvs sources with no trouble. The optional.jar built here contains no Liaison class. I downloaded optional.jar, from ant 1.2 and in it are these 2 liaison classes: org/apache/tools/ant/taskdefs/optional/XslpLiaison.class org/apache/tools/ant/taskdefs/optional/XalanLiaison.class but not the one which the compiler chokes on. trax is only a standard interface to xslt processors like sax to parsers. So, optional.jar + either recent xalan or recent xslp in the classpath should work. Both of them knows trax.incze