You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Frank Griffin <ft...@ntplx.net> on 2000/12/15 20:21:21 UTC

Error building FOP with current Xalan

I checked out the Xalan1 code in toto from CVS about a week ago, built it, and got this error using it to build FOP from a code tree which built correctly using some older xalan.jar that had come bundled with Xerces.  I just refreshed the Xalan sources from CVS and rebuilt, and I'm still getting it:

Fop Build System
----------------
Building with classpath C:\JAVA13\lib\tools.jar;d:\jakarta-ant\lib\ant.jar;lib\w3c.jar;lib;d:\xerces\xerces.jar;d:\xerces\xalan.jar;d:\xerces\bsf.jar;d:\xerces\fop.jar
Starting Ant...
Buildfile: build.xml

BUILD FAILED

No JAXP compliant XML parser found. See http://java.sun.com/xml for the
reference implementation.
java.lang.NoClassDefFoundError: org/apache/xalan/xpath/xml/XMLParserLiaison
 at java.lang.Class.forName1(Native Method)
 at java.lang.Class.forName(Class.java:134)
 at org.apache.tools.ant.taskdefs.Taskdef.init(Taskdef.java:81)
 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:1335)
 at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:840)
 at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1853)
 at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1234)
 at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
 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)

Total time: 2 seconds

According to the Xalan docs, there is supposed to be a default parser liason for Xerces.  However, in the source tree, while there is an xml-xalan/java/src/org/apache/xalan/xpath/xml directory, there are no source files in it.  Also, the jar resulting from the (successful) Xalan build has no xpath entry at all in the org/apache/xalan directory.

Any ideas ?

Thanks,
Frank Griffin

Re: Error building FOP with current Xalan

Posted by Frank Griffin <ft...@ntplx.net>.
Thanks, Gary, that is it exactly.  I assumed that the Xalan directory structure was the same as the Xerces, and was building XalanJ2 without realizing.


Re: Error building FOP with current Xalan

Posted by Gary L Peskin <ga...@firstech.com>.
Frank Griffin wrote:
> I checked out the Xalan1 code in toto from CVS about a week ago, built
> it, and got this error using it to build FOP from a code tree which
> built correctly using some older xalan.jar that had come bundled with
> Xerces.  I just refreshed the Xalan sources from CVS and rebuilt, and
> I'm still getting it:
> ...
> No JAXP compliant XML parser found. See http://java.sun.com/xml for
> the
> reference implementation.
> java.lang.NoClassDefFoundError:
> org/apache/xalan/xpath/xml/XMLParserLiaison
> ...
> According to the Xalan docs, there is supposed to be a default parser
> liason for Xerces.  However, in the source tree, while there is an
> xml-xalan/java/src/org/apache/xalan/xpath/xml directory, there are no
> source files in it.  Also, the jar resulting from the (successful)
> Xalan build has no xpath entry at all in the org/apache/xalan
> directory.

Frank --

The source code for XalanJ1 is located in the src directory off the
xml-xalan directory.  This is different from the java/src directory
which is for XalanJ2.  Basically, everything under the java directory is
for XalanJ2, everything under the c directory is for XalanC and
everything else, except the testing stuff in test is for XalanJ1.

It sounds like you built the jar for XalanJ2 while your Ant taskdef is
looking for XalanJ1.

Gary