You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Matej Cepl <ce...@surfbest.net> on 2005/01/01 18:31:35 UTC

org.apache.xml.resolver.tools.CatalogResolver cannot be found

Hi,

I have here debian/testing with java-blackdown from debian
package j2re1.4 1.4.2.01-1 and trying to use its xalan (there is
one included inside this version of JRE, isn't it?) to create
FOP from Docbook XML file using Norman Walsh's XSL stylesheets.
Unfortunately, when I try running just plain org.apache.xalan.xslt.Process
(no CLASSPATH is set up, so I guess the xalan which is part of java 1.4 is
used, isn't it?) I get unresolved entity:

java org.apache.xalan.xslt.Process -in db-birthing-class.xml \
-xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl \
-out db-birthing-class.fop

file:///home/matej/archiv/2004/doma/miminko/db-birthing-class.xml;
Line #13; Column #-1; XSLT Error (javax.xml.transform.TransformerException): 
External entity not found:
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd".

Which is silly -- I would hope that some resolver is automagically incldued
in xalan, but oh well, I downloaded resolver-latest.jar from Apache Commons
and hoped to make it work, but it is not much better:

blahoslav:miminko$ ll ~/.java/classes/
celkem 76
-rw-r--r--  1 matej matej   149 2004-12-31 19:23 CatalogManager.properties
-rw-r--r--  1 matej matej 51861 2004-12-31 19:09 resolver.jar
blahoslav:miminko$ unzip -v ~/.java/classes/resolver.jar | \
   grep CatalogResolver
4130  Defl:N     2067  50%  11-12-02 11:49  11af2d9c \
   org/apache/xml/resolver/tools/CatalogResolver.class
blahoslav:miminko$ java -cp "/home/matej/.java/classes/resolver.jar\
:/home/matej/.java/classes/CatalogManager.properties" \
 org.apache.xalan.xslt.Process \
 -entityresolver org.apache.xml.resolver.tools.CatalogResolver \
 -uriresolver org.apache.xml.resolver.tools.CatalogResolver \
 -in db-birthing-class.xml \
 -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl \
 -out db-birthing-class.fop
Class file not found for option -EntityResolver
blahoslav:miminko$

I accept that total java-newbie, but still doesn't seem to be right. Can
anybody explain, what's going on?

 Thanks,

  Matej

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
We can tell our level of faith in what God wants to do for us by
our level of enthusiasm for what we want God to do for other.
   -- Dave Schmelzer