You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by Juan Antonio Herraiz <xi...@hotmail.com> on 2002/07/03 18:56:49 UTC
problem with getCollection
Hello, i have a database as:
/db/portal
and, from a jsp, i want to create a collection, but the server response
that:
java.lang.NoClassDefFoundError
at
org.apache.xindice.client.xmldb.CollectionImpl.(CollectionImpl.java:105)
at
org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:214)
at
org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:194)
at
org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:157)
i don't know what is the problem.
i attach the jsp file to somebody look it.
The param of getCollection:
col = DatabaseManager.getCollection("xmldb:xindice:///db/");
it's correct???
Thanks (my english is bad)
_________________________________________________________________
Únase al mayor servicio mundial de correo electrónico:
http://www.hotmail.com/es
Re: problem with getCollection
Posted by pa...@mac.com.
In this line:
col = DatabaseManager.getCollection("xmldb:xindice:///db/");
You are missing an IP address or hostname for the database.
and example:
col =
DatabaseManager.getCollection("xmldb:xindice://127.0.0.1/db/"); //
localhost connection.