You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alexander E Genaud <lx...@pobox.com> on 2006/03/06 13:13:45 UTC

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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat on CDROM (it works!) Vicaya 0.1

Posted by Mikolaj Rydzewski <mi...@becomo.com>.
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  <mi...@becomo.com>
Becomo S.A.
tel. (12) 2927104