Thanks for the reply George,

Scratch directories are not a problem. I am able to set the
workDir="C:\mywork". However, this is not generic enough. I've tried
workDir="~/mywork", but that simply places a directory named "~" in
CATALINA_HOME.

You suggest creating a CatalinaBase directory. And that makes sense to cover
all the output (work, logs, etc). But the question remains; Can I set
CATALINA_BASE to a generic location (such as the user home directory or the
OS temp space)?

Thanks in advance,
Alex

--------- Forwarded message ----------
From: "George Sexton" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <users@tomcat.apache.org>
Date: Mon, 20 Feb 2006 11:24:46 -0700
Subject: RE: Tomcat running from CDROM
Since the spec requires some directories (work, tmp) be writable this won't
work. The best solution would be to create a stub "CatalinaBase" directory
and put on the workstation in the temp directory, and then set CatalinaHome
to the CDROM and run it that way.



George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Alexander E Genaud
> Sent: Monday, February 20, 2006 3:07 AM
> To: users@tomcat.apache.org
> Subject: Tomcat running from CDROM
>
> Hello,
>
> I am attempting to place a web application on a CDROM,
> without requiring further installations by the end user.
> Does anyone have experience doing this?
>
> I have been playing with Tomcat and Jetty,
> but have been most satisfied with Tomcat.
>
> Is it possible to make Tomcat run readonly
> (disable temporary files, scratch directories, or logs),
> or to redirect those written files to the
> operating system's default temp/scrath area?
>
> I have tried to create a Context,
> but fail to understand where to put the Context node
> (filename nor directory).
>
> Modifying the system.xml Host (line 216) was successful:
>
> ...
> <Host name="localhost" debug="0" appBase="webapps"
>       unpackWARs="true" or_rather_unpackWARs="false"
>       autoDeploy="true"
>       xmlValidation="false" xmlNamespaceAware="false"
> workDir="myworkdir" or_workDir="C:\myworkdir">
> ...
>
> However, I would need to set something more generic
> (for Unix, Mac OS X, and Windows)
> such as workDir="$SYSTEM_TEMP_DIR/myworkdir".
> Is that possible?
> I expect the same can be done for the Logger(s).
> Is there anything else that gets written during runtime?
>
> Thanks in advance,
> Alex
>
> Please send your reply to:
> ( lx at pobox point com )
>
> ===
>
> For completeness and posterity:
>
> I've converted all JSP's to Servlets,
> removed all but my webapp, balancer, and static pages, and
> run Tomcat from an alternate JRE (rather than JDK) on disk.
>
> I have placed a Context in server.xml (line 144) to no effect:
>
> ...
> <Engine name="Catalina" defaultHost="localhost" debug="0">
> <Context workDir="myworkdir" docBase="mywebapp" ></Context>
> ...
>
> Anywhere else and Tomcat may fail to start.
>
>
>
> --
> Alex
> --
> Those who can make you believe absurdities can make you
> commit atrocities
> -- François Marie Arouet (Voltaire)
> http://cph.blogsome.com
> http://genaud.org/alex/key.asc
> --
> CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to