David Kensche wrote:
Vadim Gritsenko wrote:
[java] 2003-12-17 18:39:47,105 291 [AWT-EventQueue-0] INFO org.apache.xindice.client.xmldb.embed.DatabaseImpl - No configuration file specified, going with the default configuration
[java] 2003-12-17 18:39:47,125 311 [AWT-EventQueue-0] WARN org.apache.xindice.xml.dom.DOMParser - ignored exception
[java] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities
[java] at org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:211)
You are supposed to use xerces, and not crimson. Crimson is really old XML parser which does not support a lot of features / standards.
If you are using jdk1.4, this is easily done by specifying property in command line:
-Djava.endorsed.dirs=<path to dir with xerces, xml-apis, xalan jars>
You can see latest xindice CVS for an example of how this can be achieved.
Hm, I don't know Crimson, but I know I have xindice in my classpath and I start the program
from an ant target, using only my application's lib directory and the rt.jar in the classpath.
(in addition to usual classpath, jdk1.4 has "endorsed libs path", which preceeds classpath)
Thus unless
crimson is hidden in some of those jars, it can't be loaded. Know I started it
with
<jvmarg value="-Djava.endorsed.dirs=../lib" />
which is my lib directory, so xerces (xerces-2.6.0.jar) should be in the path.
This is my url:
xmldb:xindice://localhost:8080/db/MonA
But know the collection is null.
When you use xmldb:xindice:... url, you are trying to connect to remote xindice server using xmlrpc protocol. I guess you have this server running (because you do not get connection exception), but do you have collection there created?
btw, if you do not see logs from the xindice, you can turn them on:
<jvmarg value="-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog"/>
<jvmarg value="-Dorg.apache.commons.logging.simplelog.defaultlog=debug"/>
May be they will provide you with some additional info.
Vadim