logo       

Re: Please help me run Example1: msg#00038

Subject: Re: Please help me run Example1
Yeah the addressbook example is webapp.

Once Xindice is running inside tomcat you will beable to access it from simple java code but the addressbook is just a jsp example. If you have the code that your having trouble getting to work post to the list and I can take a look.

Todd

Lisa McCabe wrote:
Hi Todd,

Thank you for your response.

I forgot to say that I am running on Windows. I just downloaded the .zip
file and will take a look at the example files.

Are you saying that I should build a .war file then deploy it in tomcat and
run it like a webapp? I was hoping to be able to access xindice from a java
program. I will try what you suggest.

Thanks again,
Lisa

PS  I still think I may simply have a CLASSPATH problem.

----- Original Message -----
From: "Todd Byrne" <byrne@xxxxxxxxxxxxxxx>
To: <xindice-users@xxxxxxxxxxxxxx>
Sent: Thursday, June 23, 2005 12:18 PM
Subject: Re: Please help me run Example1



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:lmccabe@xxxxxxxxxxxxx>
   *To:* xindice-users@xxxxxxxxxxxxxx
   <mailto:xindice-users@xxxxxxxxxxxxxx>
   *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!!



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe