On Tue, 19 Mar 2002, Kimbro Staken wrote:

> Is this on 1.4 VM? If so you need to use the endorsed standards override 
> mechanism to use the older version of Xalan included with Xindice. 
> http://java.sun.com/j2se/1.4/docs/guide/standards/index.html

It is on the 1.4 VM.
I tried copying $XINDICE_HOME/java/lib/xalan-2.0.1.jar to the location
identified by my value of System.getProperty("java.endorsed.dirs").
After doing that, I can not start Xindice, or even run the
"xindice" command with no arguments.  Instead I get this exception:

$ xindice
Exception in thread
"main" javax.xml.parsers.FactoryConfigurationError: 
java.lang.ClassNotFoundException: org/apache/xerces/jaxp/SAXParserFactoryImpl
        at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:150)
        at:
org.apache.xindice.xml.dom.DOMParser.getSAXParser(DOMParser.java:230)
        at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:93)
....

(This happens equivalently with the 1.0rc2 and 1.0 versions.  Henceforth I
will use the 1.0.)

I can get past this problem by copying additional .jar files from Xindice
to my "endorsed" directory.
However I always still get various errors and can not get as far as
running the XUpdate example.
With these files in "endorsed":

xalan-2.0.1.jar  xerces-1.4.3.jar  xindice.jar

I get this result from simple commands:

[EMAIL PROTECTED]:~/pm$ xindiceadmin lc -c /db
Exception in thread
"main" java.lang.NoClassDefFoundError: org/xmldb/api/base/Configurable
        at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:317)
        at org.apache.xindice.tools.XMLTools.process(XMLTools.java:257)
        at
org.apache.xindice.tools.XMLAdminTools.main(XMLAdminTools.java:89)

(I don't understand why it changes anything when I copy Xindice jar's to
"endorsed".  I would expect that this would have no effect unless the .jar
duplicated something in the Java distribution.)

I will experiment further tomorrow.

thanks,

        Jonathan

Reply via email to