Re: Please help me run Example1
Todd Byrne <[email protected]>
| Newsgroups | gmane.text.xml.xindice.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Lisa, So I am assuming you downloaded http://ftp.wayne.edu/apache/xml/xindice/xml-xindice-1.1b4-jar.tar.gz Un-tarred it into a dir lets say /tmp. cd $XINDICE_HOME/java/examples # this builds the addressbook example ant needs to be in your path ant # this copies the war to your webapps under a tomcat directory cp ../../dist/addressbook.war $JAKARTA_HOME/webapps # cd $JAKARTA_HOME/bin ./shutdown.sh #shutdown tomcat ./startup.sh #restart tomecat Open up your favorite browser point it to: http://localhost:8080/addressbook That should get you going. Let me know if you need any more help let me know Todd PS: Lines starting with a '#' are comments. Lisa McCabe wrote: > Hello, > > I am still trying to get Example1 to run (unfortunately). I have changed > the port to 8080. I have also added xmlParserAPIs.jar and xercesImpl.jar > to my CLASSPATH. I still am getting the same runtime error. > > If my URI is "xmldb:xindice:///db/addressbook" as specified in Example1, > I get > > XML:DB Exception occurred 1 A connection to the Database Instance 'db' > could not be created. Error: Connection refused: connect > > Else if my URI is "xmldb:xindice://localhost:8080/db/addressbook" > XML:DB Exception occurred 1 A connection to the Database Instance 'db' > could not be created. Error: http://localhost:8080/db_bootstrap.ior > > Commandline xindice and "Ugly" web browser have no problems "connecting" > to /db. > > I really need to move past this problem (and on to the next!) Hope you > can help... > > Thanks, > Lisa McCabe > > ----- Original Message ----- > > *From:* Lisa McCabe <mailto:[email protected]> > *To:* [email protected] > <mailto:[email protected]> > *Sent:* Monday, June 20, 2005 4:48 PM > *Subject:* Please help me run Example1 > > Hi, > > I am having trouble getting Example1 to work correctly. I am using > Xindice 1.1b4 with Tomcat V5. > > Example1 runs but gives me the following: > > XML:DB Exception occurred 1 A connection to the Database Instance > 'db' could not be created. Error: http://localhost:8888/db_bootstrap.ior > > Xindice commandline works fine. And I can view /db through the "Ugly > Browser". > > I also get basically the same error when I try to run XindiceBrowser. > > I have read through some old xindice-users problem emails, looking > for similar problems. I have found one saying that db_bootstrap.ior > indicates that I am using Xindice 1.0 client and Xindice 1.1 Server. > Since I downloaded Xindice binary in one .zip, I am not sure how I > could have that problem. Another email said it could be a CLASSPATH > problem. I think I now have every .jar file on the planet in my > classpath but the email indicated xmlParserAPIs.jar and > xercesImpl.jar (not xerces.jar), I could find neither of those. > > Is there anyone out there who could help me with this problem???! > > Need help, > Lisa McCabe > > Thanks a bunch in advance!!