xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shu-Hua Chang <SCh...@Saba.com>
Subject RE: 1.1b2 Configuration and import questions
Date Mon, 08 Sep 2003 17:21:49 GMT


Your finding is correct but that's not the way to fix your problem.

In your command line, you should change your db connection string to 
when running with Tomcat as now the database is deployed within a
servlet engine to enable network access.
Therefore your command would look like:
C:\home\kurt\xml-xindice\bin>xindice.bat ld -c
where I assume your Tomcat is running on local machine and at port 8080.


-----Original Message-----
From: Kurt Kavanaugh [mailto:kkavanaugh@teletrol.com]
Sent: Monday, September 08, 2003 10:12 AM
To: xindice-users@xml.apache.org
Subject: RE: 1.1b2 Configuration and import questions

ok. I have modified the sources and rebuilt and here is what I have found.

1. I modified the org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl.java
class to have a default of 8080 instead of 8888.

2. I modified the
org.apache.xindice.tools.command.ListCollectionDocuments.java class to do
System.out.println() of the colstring.
which equals = "xmldb:xindice:///db"

3. The reason for failure at the ListCollectionDocuments level of visibility
is that collection returned is null.

                if (col == null) {
		        System.out.println("Collection is null"); // this is
my line
                    System.out.println("ERROR : Collection not found!");
                    return false;

The command line I am using is....

xindice.bat ld -c /db

What am I doing wrong?

signed most frustrated.

-----Original Message-----
From: Kurt Kavanaugh 
Sent: Monday, September 08, 2003 10:46 AM
To: xindice-users@xml.apache.org
Subject: RE: 1.1b2 Configuration and import questions

ok. The 8888 port seems to be legacy from the jetty. albeit I am confused
because I am running the xindice.bat from the bin directory vs the
xindice.bat in the root XINDICE_HOME directory. note the xindice.bat in the
bin is for running the XMLTools and the xindice.bat in the  root directory
is for starting xindice. But why have the xindice.bat in the root if I am
running xindice within tomcat where it gets started automagically?

Also the xindice.bat in the bin builds the db home local to the
XINDICE_HOME, where it is my understanding that the new war installation
places this in the tomcat WEBINF directory. Is there a mismatch in the tools
and the war? Should there be two xindice.bats? One to start and one to do

If I set my XINDICE_DB_HOME to the tomcat installation I get...

C:\home\kurt\xml-xindice\bin>xindice.bat ld -c /db
Exception in thread "main" java.lang.NoClassDefFoundError: Files\Apache

Note, I am still unable to do a simple command line test of the the
xindice.bat tool in the bin directory to look at tomcat/xindice /db. Also
note I did the download sources/build thing on Friday.

Thanks for any and all help


-----Original Message-----
From: Kurt Kavanaugh 
Sent: Monday, September 08, 2003 9:10 AM
To: Xindice users (E-mail)
Subject: 1.1b2 Configuration and import questions

I have setup Xindice 1.1b2 to work with Tomcat per the instructions. However
the below is what I get with a simple attempt to look at the database.

C:\home\kurt\xml-xindice\bin>xindice.bat ld -c /db
[DEBUG] DatabaseImpl - -Using SAX Driver: 'xerces'
[DEBUG] DatabaseImpl - -Using Service Location: '/xindice/'
[DEBUG] CollectionImpl - -Using URL: ''
XMLDB Exception with code 0

Xindice Command Tools v1.1b2..... ( the rest of the standard usage message )


C:\home\kurt\xml-xindice\bin>java -Xms16m -Xmx128m
-Dxindice.home=c:\home\kurt\xml-xindice -Dxindice.db.home=c:\home\kur
mplelog.defaultlog=debug -Dcmd.home=c:\home\kurt\xml-xindice\bin -classpath
-1.1b2.jar;;\config org.apache.xindice.tools


Where does the 8888 port come from?
How can I get more logging info? Are there log4j settings that are
How can I import my legacy data? Has the import command line changed from

I am going into the sources now to get my answers, but I was hoping somebody
may have the answers.


- Kurt

View raw message