Hi Julie,
The warning just tells you it is putting the database in the default
location, which is probably not where you want it.
I found a solution, and other hints in http://www.waldhor.com/xindice.htm
But of course it is also in the manual:
http://xml.apache.org/xindice/faq.html#faq-N100AD
See below, I hope it helps.
Jelle
-------waldhor-----8<-------------
You can change the location of the db by modifying the system.xml in the
tomcat directory ../webapps/xindice/web-inf. I did the following change:
<?xml version="1.0"?>
<!--
- Version: $Revision: 1.8 $ $Date: 2002/11/02 06:23:50 $
- Author: Kimbro Staken ([EMAIL PROTECTED])
-->
<xindice>
<root-collection dbroot="c:/programme/xindice1.1/db/" name="db">
<queryengine>
<resolver autoindex="false"
class="org.apache.xindice.core.query.XPathQueryResolver" />
<resolver
class="org.apache.xindice.core.xupdate.XUpdateQueryResolver" />
</queryengine>
</root-collection>
</xindice>
Now the db should be created and used from the directory
c:/programme/xindice1.1/db/.
------------>8-------waldhor-----
----- Original Message -----
From: "Julie McCabe" <[EMAIL PROTECTED]>
To: "xindice-users" <[email protected]>
Sent: Tuesday, May 25, 2004 11:50 AM
Subject: db root config problems
> Hello,
>
> I am using Xindice 1.1, Tomcat 4.1.27, Red Hat Linux 9.0.
>
> I did not change the default xindice configuration in the system.xml as
>
> root-collection dbroot="./db/" name="db" use-metadata="on">
>
> However, I get the following output in my logs
>
> 5644 [main] WARN org.apache.xindice.server.XindiceServlet - The database
> 'db' root directory has been set to
> /opt/jakarta-tomcat-4.1.27/webapps/xindice/WEB-INF/db. Keep in mind that
if a
> war upgrade will take place the database will be lost.
> 5693 [main] INFO org.apache.xindice.core.Database - Database points to
> /opt/jakarta-tomcat-4.1.27/webapps/xindice/WEB-INF/db
> 5900 [main] INFO org.apache.xindice.core.Database - Meta information
> initialized
> 5900 [main] INFO org.apache.xindice.server.XindiceServlet - Database
'db'
> successfully opened
> 6037 [main] INFO org.apache.xindice.server.XindiceServlet - Xindice
server
> successfully started
> 8250 [main] INFO org.apache.xindice.client.xmldb.embed.DatabaseImpl - No
> configuration file specified, going with the default configuration
> 8337 [main] WARN org.apache.xindice.client.xmldb.embed.DatabaseImpl -
The
> database configuration file is not specified and there was no
xindice.db.home
> property set, so Xindice was unable to determine a database location.
> Database will be created relative to the current directory.
> 8411 [main] INFO org.apache.xindice.core.Database - Database points to
> /home/jm/db
> 10610 [main] INFO org.apache.xindice.client.xmldb.embed.DatabaseImpl -
No
> configuration file specified, going with the default configuration
> 10615 [main] WARN org.apache.xindice.client.xmldb.embed.DatabaseImpl -
The
> database configuration file is not specified and there was no
xindice.db.home
> property set, so Xindice was unable to determine a database location.
> Database will be created relative to the current directory.
>
> Essentially, it creates a db directory in the directory from which I
started
> Tomcat - I do not want this to happen and was wondering if there is a
> solution. The db directory created contains
system/SysConfig/SysConfig.tbl
> system/SysSymbols/SysSymbols.tbl - has anybody seen this behaviour before?
>
> Thanks,
> Julie.
>