You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by xindice <xi...@email.it> on 2002/12/27 19:36:37 UTC

configuring Tomcat for Xindice

Hi all,
first of all "HAPPY NEW YEAR" to all of you.
Then I have a problem in using xindice together with Tomcat. 
I'm using Tomcat 4.1.12.
I tried to follow the instructions in the "Xindice Tomcat How-To" document  (http://xml.apache.org/xindice/community/howto/installation/tomcat.html) 
and at the point 3.2 I read 
Edit the Tomcat server.xml File ...
Unfortunately there is only a note that doesn't really help. I mean that I don't know exactly how to insert the XINDICE_HOME/dist/xindice-1.1b.xml entry into the CATALINA_HOME/conf/server.xml file.

Does anybody can help meeeeeeeeeeeeeeeeeeeee?

*************************
I'll be very glad if you have any other suggestion about the marriage between Tomcat and Xindice.
*************************

Thanks in advance
Francesco


--
Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f

Sponsor:
Cerchi un regalo utile ed originale? Regala Email.it PRO15 o Pro50, la casella di posta professionale.
Clicca qui: http://adv2.email.it/cgi-bin/foclick.cgi?mid=1047&d=27-12

Re: configuring Tomcat for Xindice

Posted by Gianugo Rabellino <gi...@apache.org>.
Dave Viner wrote:
> Yes, if you want to change the location of the database, then you are
> correct.  You need to unjar the .war file, and edit the system.xml.  

Not anymore. With the current CVS you can export the system property 
xindice.db.home and point it wherever you want. A "db" directory will be 
created there, containing the database.

Ciao,

-- 
Gianugo Rabellino


RE: configuring Tomcat for Xindice

Posted by Dave Viner <dv...@yahoo-inc.com>.
Yes, if you want to change the location of the database, then you are
correct.  You need to unjar the .war file, and edit the system.xml.  I can
write to my ./db directory without a problem.  It sounds to me like you have
a permissions problem with your tomcat installation.  but that's just a
guess.

And, for #2, to do app specific logging, there is additional config required
inside the AppManager.  I have setup some of it, but as yet, I haven't found
that logs contain useful information.  I must have done something wrong tho
because I don't see any Xindice specific logging going on.

If using Jetty is easier, can someone add an installation howto on using it?

dave


-----Original Message-----
From: Joan M Carroll [mailto:jcarroll@world.std.com]
Sent: Friday, December 27, 2002 11:38 AM
To: xindice-users@xml.apache.org
Subject: RE: configuring Tomcat for Xindice



hi dave -

can you correct me where i'm wrong:
i thought that tomcat had to be coaxed to
do 2 things properly:

1) establish desired Xindice dbroot
2) do app-specific logging


NOTE: i also had a problem that tomcat wasn't
automatically unpacking war for me (RPM version) ...
...just as well:

for #1 - i found that i needed to unjar the war file
(anyway) so that i could edit the system.xml.
i have never been able to modify the Xindice db
when it is located in "./db" (perhaps my webuser
authority is weak ... i haven't checked ... i didn't
want the db in the path of my next un-jarring
either  ... i know you mentioned you are
using apache + tomcat ... are you able to execute
xindice commands to modify the default './db'?)


for #2 - i added a logger to tomcat's server.xml.
...then i found out that vladimir had a template
for this already in CVS:

pls see his mention of xindice-1.1b.xml file in
http://marc.theaimsgroup.com/?l=xindice-dev&m=103826952515884&w=2


i'm using jetty now, but i'm curious to find out
if life in the tomcat lane is much easier than i thought..

thanks!
j

On Fri, 27 Dec 2002, Dave Viner wrote:

> try restarting your tomcat.  there is a good chance that tomcat will just
> "Do The Right Thing".
>
> dave
>
>   -----Original Message-----
>   From: xindice [mailto:xindice@email.it]
>   Sent: Friday, December 27, 2002 10:37 AM
>   To: xindice-users
>   Subject: configuring Tomcat for Xindice
>
>
>   Hi all,
>   first of all "HAPPY NEW YEAR" to all of you.
>   Then I have a problem in using xindice together with Tomcat.
>   I'm using Tomcat 4.1.12.
>   I tried to follow the instructions in the "Xindice Tomcat How-To"
document
> (http://xml.apache.org/xindice/community/howto/installation/tomcat.html)
>   and at the point 3.2 I read
>   Edit the Tomcat server.xml File ...
>   Unfortunately there is only a note that doesn't really help. I mean that
I
> don't know exactly how to insert the XINDICE_HOME/dist/xindice-1.1b.xml
> entry into the CATALINA_HOME/conf/server.xml file.
>
>   Does anybody can help meeeeeeeeeeeeeeeeeeeee?
>
>   *************************
>   I'll be very glad if you have any other s! uggestion about the marriage
> between Tomcat and Xindice.
>   *************************
>
>   Thanks in advance
>   Francesco
>   ----
>   Prendi GRATIS l'email universale che... risparmia: clicca qui
>
>   Sponsor:
>   Cerchi un regalo utile ed originale? Regala Email.it PRO15 o Pro50, la
> casella di posta professionale.
>   Clicca qui
>
>




RE: configuring Tomcat for Xindice

Posted by Joan M Carroll <jc...@world.std.com>.
hi dave -

can you correct me where i'm wrong:
i thought that tomcat had to be coaxed to
do 2 things properly:

1) establish desired Xindice dbroot
2) do app-specific logging


NOTE: i also had a problem that tomcat wasn't
automatically unpacking war for me (RPM version) ...
...just as well:

for #1 - i found that i needed to unjar the war file
(anyway) so that i could edit the system.xml.
i have never been able to modify the Xindice db
when it is located in "./db" (perhaps my webuser
authority is weak ... i haven't checked ... i didn't
want the db in the path of my next un-jarring
either  ... i know you mentioned you are
using apache + tomcat ... are you able to execute
xindice commands to modify the default './db'?)


for #2 - i added a logger to tomcat's server.xml.
...then i found out that vladimir had a template
for this already in CVS:

pls see his mention of xindice-1.1b.xml file in
http://marc.theaimsgroup.com/?l=xindice-dev&m=103826952515884&w=2


i'm using jetty now, but i'm curious to find out
if life in the tomcat lane is much easier than i thought..

thanks!
j

On Fri, 27 Dec 2002, Dave Viner wrote:

> try restarting your tomcat.  there is a good chance that tomcat will just
> "Do The Right Thing".
>
> dave
>
>   -----Original Message-----
>   From: xindice [mailto:xindice@email.it]
>   Sent: Friday, December 27, 2002 10:37 AM
>   To: xindice-users
>   Subject: configuring Tomcat for Xindice
>
>
>   Hi all,
>   first of all "HAPPY NEW YEAR" to all of you.
>   Then I have a problem in using xindice together with Tomcat.
>   I'm using Tomcat 4.1.12.
>   I tried to follow the instructions in the "Xindice Tomcat How-To" document
> (http://xml.apache.org/xindice/community/howto/installation/tomcat.html)
>   and at the point 3.2 I read
>   Edit the Tomcat server.xml File ...
>   Unfortunately there is only a note that doesn't really help. I mean that I
> don't know exactly how to insert the XINDICE_HOME/dist/xindice-1.1b.xml
> entry into the CATALINA_HOME/conf/server.xml file.
>
>   Does anybody can help meeeeeeeeeeeeeeeeeeeee?
>
>   *************************
>   I'll be very glad if you have any other s! uggestion about the marriage
> between Tomcat and Xindice.
>   *************************
>
>   Thanks in advance
>   Francesco
>   ----
>   Prendi GRATIS l'email universale che... risparmia: clicca qui
>
>   Sponsor:
>   Cerchi un regalo utile ed originale? Regala Email.it PRO15 o Pro50, la
> casella di posta professionale.
>   Clicca qui
>
>



RE: configuring Tomcat for Xindice

Posted by Dave Viner <dv...@yahoo-inc.com>.
try restarting your tomcat.  there is a good chance that tomcat will just
"Do The Right Thing".

dave

  -----Original Message-----
  From: xindice [mailto:xindice@email.it]
  Sent: Friday, December 27, 2002 10:37 AM
  To: xindice-users
  Subject: configuring Tomcat for Xindice


  Hi all,
  first of all "HAPPY NEW YEAR" to all of you.
  Then I have a problem in using xindice together with Tomcat.
  I'm using Tomcat 4.1.12.
  I tried to follow the instructions in the "Xindice Tomcat How-To" document
(http://xml.apache.org/xindice/community/howto/installation/tomcat.html)
  and at the point 3.2 I read
  Edit the Tomcat server.xml File ...
  Unfortunately there is only a note that doesn't really help. I mean that I
don't know exactly how to insert the XINDICE_HOME/dist/xindice-1.1b.xml
entry into the CATALINA_HOME/conf/server.xml file.

  Does anybody can help meeeeeeeeeeeeeeeeeeeee?

  *************************
  I'll be very glad if you have any other s! uggestion about the marriage
between Tomcat and Xindice.
  *************************

  Thanks in advance
  Francesco
  ----
  Prendi GRATIS l'email universale che... risparmia: clicca qui

  Sponsor:
  Cerchi un regalo utile ed originale? Regala Email.it PRO15 o Pro50, la
casella di posta professionale.
  Clicca qui