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] WebHelp indexer issue


Hi Eric,
Ant guide suggests avoiding using CLASSPATH environment variable. Run ant with -noclasspath option. Here's why [1].

As Peter said, placing the relevant jars in $JAVA_HOME/lib/endorsed would solve the problem too.

Assuming that didn't work out, I suggest giving a try with the webhelp in the snapshot. [2] We have changed the way we invoke the webhelp indexer. Basically we have removed the taskdef "indexertask" and replaced it with ant's "java" task. Here's a diff if you like to give a try [3]. (You may consider setting fork="yes" in the java task too. )

[1] http://docs.codehaus.org/display/GROOVY/Ant+Task+Troubleshooting
[2] http://docbook.sourceforge.net/snapshot/
[3] http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/xsl/webhelp/build.xml?r1=8981&r2=8922

Let us know how it works out!

Regards,
--Kasun

On Tue, Jun 21, 2011 at 12:24 AM, Eric Johnson <ericjohnson@apache.org> wrote:
David,
Thanks for the pointer, but it didn't seem to help.

Here is how I've set up the indexer in Ant:

 <path id="wh-indexer-classpath">
       <filelist dir="${env.DCBK_HOME}/lib/docbook-xsl-ns/extensions/">
               <file name="webhelpindexer.jar"/>
               <file name="lucene-analyzers-3.0.0.jar"/>
               <file name="lucene-core-3.0.0.jar"/>
       </filelist>
       <filelist dir="${env.DCBK_HOME}/lib">
         <file name="saxon6/saxon.jar" />
         <file name="xalan/xercesImpl.jar" />
         <file name="xalan/xml-apis.jar"/>
   </filelist>
 </path>

 <taskdef name="indexertask" classname="com.nexwave.nquindexer.IndexerTask">
   <classpath refid="wh-indexer-classpath"/>
 </taskdef>

I'm using Ant 1.8.2.

Thanks,
Eric


On Thu, Jun 16, 2011 at 5:49 PM, David Cramer <david@thingbag.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Eric,
> I'm guessing you're using ant 1.8.1. If so, see this post:
>
> http://lists.oasis-open.org/archives/docbook-apps/201011/msg00115.html
>
> I do need to update the webhelp docs in light of this. I had  wiki page
> about this but it was lost in the great-docbook-wiki-crash :-( I stil
> need to recreate that.
>
> David
>
> On 06/16/2011 04:38 PM, Eric Johnson wrote:
>> I'm getting the following when I try to include the WebHelp indexer
>> into my own build.xml:
>>
>> C:\Documents and Settings\emjohnso\Desktop\git\cxf\rest\build.xml:29: The follo
>> ing error occurred while executing this line:
>> c:\dpplus\dcbk\lib\xslt_ns_build.xml:400: javax.xml.parsers.FactoryConfiguratio
>> Error: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
>>         at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java
>> 134)
>>         at com.nexwave.nquindexer.SaxDocFileParser.parseDocument(SaxDocFilePars
>> r.java:67)
>>         at com.nexwave.nquindexer.SaxHTMLIndex.runExtractData(SaxHTMLIndex.java
>> 104)
>>         at com.nexwave.nquindexer.IndexerTask.execute(IndexerTask.java:238)
>>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
>>         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
>> sorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja
>> a:106)
>>         at org.apache.tools.ant.Task.perform(Task.java:348)
>>         at org.apache.tools.ant.Target.execute(Target.java:390)
>>         at org.apache.tools.ant.Target.performTasks(Target.java:411)
>>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
>>         at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Singl
>> CheckExecutor.java:38)
>>         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
>>         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105
>>
>>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
>>         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
>> sorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja
>> a:106)
>>         at org.apache.tools.ant.Task.perform(Task.java:348)
>>         at org.apache.tools.ant.Target.execute(Target.java:390)
>>         at org.apache.tools.ant.Target.performTasks(Target.java:411)
>>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
>>         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
>>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultEx
>> cutor.java:41)
>>         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
>>         at org.apache.tools.ant.Main.runBuild(Main.java:809)
>>         at org.apache.tools.ant.Main.startAnt(Main.java:217)
>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
>>
>> Total time: 9 seconds
>>
>> Any ideas?
>>
>> TIA,
>> Eric
>>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJN+npOAAoJEMHeSXG7afUhcIwH/A6f92Vpli1/meCKAsF8TAiS
> OI+tvmyVy2NgVlNEfkaAzrCQ3vyKoMTOBzuxq2riH95C7NnPijxM+0WEpsAkjdKr
> XSIFVNcEm93DOi/8J5V4UxKYboxXduGoC5LR7AchYU1C5zBxGNekEevTMktCDhZ9
> lOU/BYe+x+SMlbGdWAQywZX12qYhT6+u6QIGWdOjuu/7yWGWPQthBmbFwLhLiE3A
> RJc7+UOYKpg8Aihcay1jyewCfOHn0SJHsktp7tk6D+2PAt3QHGXFT3mBb7DmZJp+
> lW9GuyhSuwsyzFwz8yMqhK2u0jmuVEML5BySkIYJzoIkF8Aa/Q2u+rSyE6jsPEY=
> =GERN
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>



--
Principle Technical Writer
FuseSource
Phone: (781) 280-4174
E-Mail: ericjohnson@apache.org
Blog: http://documentingit.blogspot.com/
Twitter: finnmccumial

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org




--
~~~*******'''''''''''''*******~~~
Kasun Gajasinghe,
University of Moratuwa,
Sri Lanka.
Blog: http://kasunbg.blogspot.com
Twitter: http://twitter.com/kasunbg


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