ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mourad MEDDAHI <mourad.medd...@laposte.net>
Subject xalan and ant
Date Tue, 21 Aug 2001 10:30:43 GMT
Hi please help

i'm getting crasy.....

i have a folder "file/xml/" with several xml files in it.
i have one xsl file in "file/" directory and i want to get .java files
at the end, i use for that xalan v2.0
So i use the Style tag...

<Style basedir="file/xml/"
            destdir="file/java"
            extension="java"
            style="file/XSLFile.xsl"
            processor="xalan"
            includes="files/xml/*.xml"/>

I am on solaris with jdk1.3, ant 1.3, xalan 2.0,.
( all that are in my classpath of solaris, i didn't make a classpath in
build.xml)
And it doesn't work.
i get :

/home/mourad/ant/bin/build.xml:43: java.lang.NoClassDefFoundError:
org/apache/xalan/xslt/XSLTProcessorFactory
--- Nested Exception ---
java.lang.NoClassDefFoundError:
org/apache/xalan/xslt/XSLTProcessorFactory
        at
org.apache.tools.ant.taskdefs.optional.XalanLiaison.<init>(XalanLiaison.java:77)

        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:237)
        at
org.apache.tools.ant.taskdefs.XSLTProcess.setProcessor(XSLTProcess.java:239)

        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.IntrospectionHelper$3.set(IntrospectionHelper.java:352)

        at
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:227)

        at
org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:619)
        at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:134)

        at org.apache.tools.ant.Task.maybeConfigure(Task.java:220)
        at org.apache.tools.ant.Target.execute(Target.java:152)
        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)









Mime
View raw message