You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Wegmann, Frank" <Fr...@softwareag.com> on 2000/11/01 11:46:49 UTC

Problems building FOP snapshot

Hi folks,

actually I hate this subject line, but I couldn't figure out what's going
wrong when
building the latest snap from today, so please bear with me. In order to
prevent any
further annoying questions from my side: what versions of xerces/xalan are
suitable
for building FOP? I'm using JDK 1.3.


Here's the output (there is no CLASSPATH set; this is the value of
LOCALCLASSPATH):

Building with classpath
C:\Java\jdk1.3\lib\tools.jar;lib\ant.jar;lib\w3c.jar;lib\xml.jar;C:\Java\lib
\xerces.jar;C:\Java\lib\xalan.jar
Starting Ant...
Buildfile: build.xml
taskdef class Xslt cannot be found
        at org.apache.tools.ant.taskdefs.Taskdef.init(Taskdef.java:86)
        at
org.apache.tools.ant.ProjectHelper$TaskHandler.init(ProjectHelper.java:348)
        at
org.apache.tools.ant.ProjectHelper$TargetHandler.startElement(ProjectHelper.
java:327)
        at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1325)
        at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:705)
        at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1852)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1233)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:861)
        at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:102)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:84)
        at org.apache.tools.ant.Main.runBuild(Main.java:264)
        at org.apache.tools.ant.Main.main(Main.java:107)

BUILD FAILED

Could not create task of type: xslt because I can't find it in the list of
task class definitions

--
Frank Wegmann
Tamino Documentation Group
Software AG - The XML Company
email: Frank.Wegmann@softwareag.com
phone: +49 6151 92 1371
fax  : +49 6151 92 1602

Re: Problems building FOP snapshot

Posted by Fotis Jannidis <fo...@lrz.uni-muenchen.de>.
This problem has been posted at lest 3 times in the last few days, 
and no real solution has been given. 
The xslt task cannot be found. this task is in subdir lib, but your 
classpath contains no pointer to it.
 
Could you add "lib" to your classpath and try again? 

Actually this should be a setting in build.bat, I don't understand why 
your settings are different. 

Here is the section from build.bat (I just checkout fop):
____________________________
set LOCALCLASSPATH = 
%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip;lib\ant.
jar;lib\w3c.jar;lib

set ANT_HOME=.\lib

echo Building with classpath %LOCALCLASSPATH%
____________________________


Fotis



> Hi folks,
> 
> actually I hate this subject line, but I couldn't figure out what's going
> wrong when
> building the latest snap from today, so please bear with me. In order to
> prevent any
> further annoying questions from my side: what versions of xerces/xalan are
> suitable
> for building FOP? I'm using JDK 1.3.
> 
> 
> Here's the output (there is no CLASSPATH set; this is the value of
> LOCALCLASSPATH):
> 
> Building with classpath
> C:\Java\jdk1.3\lib\tools.jar;lib\ant.jar;lib\w3c.jar;lib\xml.jar;C:\Java\lib
> \xerces.jar;C:\Java\lib\xalan.jar
> Starting Ant...
> Buildfile: build.xml
> taskdef class Xslt cannot be found
>         at org.apache.tools.ant.taskdefs.Taskdef.init(Taskdef.java:86)
>         at
> org.apache.tools.ant.ProjectHelper$TaskHandler.init(ProjectHelper.java:348)
>         at
> org.apache.tools.ant.ProjectHelper$TargetHandler.startElement(ProjectHelper.
> java:327)
>         at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1325)
>         at
> org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
> or.java:705)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
> r.java:1852)
>         at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
> LDocumentScanner.java:1233)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
> java:380)
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:861)
>         at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:102)
>         at
> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:84)
>         at org.apache.tools.ant.Main.runBuild(Main.java:264)
>         at org.apache.tools.ant.Main.main(Main.java:107)
> 
> BUILD FAILED
> 
> Could not create task of type: xslt because I can't find it in the list of
> task class definitions
> 
> --
> Frank Wegmann
> Tamino Documentation Group
> Software AG - The XML Company
> email: Frank.Wegmann@softwareag.com
> phone: +49 6151 92 1371
> fax  : +49 6151 92 1602