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. 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.
The code didn't change - apart from the url (xindice-embed -> xindice).
Those jars are in my classpath:
Tidy.jar antlr.debug.jar axis.jar commons-discovery.jar commons-logging-1.0.3.jar googleapi.jar icu4j.jar jaxrpc.jar jdom.jar jena.jar junit.jar log4j-1.2.8.jar org.apache.commons.jrcs.diff.jar saaj.jar servlet.jar xalan-2.5.2.jar xerces-2.6.0.jar xindice-1.1b3-dev.jar xml-apis.jar xmldb-api-20021118.jar xmldb-api-sdk-20021118.jar xmldb-common.jar xmldb-xupdate.jar xmlrpc-1.1.jar
Is there something missing, or do you know about ambivalences?
Is this again the problem with the parser? Removing the jvmarg has the same effect.
Again, thanks beforehand, David
-- David Kensche Rethelstr. 2 52062 Aachen Tel.: 0241/4019185