I added xercesImpl.jar and xml-apis.jar; it works. I have Saxon9 on the classpath and it isn't hurting things; I'm using msxslt (which much to my surprise still works in Ant; it's from 2002!) to use Saxon6 where Webhelp needs it.

I'd added those jars to the taskdef for indexertask, which didn't work; when I mucked about with the system-level classpath, I was leaving xml-apis.jar out because Xerces docs seemed to indicate it didn't involve Sax. Go figure. I was so close, yet so far.

Thanks for the help!

Cramer, David W (David) wrote:
Hi David,
Btw., I got webhelp to work with 1.8.1 by adding the following to my CLASSPATH:

xercesImpl.jar
xml-apis.jar
saxon.jar

I did a diff of the ant 1.8.0 and 1.8.1 distribution and noticed that 
xercesImpl.jar and xml-apis.jar are no longer in the lib dir.

David

-----Original Message-----
From: Cramer, David W (David)
Sent: Wednesday, November 17, 2010 3:28 PM
To: 'David Priest'; [email protected]
Subject: RE: [docbook-apps] Docbook Webhelp: saxparser problem

Hi David,
What version of ant are you using? I've just discovered that the
webhelp build.xml fails with ant 1.8.1 (and I know it works with 1.6.5
to 1.8.0), however it fails at a different point and with a different
error than you're seeing.

David

-----Original Message-----
From: David Priest [mailto:[email protected]]
Sent: Wednesday, November 17, 2010 2:27 PM
To: [email protected]
Subject: [docbook-apps] Docbook Webhelp: saxparser problem

I've been trying to implement in Ant the indexer part of the Docbook
Webhelp transformation.  I have this error:
[major snippage]
       [xslt] JAXP: find factoryId =javax.xml.parsers.SAXParserFactory
       [xslt] JAXP: loaded from fallback value:
com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
       [xslt] JAXP: created new instance of class
com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl using
ClassLoader: null
       [echo] Indexing html files in
/Users/davidp/dev/release-docs/Admin_Guide-webhelp/content
[indexertask] JAXP: find factoryId
=javax.xml.parsers.SAXParserFactory
[indexertask] JAXP: found system property,
value=org.apache.xerces.jaxp.SAXParserFactoryImpl

BUILD FAILED
/Users/davidp/dev/davidpriest/ant/publish.xml:420:
javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.SAXParserFactoryImpl not found
      at

javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:13
4)
      at

com.nexwave.nquindexer.SaxDocFileParser.parseDocument(SaxDocFileParser.
java:67)
[snip]

There are a nigh-infinite number of debug messages where JAXP loads
from
fallback.  And *immediately* before the indexer is fired-up, JAXP
does
exactly the same thing as had worked for every other step of the
transformation process.

But then, whack, nquindexer craps out when it tries to execute its
indexer task.

I have tried to point it directly at xerces by including it in the
indexer's classpath.  I've tried eliminating classes that I think
might
contain a sax parser of their own (but, then, if those were
interfering,
I'd expect the other debug messages to indicate that).

I should note that my Ant indexertask is copied directly from the
script
provided with Docbook's Webhelp.

Does anyone have any hints on how I can resolve this issue?

Thanks in advance
    david

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
open.org


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to