Hi,
I'm just replacing my old xindice 1.0 with the newest version from cvs. After moving
some jars hence and forth, this is the farest I get with my own application:


[java] 2003-12-17 18:44:11,014 80 [AWT-EventQueue-0] DEBUG repository.XindiceRepositoryManager - Driver loaded.
[java] 2003-12-17 18:44:11,024 90 [AWT-EventQueue-0] DEBUG repository.XindiceRepositoryManager - DB registered.
[java] 2003-12-17 18:44:11,024 90 [AWT-EventQueue-0] DEBUG repository.XindiceRepositoryManager - rootCollection=xmldb:xindice-embed://localhost:8080/db/MonA
[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)
[java] at org.apache.xindice.xml.dom.DOMParser.setReaderFeature(DOMParser.java:237)
[java] at org.apache.xindice.xml.dom.DOMParser.getSAXParser(DOMParser.java:252)
[java] at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:112)
[java] at org.apache.xindice.xml.dom.DOMParser.toDocument(DOMParser.java:210)
[java] at org.apache.xindice.client.xmldb.embed.DatabaseImpl.loadConfiguration(DatabaseImpl.java:186)
[java] at org.apache.xindice.client.xmldb.embed.DatabaseImpl.init(DatabaseImpl.java:145)
[java] at org.apache.xindice.client.xmldb.embed.DatabaseImpl.<init>(DatabaseImpl.java:130)
[java] at org.apache.xindice.client.xmldb.DatabaseImpl.createDriver(DatabaseImpl.java:216)
[java] at org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:158)
[java] at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
[java] at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
[java] at repository.XindiceRepositoryManager.createRepository(XindiceRepositoryManager.java:52)
[java] at ui.MonAUIImportDialog$3.actionPerformed(MonAUIImportDialog.java:207)
[java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)


This is my code:
String driver = "org.apache.xindice.client.xmldb.DatabaseImpl";
Class c = Class.forName(driver);
// Get the database interface from the driver. This is the concrete
// Database implementation provided by xindice conforming the
// XML:DB Database API.
logger.debug("Loading driver.");
Database database = (Database)c.newInstance();
logger.debug("Driver loaded.");
// Register this database-driver to the concrete DB Manager of the XML:DB API
DatabaseManager.registerDatabase(database);
logger.debug("DB registered.");
rootCollection = "xmldb:xindice-embed://"+
((host != null)?host:"localhost")+":"+
((port != null)?port:"4080")+"/"+
((db != null)?db:"db")+"/MonA";
logger.debug("rootCollection="+rootCollection);


     Collection col = DatabaseManager.getCollection(rootCollection);

Does anybody know, how to fix this exception? The last line creates the exception.
The collection exists. I created it via command line.
And: where do I have to put which configuration file when I don't want the db in
my working directory?


   Thanks beforehand,
      David

--
David Kensche
Rethelstr. 2
52062 Aachen
Tel.: 0241/4019185





Reply via email to