ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: ClassNotFound using xlst task
Date Thu, 18 Jul 2002 05:06:46 GMT
I had the same problem. If you have build ant from the source distribution,
you should see if XslpLiaison is in ant.jar/optional.jar.
Ant´s buildfile tests if there are required libraries and compiles that
class only if there is.

Buildfile:
...
  <patternset id="needs.xslp">
    <exclude name="${optional.package}/XslpLiaison*.java"
             unless="xslp.present" />
  </patternset>
...
  <target name="check_for_optional_packages">
...
    <available property="xslp.present"
               classname="com.kvisco.xsl.XSLProcessor"
               classpathref="classpath" />
...
  <target name="build"
          depends="prepare, check_for_optional_packages"
          description="--> compiles the source code">
...
    <javac srcdir="${java.dir}"
           destdir="${build.classes}"
           debug="${debug}"
           deprecation="${deprecation}"
           optimize="${optimize}" >	
      <patternset refid="needs.xslp" />
...




mit freundlichen Grüßen
Jan Matèrne 

RZF NRW 
Sachgebiet 314-P Methodenberatung 
Internet:	jan.materne@rzf.fin-nrw.de 


> -----Ursprüngliche Nachricht-----
> Von:	Cyriaque Dupoirieux [SMTP:cyriaque.dupoirieux@pcotech.fr]
> Gesendet am:	Mittwoch, 17. Juli 2002 16:51
> An:	Liste Ant
> Betreff:	ClassNotFound using xlst task
> 
> Hi,
> 
>     I have the following message using the xlst task :
>     Do you know what is missing in my class path ?
> 
> build-dot:
> 
>      [echo]
> [O:\ant4wt\outils\xalan-j_2_4_D1\bin\BCEL.jar;O:\ant4wt\outils\xalan-j_2_4
> _D1\bin\bsf.jar;O:\ant4wt\outils\xalan-j_2_4_D1\bin\java_cup.jar;O:\ant4wt
> \outils\xalan-j_2_4_D1\bin\JLex.jar;O:\ant4wt\outils\xalan-j_2_4_D1\bin\re
> gexp.jar;O:\ant4wt\outils\xalan-j_2_4_D1\bin\runtime.jar;O:\ant4wt\outils\
> xalan-j_2_4_D1\bin\xalan.jar;O:\ant4wt\outils\xalan-j_2_4_D1\bin\xalansamp
> les.jar;O:\ant4wt\outils\xalan-j_2_4_D1\bin\xalanservlet.jar;O:\ant4wt\out
> ils\xalan-j_2_4_D1\bin\xercesImpl.jar;O:\ant4wt\outils\xalan-j_2_4_D1\bin\
> xml-apis.jar;O:\ant4wt\outils\xalan-j_2_4_D1\bin\xsltc.jar]
> 
>      [xslt] DEPRECATED - xslp processor is deprecated. Use trax or xalan
> instead.
> 
>      [xslt] java.lang.NoClassDefFoundError: com/kvisco/xsl/XSLProcessor
> 
>      [xslt]     at
> org.apache.tools.ant.taskdefs.optional.XslpLiaison.<init>(XslpLiaison.java
> :79)
> 
>      [xslt]     at java.lang.Class.newInstance0(Native Method)
> 
>      [xslt]     at java.lang.Class.newInstance(Class.java, Compiled Code)
> 
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.jav
> a:376)
> 
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java:557)
> 
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java,
> Compiled Code)
> 
>      [xslt]     at org.apache.tools.ant.Task.perform(Task.java:317)
> 
>      [xslt]     at org.apache.tools.ant.Target.execute(Target.java,
> Compiled Code)
> 
>      [xslt]     at
> org.apache.tools.ant.Target.performTasks(Target.java:334)
> 
>      [xslt]     at
> org.apache.tools.ant.Project.executeTarget(Project.java, Compiled Code)
> 
>      [xslt]     at
> org.apache.tools.ant.Project.executeTargets(Project.java, Compiled Code)
> 
>      [xslt]     at org.apache.tools.ant.Main.runBuild(Main.java, Compiled
> Code)
> 
>      [xslt]     at org.apache.tools.ant.Main.start(Main.java, Compiled
> Code)
> 
>      [xslt]     at org.apache.tools.ant.Main.main(Main.java:235)
> 
>      [xslt] java.lang.NoClassDefFoundError:
> org/apache/xerces/framework/XMLParser
> 
>      [xslt]     at java.lang.Class.forName0(Native Method)
> 
>      [xslt]     at java.lang.Class.forName(Class.java, Compiled Code)
> 
>      [xslt]     at
> org.apache.xalan.xslt.XSLTEngineImpl.<init>(XSLTEngineImpl.java:360)
> 
>      [xslt]     at
> org.apache.xalan.xslt.XSLTProcessorFactory.getProcessor(XSLTProcessorFacto
> ry.java:79)
> 
>      [xslt]     at
> org.apache.tools.ant.taskdefs.optional.XalanLiaison.<init>(XalanLiaison.ja
> va:84)
> 
>      [xslt]     at java.lang.Class.newInstance0(Native Method)
> 
>      [xslt]     at java.lang.Class.newInstance(Class.java, Compiled Code)
> 
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.jav
> a:379)
> 
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java:554)
> 
>      [xslt]     at
> org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java,
> Compiled Code)
> 
>      [xslt]     at org.apache.tools.ant.Task.perform(Task.java:317)
> 
>      [xslt]     at org.apache.tools.ant.Target.execute(Target.java,
> Compiled Code)
> 
>      [xslt]     at
> org.apache.tools.ant.Target.performTasks(Target.java:334)
> 
>      [xslt]     at
> org.apache.tools.ant.Project.executeTarget(Project.java, Compiled Code)
> 
>      [xslt]     at
> org.apache.tools.ant.Project.executeTargets(Project.java, Compiled Code)
> 
>      [xslt]     at org.apache.tools.ant.Main.runBuild(Main.java, Compiled
> Code)
> 
>      [xslt]     at org.apache.tools.ant.Main.start(Main.java, Compiled
> Code)
> 
>      [xslt]     at org.apache.tools.ant.Main.main(Main.java:235)
> 
> BUILD FAILED
> 
> file:O:/ant4wt/surLeFeu/build.xml:548:
> javax.xml.transform.TransformerFactoryConfigurationError: Provider for
> javax.xml.transform.TransformerFactory cannot be found
> 
>     at
> org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java:561)
> 
>     at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java,
> Compiled Code)
> 
>     at org.apache.tools.ant.Task.perform(Task.java:317)
> 
>     at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
> 
>     at org.apache.tools.ant.Target.performTasks(Target.java:334)
> 
>     at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
> Code)
> 
>     at org.apache.tools.ant.Project.executeTargets(Project.java, Compiled
> Code)
> 
>     at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
> 
>     at org.apache.tools.ant.Main.start(Main.java, Compiled Code)
> 
>     at org.apache.tools.ant.Main.main(Main.java:235)
> 
> --- Nested Exception ---
> 
> javax.xml.transform.TransformerFactoryConfigurationError: Provider for
> javax.xml.transform.TransformerFactory cannot be found
> 
>     at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
> 
>     at
> org.apache.tools.ant.taskdefs.optional.TraXLiaison.<init>(TraXLiaison.java
> :117)
> 
>     at java.lang.Class.newInstance0(Native Method)
> 
>     at java.lang.Class.newInstance(Class.java, Compiled Code)
> 
>     at
> org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.jav
> a:371)
> 
>     at
> org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java:551)
> 
>     at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java,
> Compiled Code)
> 
>     at org.apache.tools.ant.Task.perform(Task.java:317)
> 
>     at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
> 
>     at org.apache.tools.ant.Target.performTasks(Target.java:334)
> 
>     at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
> Code)
> 
>     at org.apache.tools.ant.Project.executeTargets(Project.java, Compiled
> Code)
> 
>     at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
> 
>     at org.apache.tools.ant.Main.start(Main.java, Compiled Code)
> 
>     at org.apache.tools.ant.Main.main(Main.java:235)
> 
> 
> -- 
> Cyriaque Dupoirieux <mailto:Cyriaque.Dupoirieux@pcotech.fr>
> PCO Technologies
> Burolines - 2 ter rue Marcel Doret
> 31700 Blagnac
> Tél : 05.34.60.44.13 - Fax : 05.34.60.44.10
> 

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


Mime
View raw message