Pls note that i am using OSX 10.3, java 1.4.2_03
1. Setup tomcat version 4.1.29, pls ensure that $TOMCAT_HOME is set properly. To confirm the setup is done properly after installation. cd $TOMCAT_HOME/bin and invoke ./startup.sh (all these are meant for unix environment, you need to get the windows equivalent). Once tomcat is ok, shutdown tomcat using ./shutdown.sh
2. Download xindice v 1.1b3 src, ensure that $XINDICE_HOME is set properly. cd $XINDICE_HOME, type "ant" to invoke the "release" target in the build.xml. you will have both xindice-jar and xindice-war. For the moment ignore xindice-jar,
3. copy xindice-war $TOMCAT_HOME/webapps
4. startup tomcat again using ./startup.sh
5. wait for about 10sec, fire up a browser. To ensure that xindice is up and running, type the following url in your browser http://localhost:8080/xindice , you will be greeted by a xindice page that has "db" and two collections "system", "meta". congratulations you got remote xindice running! :)
6. Follow the xindice examples using the command line, it is useful first cd to $XINDICE_HOME/java/examples/guide/xml before testing out the address1 and address2 examples.
Hope this is helps
chung-onn
On 23 Feb 04, at 9:39 PM, Cheong Chung Onn wrote:
Hi Longtai,
<x-tad-bigger>Another question, when I dumped Xindice.war into tomcat/webapps directory, it will create the xindice folder under tomcat/webapps.</x-tad-bigger>yes, this is the behaviour of a web container (tomcat), it will explode the war (Web ARchive) file for you. You may want to read the J2EE web container specs for more info.
<x-tad-bigger> And I notice the database is under tomcat/webapps/xindice/web-inf/db folder……</x-tad-bigger>It is documented in one of the guide - the default db location is found as per your discovery.
<x-tad-bigger>So when I use Netbeans to build web applications to access the Xindice database, which directory do I mount?</x-tad-bigger>There is no way you can mount the db, rather you will be communicating with it remotely via a uri i.e. xmldb:xindice://hostname:port//db, the other way is to use the embedded version of xindice which i will be exploring later once i can comfortably access the remote db - fyi, i only started using xindice only 2-3 days ago :)
<x-tad-bigger>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</x-tad-bigger>you can set the remote db to a specific location, i cant recall of hand, pls check the guides. it is document somewhere.
wish you luck
chung-onn