OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Docbook Webhelp: saxparser problem


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'; docbook-apps@lists.oasis-open.org
>> 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:docs@davidpriest.ca]
>>> Sent: Wednesday, November 17, 2010 2:27 PM
>>> To: docbook-apps@lists.oasis-open.org
>>> 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: docbook-apps-unsubscribe@lists.oasis-open.org
>>> For additional commands, e-mail: docbook-apps-help@lists.oasis-
>> open.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]