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]