I fail to write a simple java application accessing dbXML/XIncice:
(1) I start dbxml on localhost
(2) I try to connect to the database using this code:
org.xmldb.api.base.Collection col = null;
try {
Class c = Class.forName("");Database database = (Database) c.newInstance();
DatabaseManager.registerDatabase(database);
col = DatabaseManager.getCollection("xmldb:dbxml://localhost:4080/db/root");
... ...
I receive an exception. btw. I tried a lot of different URIs also xmldb:dbxml:///db and so on.
"org.xmldb.api.base.XMLDBException: A connection to the Database instance 'db' could not be created. Error: http://localhost:4080/db.ior"
(3) sometimes I receive an error (even with the method from the documentation):
java.lang.NoClassDefFoundError: org/dbxml/server/dbXMLException
I searched through the jars and found neither this class, nor the server package...? so even the example programs will not work???
please can anyone give me assistance?
thank you
Alex
btw.: I found no place in the documentation where is explained which jars have to be added to the classpath when writing a java application...
