docbook-apps

  • 1.  Apache resolver library not found

    Posted 07-19-2012 22:27
    I already posted to the Ant forum, but thought I'd try the DocBook forum in case anyone tripped over the same problem.

    I'm trying to update an Ant macro. I'm trying to use Saxon 6.5.5 with the Apache Commons Resolver, which I've specified in my classpath shown below. When I run this macro, I get the following error:

    Apache resolver library not found, internal resolver will be used

    I don't want to use the internal resolver. I want to use Apache Commons Resolver specified in the classpath. Hoping that someone can tell me what I'm doing wrong. Sorry, I'm an Ant newbie.

    Regards,
    Jeff Powanda

    <path id="saxon.classpath">
    <pathelement location="${xslt-processor-classpath}"/>
    <pathelement location="${xercesImpl.jar}"/>
    <pathelement location="${xml-apis.jar}"/>
    <pathelement location="${tools.dir}/resolver"/>
    <pathelement location="${tools.dir}/resolver/resolver.jar"/>
    </path>

    <macrodef name="saxon">
    <attribute name="input"/>
    <attribute name="output"/>
    <attribute name="style"/>
    <sequential>
    <java classname="com.icl.saxon.StyleSheet" fork="true"
    dir="${basedir}" classpathref="saxon.classpath">
    <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
    <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
    <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
    <arg line="-x org.apache.xml.resolver.tools.ResolvingXMLReader"/>
    <arg line="-y org.apache.xml.resolver.tools.ResolvingXMLReader"/>
    <arg line="-r org.apache.xml.resolver.tools.CatalogResolver"/>
    <arg line="-o @{output}"/>
    <arg value="@{input}"/>
    <arg value="@{style}"/>
    </java>
    </sequential>
    </macrodef>





  • 2.  Re: [docbook-apps] Apache resolver library not found

    Posted 07-20-2012 00:58
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On 07/19/2012 05:26 PM, Jeff Powanda wrote:
    > I don?t want to use the internal resolver. I want to use Apache
    > Commons Resolver specified in the classpath. Hoping that someone
    > can tell me what I?m doing wrong. Sorry, I?m an Ant newbie.

    I believe that the resolver jar has to be in your CLASSPATH when you
    invoke ANT (or alternatively in your ant install's lib dir?). That's
    what makes the internal resolver appealing: you don't have to count on
    the user's environment being set up right.

    David
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.11 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iQEcBAEBAgAGBQJQCK0hAAoJEMHeSXG7afUho/sH/isz3GrDnnG/bE8Uk2LabkGJ
    Y++tbIkYxLaoc5/brcs52V0bOijZpux9HNre7kA3Hn6pvV9C+LhSXpOBjO+Irr1F
    CRQfB6qm0chd1pCmwd2+Pm3G+77aej2g41aj3hpYJ2Q+m0mntPlSrEq9g0GkJK4+
    eCoumayHSR8kcXbFSJmhcPRHSuc5bGLFW02pGymFlD36JwjKHiB831OfhraG5NiB
    Z7IvPYLv4w4WKY8zBcXcdCyMFUJygSSXUEfEG1Hlz8Em4IY/EwaOWCWaV8R3l3+q
    g11pFEohCqBW0LZSXB8Svpse3lbg4TTRhqW2ttbo84cdyMSWA97MroDd7DR2QUw=
    =7AfC
    -----END PGP SIGNATURE-----



  • 3.  RE: Apache resolver library not found

    Posted 07-20-2012 01:00
    Figured it out. It was a classpath problem. I updated the classpath to this and it worked:

    <path id="classpath">
    <pathelement location="${extensions.dir}/webhelpindexer.jar"/>
    <pathelement location="${extensions.dir}/lucene-analyzers-3.0.0.jar"/>
    <pathelement location="${extensions.dir}/lucene-core-3.0.0.jar"/>
    <pathelement location="${extensions.dir}/tagsoup-1.2.1.jar"/>
    <pathelement location="${xslt-processor-classpath}"/>
    <pathelement location="${xercesImpl.jar}"/>
    <pathelement location="${xml-apis.jar}"/>
    <pathelement location="${tools.dir}/resolver"/>
    <pathelement location="${tools.dir}/resolver/resolver.jar"/>
    <pathelement location="${tools.dir}/resolver/CatalogManager.properties"/>
    </path>

    Regards,
    Jeff

    From: Jeff Powanda [mailto:jpowanda@vocera.com]
    Sent: Thursday, July 19, 2012 3:27 PM
    To: 'docbook-apps@lists.oasis-open.org'
    Subject: [docbook-apps] Apache resolver library not found

    I already posted to the Ant forum, but thought I'd try the DocBook forum in case anyone tripped over the same problem.

    I'm trying to update an Ant macro. I'm trying to use Saxon 6.5.5 with the Apache Commons Resolver, which I've specified in my classpath shown below. When I run this macro, I get the following error:

    Apache resolver library not found, internal resolver will be used

    I don't want to use the internal resolver. I want to use Apache Commons Resolver specified in the classpath. Hoping that someone can tell me what I'm doing wrong. Sorry, I'm an Ant newbie.

    Regards,
    Jeff Powanda

    <path id="saxon.classpath">
    <pathelement location="${xslt-processor-classpath}"/>
    <pathelement location="${xercesImpl.jar}"/>
    <pathelement location="${xml-apis.jar}"/>
    <pathelement location="${tools.dir}/resolver"/>
    <pathelement location="${tools.dir}/resolver/resolver.jar"/>
    </path>

    <macrodef name="saxon">
    <attribute name="input"/>
    <attribute name="output"/>
    <attribute name="style"/>
    <sequential>
    <java classname="com.icl.saxon.StyleSheet" fork="true"
    dir="${basedir}" classpathref="saxon.classpath">
    <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
    <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
    <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
    <arg line="-x org.apache.xml.resolver.tools.ResolvingXMLReader"/>
    <arg line="-y org.apache.xml.resolver.tools.ResolvingXMLReader"/>
    <arg line="-r org.apache.xml.resolver.tools.CatalogResolver"/>
    <arg line="-o @{output}"/>
    <arg value="@{input}"/>
    <arg value="@{style}"/>
    </java>
    </sequential>
    </macrodef>





  • 4.  Re: [docbook-apps] RE: Apache resolver library not found

    Posted 07-20-2012 02:06
    On 07/19/2012 07:59 PM, Jeff Powanda wrote:
    > Figured it out. It was a classpath problem. I updated the classpath to
    > this and it worked:

    Interesting and good to know. I tried that once and couldn't get it to
    work. I must have given up too soon.

    David




  • 5.  Re: [docbook-apps] RE: Apache resolver library not found

    Posted 07-20-2012 06:43
    Hi,

    May be you can try http://ant4docbook.sourceforge.net/
    I packaged all dependencies in 1 jar file.

    Regards,

    Benjamin

    2012/7/20 David Cramer <david@thingbag.net>:
    > On 07/19/2012 07:59 PM, Jeff Powanda wrote:
    >> Figured it out. It was a classpath problem. I updated the classpath to
    >> this and it worked:
    >
    > Interesting and good to know. I tried that once and couldn't get it to
    > work. I must have given up too soon.
    >
    > David
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >