Next in thread → Next in month →

Re: [docbook-apps] Xinclude problem

From
Zbyszek Cybulski <>
Date
2006-01-31T11:00:39+00:00
ID
Thread
Re: [docbook-apps] Xinclude problem
Jason,

it seems you mistyped one path. See:
drwxr-xr-x    4 Zardoz  admin    136 Dec 19 17:28 resolver

while in the class path you have:
"/Users/Zardoz/.resolver

I think the preceding period is the cause for why your catalog resolver complains about themissing method "main". I can be wrong, anyway.

-Zbyszek

On 1/31/06, Jason Lane <> wrote:
Hi list I have tis as my tool chain:

drwxr-xr-x    3 Zardoz  admin    102 Jan 27 17:52 JPAX-1.3.1
drwxr-xr-x   14 Zardoz  admin    476 Dec 19 17:34 relames
drwxr-xr-x    4 Zardoz  admin    136 Dec 19 17:28 resolver

drwxr-xr-x    9 Zardoz  admin    306 Dec 19 16:02 saxon6-5-5
drwxr-xr-x   13 Zardoz  admin    442 Dec 19 16:03 saxonb8-6-1
drwxr-xr-x   16 Zardoz  admin    544 Dec 19 16:04 xalan-j_2_7_0
drwxr-xr-x   16 Zardoz  Zardoz   544 Jul 26  2005 xerces-2_7_1

drwxr-xr-x   16 Zardoz  admin    544 Jan 17 13:30 xincluder

and this as my build script:

#!/bin/bash

java -cp "/Users/Zardoz/.resolver:/var/www/onshare/website/trunk/bin/
saxon6-5-5/saxon.jar:/var/www/onshare/website/trunk/bin/xalan-j_2_7_0/

xercesImpl.jar:/var/www/onshare/website/trunk/bin/resolver/resolver-
latest.jar" \
        -Djavax.xml.parsers.DocumentBuilderFactory=\
        org.apache.xerces.jaxp.DocumentBuilderFactoryImpl \
     -
Djavax.xml.parsers.SAXParserFactory=\
        org.apache.xerces.jaxp.SAXParserFactoryImpl \
     -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=\
        org.apache.xerces.parsers.XIncludeParserConfiguration
 \
        com.icl.saxon.StyleSheet -t \
     -x org.apache.xml.resolver.tools.ResolvingXMLReader \
        -y org.apache.xml.resolver.tools.ResolvingXMLReader \
        -r org.apache.xml.resolver.tools.CatalogResolver
 \
     /var/www/onshare/website/trunk/build/autolayout.xml \
     /var/www/onshare/website/trunk/xsl/website/xsl/page.xsl  \
     output-root=/var/www/onshare/website/trunk/htdocs/html

I've actually added my relevant paths to my CLASSPATH so the -cp

option should not be necessary:

CLASSPATH=/Users/Zardoz/.resolver::/var/www/onshare/website/trunk/bin/
saxon6-5-5/saxon.jar:/var/www/onshare/website/trunk/bin/resolver/
resolver-latest.jar:/var/www/onshare/website/trunk/xsl/website/

extensions/saxon64.jar:/var/www/onshare/website/trunk/bin/
xerces-2_7_1/xercesImpl.jar:/var/www/onshare/website/trunk/bin/
xerces-2_7_1/xercesSamples.jar

When I try to run this script I get:

Exception in thread "main" 
java.lang.NoSuchMethodError: main

Is this to do with incompatible versions of Xerces / Saxon / Xalan ?

Any pointers most welcome, many thanks all.

---------------------------------------------------------------------

To unsubscribe, e-mail: 
For additional commands, e-mail: 
Next in thread → Next in month →