Hi,
I am also new to Xindice ... I use a build from last week CVS version (1.1 ...).
Considering the command line tool works, maybe is it the webapp configuration
which makes a difference ?

After deploying the xindice-1.1b.war web application I added the following to
tomcat /conf/server.xml

  <!-- Xindice Context -->
  <Context path="/Xindice" docBase="xindice-1.1b" debug="0" reloadable="true">
    <Logger className="org.apache.catalina.logger.FileLogger" 
      debug="0" 
      verbosity="1" 
      prefix="xindice_log." 
      directory="logs" 
      timestamp="true" 
      suffix=".txt"/>
  </Context>

After restarting tomcat I have done the following tests from the command line
using the Address book example:

/* ---------- ADDRESSBOOK TESTS -------------- */
/* Add the addressbook collection */
xindice ac -v -c /db -n addressbook

/* Add multiple documents */
xindice addmultiple -c /db/addressbook -f
$XINDICE_HOME/src/xml-xindice/java/examples/guide/xml -e xml

xindice xpath -c /db/addressbook -q "/person"
xindice xpath -c /db/addressbook -q "//address"
xindice xpath -c /db/addressbook -q "//[EMAIL PROTECTED]'home']"

The following also works:
xindice lc -c /db -u "http://yourHost:yourTomcatPort/Xindice";


I hope this helps, Patrick




Quoting Henrik Mohr <[EMAIL PROTECTED]>:

> Hi Andi (and others),
> 
> No, I still didn't get the command line to work via XML-RPC.
> I fetched the files that where missing in the src-distribution, 
> through cvs, and then it compiled perfectly. But still no luck - 
> the command line only works locally.
> 
> So for now I'm coding my own webapp using the embedded driver. As 
> long as the webapp and Xindice runs on the same server, it's ok. 
> But not in the longer run.
> 
> Anyone else got it to work?
> 
> Regards,
> /Henrik
> 
> ---------- Original Message ----------------------------------
> From: "Andi Heusser" <[EMAIL PROTECTED]>
> Reply-To: xindice-users@xml.apache.org
> Date: Mon, 26 May 2003 00:14:39 -0600
> 
> >Hi Henrik (and others)
> >
> >Did you manage to get the command line tool working with xindice-
> 1.1b? I'm
> >running into the exact same problems and couldn't find any 
> helpful info on
> >the web nor the archive of the mailing list.
> >
> >If not, could anyone please help me with that issue? It seems 
> that quite a
> >few people are using Xindice 1.1b by now and therefore I assume 
> that it's
> >working for at least a few of those.
> >
> >I'm using Xindice 1.1b under Tomcat 4.1.24 and Windows XP. The 
> database is
> >correctly deployed under Tomcat since I can access it through the 
> ugly debug
> >tool. I can access the database using the -l and -d flags 
> (accessing it
> >locally), but I can't get the command line tool to work via the 
> network
> >using either the -u or --uri flags.
> >
> >Any ideas/help would be greatly appreciated. Thanks.
> >
> >Andi Heusser
> >
> >
> >
> >------------------------------------------------------------------
> ----------
> >-----
> >Hello again (Charles and others),
> >
> >OK, I've now fetched the souce from the public cvs repository, 
> and compiled
> >it. No problems.
> >I've copied the _new_ Xindice.war to my "webapps" folder in 
> Tomcat, and
> >started it.
> >
> >I can still browse the CVS through a browser pointing to
> >http://localhost/Xindice, but I still can't use the command line:
> >C:\java\xml-xindice\bin>.\xindice.bat lc -c /db
> >ERROR : Collection not found!
> >
> >C:\java\xml-xindice\bin>.\xindice.bat lc -c /db -u 
> http://localhost/Xindice
> >ERROR : Collection not found!
> >
> >C:\java\xml-xindice\bin>.\xindice.bat lc -c /db -u
> >http://localhost:80/Xindice
> >ERROR : Collection not found!
> >
> >Any ideas? Please help, I'm on my 4th night without any access to 
> Xindice
> >1.1.
> >
> >Just for the record:
> >I use Tomcat 5.02 and Sun JDK1.4.1_01.
> >
> >Thanks in advance!
> >
> >Regards,
> >Henrik, Denmark
> >
> >
> >
>                  
> 


Reply via email to