Kurt,
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
xmldb:xindice://your_server_name:your_tomcat_port/db
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 xmldb:xindice://localhost:8080/db
where I assume your Tomcat is running on local machine and at port 8080.
Shu-Hua
-----Original Message-----
From: Kurt Kavanaugh [mailto:[EMAIL PROTECTED]]
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 admin?
If I set my XINDICE_DB_HOME to the tomcat installation I get...
C:\home\kurt\xml-xindice\bin>
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
Kurt
-----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: 'http://127.0.0.1:8888/xindice/'
XMLDB Exception with code 0
Xindice Command Tools v1.1b2..... ( the rest of the standard usage message )
Classpath
C:\home\kurt\xml-xindice\bin>java -Xms16m -Xmx128m -Dxindice.home=c:\home\kurt\xml-xindice -Dxindice.db.home=c:\home\kur
t\xml-xindice -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.si
mplelog.defaultlog=debug -Dcmd.home=c:\home\kurt\xml-xindice\bin -classpath C:\j2sdk1.4.1_04\lib\tools.jar;c:\home\kurt\
xml-xindice\java\lib\xmlrpc-1.1.jar;c:\home\kurt\xml-xindice\java\lib\xmldb-xupdate.jar;c:\home\kurt\xml-xindice\java\li
b\xmldb-common.jar;c:\home\kurt\xml-xindice\java\lib\xmldb-api-sdk-20021118.jar;c:\home\kurt\xml-xindice\java\lib\xmldb-
api-20021118.jar;c:\home\kurt\xml-xindice\java\lib\xml-apis-1.1.jar;c:\home\kurt\xml-xindice\java\lib\xerces-2.2.1.jar;c
:\home\kurt\xml-xindice\java\lib\xalan-2.4.0.jar;c:\home\kurt\xml-xindice\java\lib\servlet-2.3.jar;c:\home\kurt\xml-xind
ice\java\lib\commons-logging-1.0.1.jar;c:\home\kurt\xml-xindice\dist\xindice-1.1b2.jar;;\config org.apache.xindice.tools
Questions:
Where does the 8888 port come from?
How can I get more logging info? Are there log4j settings that are applicable?
How can I import my legacy data? Has the import command line changed from 1.0?
I am going into the sources now to get my answers, but I was hoping somebody may have the answers.
Thanks
- Kurt