logo       

Re: db root config problems: msg#00104

Subject: Re: db root config problems
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 (kstaken@xxxxxxxxxxxxxxxx)
>   -->
>
> <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" <julie.mccabe@xxxxxxxxx>
> To: "xindice-users" <xindice-users@xxxxxxxxxxxxxx>
> 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.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe