When you use Xindice via a web container like Tomcat, it creates the database under the WEB-INF folder by default. However, if you re-install the Xindice web application, it will erase your database. So, you should configure Xindice to set up the database somewhere else.
 
See http://wiki.apache.org/xindice/XindiceFAQ/EnvironmentVariables for details on how to set an environment variable to get Xindice to set up the database somewhere else. You can also use the XML configuration file to set the database location.
 
If you plan to use Xindice from a web application on the same machine as the database, you might want to consider using Xindice in embedded mode. In that case, I believe that you can set the database location from your code - just do not leave it under WEB-INF.
 
/Neil
-----Original Message-----
From: Chen Longtai [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 8:15 AM
To: xindice-users@xml.apache.org; [EMAIL PROTECTED]
Subject: RE: Why isn't commandline Xindice not working in my machine?

Chung oon,

 

I will give it a try again.

 

Another question, when I dumped Xindice.war into  tomcat/webapps directory, it will create the xindice folder under tomcat/webapps.

 

And I notice the database is under tomcat/webapps/xindice/web-inf/db folder……

 

So when I use Netbeans to build web applications to access the Xindice database, which directory do I mount?

 

The one at tomcat/webapps/xindice OR I can create another directory that contain my web-inf files like tomcat/webapps/test and then use codes to point the db to the path at tomcat/webapps/xindice/web-inf/db……

 

Please advice.

 

Thanks.

 

-----Original Message-----
From: Cheong Chung Onn [mailto:[EMAIL PROTECTED]
Sent:
Monday, February 23, 2004 12:33 PM
To: xindice-users@xml.apache.org
Subject: Re: Why isn't commandline Xindice not working in my machine?

 

Hi Longtai,

You don't need to worry about the jar libs if you are using command line because the shell script will automatically add the jars, but if you are using the apis then you need to add lib jars to your classpath manually.

I suggest you to do the following to ensure xindice is working before exploring other options

1. Use tomcat 4.1.29 (I wanted to use tomcat 5 initially but decided against it)
2. Use the command line and familiarize yourself with xindice then use and IDE like Netbeans to help build your app,

Hope this helps.
chung-onn

On 23 Feb 04, at
6:48 PM, Chen Longtai wrote:

Chung Onn,

 

Do I need to set the classpath for all the jar files in xindice/java/lib  ?

 

-----Original Message-----
From: Cheong Chung Onn [mailto:[EMAIL PROTECTED]
Sent:
Monday, February 23, 2004 1:16 AM
To: xindice-users@xml.apache.org
Subject: Re: Why isn't commandline Xindice not working in my machine?

 

Hi Longtai,

I too started using xindice a few days ago and i had tons of problems anyway i managed to solve all the problems - thanks to some kind souls :)

I looked through your doc and i suggest you to do the following, download the tomcat 4.1.29, it helps to resolve the endorsed dir issue, so you dont have to bother about the modifying your j2se installation. The docs in the developer guide is a little confusing or misleading... just substitute all the context (i.e. -c /db) with xmldb:xindice://localhost:8080/db where 8080 is the default port for tomcat. one other thing, you only need to set XINDICE_HOME and update your path to XINDICE_HOME/bin.

You should avoid using either the xindice-jar or xindice-war, rather download the xindice-src and build both xindice-jar and xindice-war because the src has the examples and config in them which i cant figured out why they are removed from the binaries?!

Finally, i dont use wintel, my environment is osx 10.3. i wish you luck. i am still trying xindice out and i will try to update the docs to help those newbie like me to have a smoother and better experience in xindice but it wont be soon though.

Wish you luck

chung-onn

On 23 Feb 04, at 6:26 AM, Chen Longtai wrote:

Hi,

 

I got tons of problems with installing Xindice in Windows XP, can anyone look at the document file and give me some advice.

Thanks.

 

Regards.

 
<xindice.doc>

Reply via email to