Mikolaj,

Thanks a lot for the code. I had to run through the ant code manually
because I downloaded the latest Tomcat 5.5.16, and merged the 1.4.2
compatibility patch. I was unable to get the exe to work, so I wrote a
.bat based on your .sh (which I will soon make more generic). How did
you create the EXE, by the way? You might be interested to see the
Vicaya project. The intent is to run off ANY platform with no
installation. It handles some very strange Windows drive
configurations, loads the appropriate JRE, etc.

Thanks again,
Alex


A NON GENERIC batch file is here:

mkdir C:\Temp\tomcattemp
set tmpfile="C:\Temp\tomcattemp"
mkdir C:\Temp\tomcattemp\work
set workdir="C:\Temp\tomcattemp\work"
set curodir=%cd%
set CATALINA_HOME=%curodir%/tomcat5516
set CATALINA_BASE=%curodir%/tomcat5516
set CATALINA_TMPDIR=%workdir%
set JAVA_HOME=C:\j2sdk1.4.2_11
call "%CATALINA_HOME%/bin/startup.bat"




From: Mikolaj Rydzewski <[EMAIL PROTECTED]>
To: Tomcat Users List <users@tomcat.apache.org>
Date: Mon, 06 Mar 2006 14:45:04 +0100
Subject: Re: Tomcat on CDROM (it works!) Vicaya 0.1
Alexander E Genaud wrote:
> I am running Tomcat 5.0 from a CDROM. In order for this to work on
> different platforms I've tweaked the configurations and create a small
> (100 KB) temp space on the user's hard drive for logs, work, java.io,
> and tomcat-users.xml. I've precompiled the JSPs and configured Tomcat
> to run with a JRE (classpath includes bootstrap.jar only).
>
I have similiar setup. Our production webapp with hsqldb works well
directly from CD. I have slightly modified Tomcat 5.5.12 to accomplish
this. You can find the 'magic' ant buildfile here:
http://www.ceti.pl/~miki/komputery/tomcat_demo/


--
Mikolaj Rydzewski  <[EMAIL PROTECTED]>
Becomo S.A.
tel. (12) 2927104


From: "Alexander E Genaud" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Date: Mon, 6 Mar 2006 13:13:45 +0100
Subject: Tomcat on CDROM (it works!) Vicaya 0.1
Hello,

I am running Tomcat 5.0 from a CDROM. In order for this to work on
different platforms I've tweaked the configurations and create a small
(100 KB) temp space on the user's hard drive for logs, work, java.io,
and tomcat-users.xml. I've precompiled the JSPs and configured Tomcat
to run with a JRE (classpath includes bootstrap.jar only).

Whenever I set CATALINA_HOME and CATALINA_BASE to different values,
Tomcat 5.0 will not start. As long as they are exactly the same, all
works well. I presume I am doing something incorrect. None the less, I
have gotten around this by creating several CATALINA_HOME's which
differ only in "conf/". In each server.xml I hard code the paths to
workDir, logs, etc. My start script locates an acceptable temp
location and starts the appropriate CATALINE_HOME.

For example if I can write to C:\Temp\mytemp, I set CATALINA_HOME to
servers/win_nt_c which contains a conf/server.xml pointing to C:\Temp.
On the other hand, if I can write to /tmp/mytemp, I set CATALINA_HOME
to servers/unix which contains a conf/server.xml pointing to
/tmp/mytemp. I also have another called servers/relative which uses
relative paths.

This hack actually works quite well, albeit resource wasteful:

http://sf.net/projects/vicaya

But this seems completely backward. Can anyone offer a better suggestion?

Also, I have been using Tomcat 5.0 because I am most familiar with it.
Does Tomcat 5.5 support Java 1.4.2 well? Some notes seem to imply that
Tomcat 5.5 has been designed for Java 5. Might Tomcat 5.5 offer a
better solution?

Thanks,
Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to