Gianugo Rabellino told me
 
Try xmldb:xindice://localhost:8080/db. Also, if you point your browser
to http://localhost:8080/Xindice can you see the "ugly debug tool"?
 
So I modified ListCollections.java
 
----------------------------------------------------------------------------------------
 
      try {
             
         if (table.get(XMLTools.COLLECTION) == null) {
            System.out.println("ERROR : Collection context required");
            return false;
         }
 
         // list the COLLECTIONURI + The collection passed in
         colstring = normalizeCollectionURI( (String)table.get(XMLTools.COLLECTION),
                                             (String) table.get(XMLTools.LOCAL) );
 
         colstring="xmldb:xindice://localhost:8080/db";
         // Get a Collection reference
         col = DatabaseManager.getCollection( colstring );
         if ( col == null ) {
            System.out.println("ERROR : Collection not found!"+colstring);
            return false;
-----------------------------------------------------------------------------------------
 
But I've got Error Message.
 
ERROR : Collection not found!
 
Of couse, In that time I can see "ugly debug tool" through a web browser.
 
--below is my last mail message----------------------------------------------------
 
I have downloaded the source from CVS.
 
After Build on my pc, xindice-embed works very well.
 
EX)DatabaseManager.getCollection("xmldb:xindice-embed:///db/addressbook");
 
But xindice doesn't work
 
EX)DatabaseManager.getCollection("xmldb:xindice:///db");
 
Although in my tomcat engine the xindice server run.
 
 
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
[WARN] servlet - -The database root directory has been set to C:\jakarta-tomcat-
4.1.18\bin\..\webapps\xindice-1.1b\WEB-INF\./db/. Keep in mind that if a war upg
rade will take place the database will be lost.
[INFO] core - -Database points to C:\jakarta-tomcat-4.1.18\bin\..\webapps\xindic
e-1.1b\WEB-INF\.\db
[INFO] servlet - -Database successfully started
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=10/771  config=C:\jakarta-tomcat-4.1.18\bi
n\..\conf\jk2.properties
 
 
 
 
      try {
             
         if (table.get(XMLTools.COLLECTION) == null) {
            System.out.println("ERROR : Collection context required");
            return false;
         }
 
         // list the COLLECTIONURI + The collection passed in
         colstring = normalizeCollectionURI( (String)table.get(XMLTools.COLLECTION),
                                             (String) table.get(XMLTools.LOCAL) );
 
//colstring="xmldb:xindice://localhost:8080/db";
         // Get a Collection reference
         col = DatabaseManager.getCollection( colstring );
         if ( col == null ) {
            System.out.println("ERROR : Collection not found!"+colstring);
            return false;
 
 

Reply via email to