[EMAIL PROTECTED] wrote:

I'm trying to upgrade our code from Xindice 1.0 to 1.1beta, and I'm having some NASTY problems of the well-known Xalan, Xerces Jdk1.4 type...


I've checked out and built a copy from cvs.

Now, it's clear to start the server from a war, and as a stand-alone server, but :
From my code, what is the minimum set of jars needed for the client to access the Xindice server?



For the moment, I have :

From Xml:Db
xmldb.jar

From Xindice 1.1beta
commons-logging-1.0.1.jar
xindice-1.1b2.jar
xmlrpc-1.1.jar
xmldb-api-20021118.jar

The reason I ask is that I seem to be getting a serious error with a useless stack trace, that I can't seem to debug, and I'm wondering if it's a secret xalan or xerces issue raising it's ugly head again.
Exactly the same code, but with much less jars runs no problem, connects to the db etc etc. But when I run my entire application, using a real spagetti of Jaxb, Axis and all their associated crap, I get this error.
God I wish the Java Web Services Development Pack would be made illegal!



Many thanks, WH


For the socially challenged, I've included the stack trace, for what it's worth....


[java] 6203 [Thread-4] ERROR Caught database error :NO_SUCH_DATABASE
[java] org.xmldb.api.base.XMLDBException:
[java] at org.xmldb.api.DatabaseManager.getDatabase(Unknown Source)
[java] at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)

Hi, maybe you didn't register the db?

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);


   Good luck,
      David




Reply via email to