That is pretty much what i do, but I recommend that you adopt an overlay approach. It will make it easy for you to take new versions of Tomcat when they are available.
Here is how I currently deploy to Solaris. (1) I use a blessed tomcat distribution from http://tomcat.apache.org/download-60.cgi (2) I build a tarball that contains files to be installed relative to the tomcat directory - bin/setenv.sh - to configure the environment. - conf/server.xml - to configure tomcat hosts - conf/tomcat-users.xml - to enable a user for jmx and the manager - conf/context.xml - to configure the context. - Catalina/<domainname>/manager.xml - to manage my domain. - lib/*.jar - common jar files - poi, lucene, log4j, etc. - webapps-wars/ROOT.war - my webapp - I separate the base in server.xml (3) I have an installation script that always assumes that there is either a previous install or a fresh installation of Tomcat. - stops tomcat. - makes sure that examples and other default tomcat applications are removed. - changes the directory to the tomcat base. - untars the tarball over tomcat. - modifies the jvmroute in the conf/server.xml so my apache front ends can load balance with mod_jk. If you can use cygwin then you may be able to create a single script for both Windows and Linux. Regards, Dave On Jul 13, 2010, at 8:23 AM, Noah Cantor wrote: > Hello, I would like to deploy Tomcat bundled with a few applications (both > webapps and non-web applications). Preferably, this would all be stored in > one file (be it a jar, ear, or any other format), and upon decompressing, I > could simply run a script that would activate the server, load the webapps > onto the server, and launch the non-web applications. My first question is > how can I package Tomcat along with all other necessary source/class files, > scripts and whatnot. I would be interested in packaging via Eclipse, but > any other method would be fine as well. > > I am currently running Tomcat v6.0.18 on Windows XP, but I plan to deploy on > both Windows XP and Linux (various possible flavors). > > If more information is needed, please let me know, and I will reply as > quickly as I can. Thanks for your help. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org