Hi,
maybe you need to change:
collection = DatabaseManager.getCollection ("xmldb:xindice:///db/coll");
into
collection = DatabaseManager.getCollection
("xmldb:xindice://localhost:8080/db/coll/");
Hope I was able to help you :)
Regards Markus
On 9 Jan 2004 at 3:06, tycho brahe wrote:
> I've eliminated the XindiceServlet, in stead I'm trying to initialize
> a database from my own servlet , like so
>
> String driver = "org.apache.xindice.client.xmldb.DatabaseImpl";
> Class c = Class.forName(driver);
> Database database = (Database) c.newInstance();
> DatabaseManager.registerDatabase (database);
> collection = DatabaseManager.getCollection
> ("xmldb:xindice:///db/coll");
>
> first alot of propertypermissions are requested, then suddenly it
> wants to connect to localhost:8888. How do I change this, I'm not
> interested in using RPC, but if thats necessary, I'd like 8080 for a
> port. Can anyone tell me what I've missed, where I go wrong, or how to
> change the port-number.
>
> thanks.
>
> _________________________________________________________________ The
> new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail