xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Øyvind Vestavik <Oyvind.Vesta...@idi.ntnu.no>
Subject Re: Tomcat servlet with Xindice
Date Mon, 18 Nov 2002 08:35:59 GMT

You are not using a previous version of the database, are you? I remember
there was lots of talk about this a long time ago. As i recall you can
just skip openorb.jar from the libs Tomcat uses, but check the
mail archives. There should be plenty of information there.

vennlig hilsen
Øyvind

On Sat, 16 Nov 2002, Gul Akbar wrote:

>
> Hello,
>
> I have created a servlet that takes input from a HTML form (name and number)
> and want to try and pass this into a Xindice database (phonebook).
> I can add records to this using a Java application, however, my servlet
> container (Tomcat 4.0) comes with errors when I try running the same code from
> a servlet. I start Tomcat and Xindice and after running the servlet, the error
> is shown below.
>
> ------------------------------------
>
> XML:DB Exception occured 1
> org.xmldb.api.base.XMLDBException: A connection to the Database instance 'db' co
> uld not be created. Error: Cannot create resource URL. Please set the openorb.ho
> me property.
>         at org.apache.xindice.client.xmldb.DatabaseImpl.init(DatabaseImpl.java:3
> 86)
>         at org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseIm
> pl.java:205)
>         at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:194)
>
>         at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:157)
>
>         at AddDB.<init>(AddDB.java:22)
>         at AddRecord.processRequest(AddRecord.java:33)
>         at AddRecord.doPost(AddRecord.java:62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:1145)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:247)
>
> ------------------------------------
>
> I have copied most of the jar files to the Tomcat_Home/lib folder.
>
> Thanks in advance
> Gul
>
> PS. I am running Xindice and Tomcat on a Windows Operation System.
>
>
>
> -------------------------------------------------
> This mail sent through IMP: webmail.brad.ac.uk
>


Mime
View raw message