Hi, 

I want to ask where 1.1 libraries locate?
Are you means $XINDICE_HOME/java/src/org/apache/xindice/client in cvs of 
Xindice?
Thanks for your attention.

Regards,

Trevor


-----Original Message-----
From: STONE,ROBERT (HP-SanDiego,ex1) [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 1:59 AM
To: 'xindice-users@xml.apache.org'
Subject: RE: Client code for xindice1.1 on Tomcat


Solved. I was using 1.0 libraries on the client. Bad idea. Switched to the
1.1 libraries and everything works fine.

However I'm having problems running command line tool (W2K) bin/xindice
fails with the following

C:\java\xml-xindice\bin>xindice
Exception in thread "main" java.lang.NoSuchMethodError: main

This is puzzling, because it's not complaining that file is not found which
would indicate the CLASSPATH problem. What gives?

Bob S.

-----Original Message-----
From: Jeremie hattat [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 11:28 PM
To: xindice-users
Subject: Re:Client code for xindice1.1 on Tomcat


Hi,

 > I'm running latest snapshot of xindice1.1 on tomcat4.1(W2K). Tomcat runs
on
> the default port 8080. No problem accessing debug tool
> (hpsd0139:8080/Xindice) and to drill into the database. No such luck with
> the remote access. 

Can you tell me what's your "getCollection" url when you 
connect localy to your tomcat xindice database instance?


> 
> My client code on the separate W2K machine is this:
> 
> String driver = "org.apache.xindice.client.xmldb.DatabaseImpl";
> Class c = Class.forName(driver);
> Database database = (Database) c.newInstance();
> DatabaseManager.registerDatabase(database);
> col = DatabaseManager.getCollection("xmldb:xindice://hpsd0139:8080/db");
> 
> it fails with this message
> 
> org.xmldb.api.base.XMLDBException: A connection to the Database instance
> 'db' could not be created. Error: http://hpsd0139:8080/db_bootstrap.ior
> 

When you look to the change of the xindice 1.1b, they said they have 
change the corba solution to xmlrpc or embded solution...

I think we should connect via xmlrpc, but i didn'y find any examples...

So if you had some, thanks in advance for forwading information!!!

I hope it could help you...

Jay

> I searched the archives and didn't find the answer
> 
> Thanks for helping,
> 
> Bob Stone
> 

Reply via email to