You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Christian Gross <ma...@devspace.com> on 2002/12/29 21:00:35 UTC
Database deleted automatically....
I am using Xindice using the XMLRPC interface. I can insert a document and
create a collection. But when I shutdown Tomcat and restart Tomcat, my
changes disappear.
Here are my operations:
CreateCollection /db name of collection test
InsertDocument /db/test name of something with data.
Is there something I am not doing?
Christian Gross
Software Engineering Consultant / Trainer
http://www.devspace.com
North America: 1-450-675-4208
Europe: +41.1.701.1166
Re: Database deleted automatically....
Posted by Christian Gross <ma...@devspace.com>.
At 21:55 12/29/2002 +0100, you wrote:
>Christian Gross wrote:
>>I am using Xindice using the XMLRPC interface. I can insert a document
>>and create a collection. But when I shutdown Tomcat and restart Tomcat,
>>my changes disappear.
>>Here are my operations:
>>CreateCollection /db name of collection test
>>InsertDocument /db/test name of something with data.
>>Is there something I am not doing?
>
>Are you using a recent CVS version? Until some time ago, Xindice defaulted
>to create the database in the directory you launched Tomcat from, while
>now it's a bit more clever in finding the proper location (with an
>unpacked WAR it will be under WEB-INF/db). Upon startup, Xindice will log
>the database location ("database points to..."). Please check that your
>database is in the proper place, and also check with the command line if
>your document is still there too: chances are that the document is there
>but you aren't seeing it (this is because the GetCollectionConfiguration
>XMLRPC call is unfinished).
>
>LMK,
>
>--
>Gianugo Rabellino
I thought it might be some default action on behalf of Xindice and I did
two things. First I deleted the war file after it automatically
unpacked. And then I changed the detault location of the database file to
the following system.xml file:
<xindice>
<root-collection dbroot="D:/dbXindice/" name="db" use-metadata="off">
<!-- Set use-metadata to on to enable metadata usage. -->
<queryengine>
<resolver autoindex="false"
class="org.apache.xindice.core.query.XPathQueryResolver" />
<resolver
class="org.apache.xindice.core.xupdate.XUpdateQueryResolver" />
</queryengine>
</root-collection>
</xindice>
My CVS sources are about a day or two old. Here are my Tomcat startup
messages:
30-Dec-2002 2:11:13 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
30-Dec-2002 2:11:13 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
30-Dec-2002 2:11:14 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
30-Dec-2002 2:11:14 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
30-Dec-2002 2:11:16 AM org.apache.xindice.core.Database setConfig
INFO: Database points to D:\dbXindice
30-Dec-2002 2:11:17 AM org.apache.xindice.core.Database setConfig
INFO: Database points to D:\dbXindice
30-Dec-2002 2:11:17 AM org.apache.xindice.server.XindiceServlet init
INFO: Database successfully started
30-Dec-2002 2:11:21 AM org.apache.xindice.core.Database setConfig
INFO: Database points to D:\dbXindice
30-Dec-2002 2:11:21 AM org.apache.xindice.core.Database setConfig
INFO: Database points to D:\dbXindice
30-Dec-2002 2:11:22 AM org.apache.xindice.server.XindiceServlet init
INFO: Database successfully started
30-Dec-2002 2:11:22 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 80
30-Dec-2002 2:11:22 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on tcp port 8009
30-Dec-2002 2:11:22 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/61 config=D:\Tomcat 4.1\conf\jk2.properties
And I just verified to see if it did delete the references and indeed it
did. HOWEVER, the file d:/dbXindice/test/test.tbl does exist. This is the
file created by the system.
Does this help....
Christian Gross
Software Engineering Consultant / Trainer
http://www.devspace.com
North America: 1-450-675-4208
Europe: +41.1.701.1166
Re: Database deleted automatically....
Posted by Gianugo Rabellino <gi...@apache.org>.
Christian Gross wrote:
> I am using Xindice using the XMLRPC interface. I can insert a document
> and create a collection. But when I shutdown Tomcat and restart Tomcat,
> my changes disappear.
>
> Here are my operations:
> CreateCollection /db name of collection test
> InsertDocument /db/test name of something with data.
>
> Is there something I am not doing?
Are you using a recent CVS version? Until some time ago, Xindice
defaulted to create the database in the directory you launched Tomcat
from, while now it's a bit more clever in finding the proper location
(with an unpacked WAR it will be under WEB-INF/db). Upon startup,
Xindice will log the database location ("database points to..."). Please
check that your database is in the proper place, and also check with the
command line if your document is still there too: chances are that the
document is there but you aren't seeing it (this is because the
GetCollectionConfiguration XMLRPC call is unfinished).
LMK,
--
Gianugo Rabellino