Hello,

I'm still a bit confused by this, xindice prints out the following

11649 [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.
12259 [main] INFO  org.apache.xindice.core.Database  - Database points to 
/opt/jakarta-tomcat-4.1.27/webapps/xindice/WEB-INF/db
16402 [main] INFO  org.apache.xindice.core.Database  - Meta information 
initialized
16403 [main] INFO  org.apache.xindice.server.XindiceServlet  - Database 'db' 
successfully opened
16455 [main] INFO  org.apache.xindice.server.XindiceServlet  - Xindice server 
successfully started
23887 [main] INFO  org.apache.xindice.client.xmldb.embed.DatabaseImpl  - No 
configuration file specified, going with the default configuration
24108 [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.
24188 [main] INFO  org.apache.xindice.core.Database  - Database points to 
/opt/jakarta-tomcat-4.1.27/db
26840 [main] INFO  org.apache.xindice.client.xmldb.embed.DatabaseImpl  - No 
configuration file specified, going with the default configuration
26846 [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.
server.properties not found, using command line or default properties


It firstly picks up the correct location where I have my collections stored 
and then it creates a dir  ./db  what is the difference between the 2 
collection locations, as when running from the command line or through Java 
the correct location of the collections in picked up?

Thanks,
Julie.

On Tuesday 25 May 2004 11:08, Jelle Alten wrote:
> 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.

Reply via email to