Hi Joan,
        Well, as you can guess, my platform currently in windows... here's what 
I
know.

BUG #1
Once I've installed the xindice*.war file, Tomcat does NOT unpack the new
war file.  According to the Tomcat docs that I could find, it should.
"
Copy the web application archive file into directory
%CATALINA_HOME%/webapps/. When Tomcat is started, it will automatically
expand the web application archive file into its unpacked form, and execute
the application that way. This approach would typically be used to install
an additional application, provided by a third party vendor or by your
internal development staff, into an existing Tomcat installation. NOTE - If
you use this approach, and wish to update your application later, you must
both replace the web application archive file AND delete the expanded
directory that Tomcat created, and then restart Tomcat, in order to reflect
your changes"
from http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html

However, when I delete the webapps/xindice-1.1b dir, and put a new war file
in, tomcat doesn't start.  So the steps that I've been using are:

1. copy new war file from xindice_home to %CATALINA_HOME%/webapps
2. cd %CATALINA_HOME%/webapps/xindice-1.1b && jar -tf ../xindice-1.1b.war
3. re-edit the %CATALINA_HOME%/webapps/xindice-1.1b/WEB-INF/system.xml (if
you make any changes)
4. Reload the webapp from by accessing
http://localhost:8080/manager/html/reload?path=/xindice-1.1b


I too tried mucking w/ reloadable and other attributes, but I failed to find
any successful combination that did the right thing.

BUG #2
I don't have a tomcat4 script.  I installed the jakarta-tomcat-4.1.12.zip
from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/bin/
In the %CATALINA_HOME%\bin directory, I have:

D:\jakarta-tomcat-4.1.12\bin>dir
 Volume in drive D is Data
 Volume Serial Number is A3EB-9689

 Directory of D:\jakarta-tomcat-4.1.12\bin

11/20/2002  12:12p      <DIR>          .
11/20/2002  12:12p      <DIR>          ..
09/23/2002  11:23a              24,589 bootstrap.jar
09/23/2002  11:23a               7,400 catalina.bat
09/23/2002  11:23a               8,556 catalina.sh
09/23/2002  11:23a               9,034 commons-daemon.jar
09/23/2002  11:23a                 511 cpappend.bat
11/21/2002  05:02p      <DIR>          db
09/23/2002  11:23a               1,284 digest.bat
09/23/2002  11:23a                 848 digest.sh
09/23/2002  11:23a               2,546 jasper.bat
09/23/2002  11:23a               2,833 jasper.sh
09/23/2002  11:23a               1,199 jspc.bat
09/23/2002  11:23a                 795 jspc.sh
09/23/2002  11:23a               1,942 setclasspath.bat
09/23/2002  11:23a               1,661 setclasspath.sh
09/23/2002  11:23a               1,215 shutdown.bat
09/23/2002  11:23a                 787 shutdown.sh
09/23/2002  11:23a               1,216 startup.bat
09/23/2002  11:23a                 788 startup.sh
09/23/2002  11:23a              10,762 tomcat-jni.jar
09/23/2002  11:23a              65,536 tomcat.exe
09/23/2002  11:23a               2,168 tool-wrapper.bat
09/23/2002  11:23a               2,484 tool-wrapper.sh
              21 File(s)        148,154 bytes
               3 Dir(s)   6,080,847,872 bytes free

D:\jakarta-tomcat-4.1.12\bin>

So it appears to have both the *.bat and *.sh scripts for admininstrating.

QUESTION #1
I didn't have to edit anything in the configuration files of tomcat.  I just
copied the xindice-1.1b.war to the %CATALINA_HOME%\webapps dir, and
restarted tomcat.  All the right things just happened.


I too added a FileLogger (with great help from Vladimir).

dave

-----Original Message-----
From: Joan M Carroll [mailto:[EMAIL PROTECTED]
Sent: Monday, November 25, 2002 3:31 PM
To: [EMAIL PROTECTED]
Subject: RE: about writing howtos




On Mon, 25 Nov 2002, Dave Viner wrote:

> Hi Vladimir,
>       I agree with you.  We need more information in the HowTos for installing
> and using xindice and tomcat.  However, I personally like to take things
in

i am doing some updates to your doc 'fixme's for linux
and - before I needlessly go off on a tangent - i have a
couple questions for other linux users:

My Env: RH Linux v8
        JDK1.3.1_06
        Tomcat v4.1.12 (RPM distro)
        Cocoon v2.0.3 (binary)
        Xindice CVS

A) Tomcat v4.1.12

BUG #1
------
Tomcat won't unpack the $CATALINA_HOME/webapp/*.war files for me.
I have to do this myself.

I read the mailing list items on this, and i found 3 open
bugs on it in bugzilla.  i tried messing with 'reloadable' flag
etc but no joy.  Developers' notes: this is a 'feature' when
reloadable=true(?)

Unless someone knows of a correction that i haven't tried yet,
i plan to write the doc instructing users to use the standard
procedures (put .war in webapps), then add a note that they
*may* need to unpack the .war themselves etc. with v4.1.12
(according to dev, they *will* need to self-unpack if
reloadable flag is on ... tho mine is not ....)

Any help here w.b. much appreciated.

BUG #2
------
I never read any doc about the 'tomcat4' command, but my
distro did *not* come with startup/shutdown scripts.  After
nosing around, i found that 4.1.12 (RPM-only???) uses

 'tomcat4 [start]|[stop]|[whathaveyou]'

i consider this a doc bug.  however, i'm not sure if other
distros are still using scripts to stop/start the service.
again, i will make a note of it in the doc, unless i somehow
got hold of a weird&unusual tomcat rpm distro - plztellme;-o

QUESTION #1
-----------
i don't see instructions in our howto for editing
$CATALINA_HOME/conf/server.xml file.  does win need to?

tomcat neophytes (like me) may need some guidance here.
i am not an authority, i fudged my settings:

reloadable=false   (better performance & not needed)
crossContext=true  (being friendly w our friends)

then i associated a FileLogger just for yucks

(your comments r welcome)

B) cocoon 2.0.3 w tomcat 4.1.12  (i.e. not for Tomcat howto)

NOTE: i spinelessly installed the binary ver for my JDK

i get a SQLException when tomcat loads cocoon, complaining about
the 'cocoondb.properties'.  It is a File I/O error (and yes,
the modified property=no in the file)

checked buzilla and got 'Zarro Boogs found.'

i have ignored it, but - unless someone knows what's going
wrong - i will try to track down the problem before
writing the doc (geez doancha hate a 'howto' telling you to
ignore unknown errors...)


And that, my friends, is all i have to ask you about that.


Reply via email to