>From: Christopher Schultz [mailto:ch...@christopherschultz.net] >Subject: Re: Multiple Tomcat Instances > >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Leo, > >On 6/16/2010 1:31 PM, Leo Donahue - PLANDEVX wrote: >> Tomcat zip dir: >> C:\ApacheTomcat\apache-tomcat-6.0.26\bin >> In here I created a setenv.bat that has the following: set >"CATALINA_BASE=%C:\Catalina_Base1%" > >That is going to be counter-productive, since any instance of Tomcat >using CATALINA_HOME=C:\ApacheTomcat\apache-tomcat-6.0.26\bin will end up >using CATALINA_BASE=%C:\Catalina_Base1% > >(BTW, %C:\Catalina_Base1% will give you the value of an environment >variable, instead of the path C:\Catalina_Base1, right?) > >Instead, I might suggest using a script like >C:\Catalina_Base1\startup.bat: > >@set CATALINA_BASE=C:\Catalina_Base1 >C:\ApacheTomcat\apache-tomcat-6.0.26\bin\startup.bat > >> C:\Catalina_Base1\conf >> ** I copied the contents of \conf from C:\ApacheTomcat\apache-tomcat- >6.0.26\conf >> ** I changed the shutdown port to 8006, HTTP port to 8081, and AJP >Port to 8010 in server.xml > >You can probably leave context.xml and web.xml in the original install >without copying them. I would recommend your own server.xml (required), >logging.properties (if you want something other than the default) and, >if necessary, catalina.policy. Let the base Tomcat install take care of >the other files. > >> Ok, so how do I get specify multiple CATALINA_BASE options in the >setenv.bat in C:\ApacheTomcat\apache-tomcat-6.0.26\bin? > >You don't :) See above. > >Hope that helps, >- -chris
Yes. After this exercise, I feel like I'm learning disabled.