-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 David,
On 8/21/14, 9:40 PM, David Kerber wrote: > On 8/21/2014 6:18 PM, André Warnier wrote: >> Caldarale, Charles R wrote: >>>> From: Neven Cvetkovic [mailto:neven.cvetko...@gmail.com] >>>> Subject: Re: question on different version of tomcat running >>>> on the same pc >>> >>>> Hope this helps. >>> >>> You deserve a medal for the clear and precise descriptions. >>> Would you consider adding this to the Tomcat Wiki, perhaps on >>> this page? http://wiki.apache.org/tomcat/HowTo#Installation >>> >> +1 >> >> Now all that's left to do is for someone to make a version of >> this that works for installing and starting the same as Windows >> Services. >> >> Despite what Christopher wrote - which is basically right - there >> is still some tricky element there, in that you cannot set the >> "system-wide" environment variables JAVA_HOME, CATALINA_HOME and >> CATALINA_BASE. If you do, then each of the respective (tomcat6, >> tomcat7, tomcat8) "service.bat" will use the set values, and >> never prompt for another. I have not actually tested this >> scenario, but looking at the code of the "service.bat" file, I >> believe that in case you install multiple Tomcat services, there >> is a potential for misbehaving there (for example, it requires >> JAVA_HOME to be set, but which one ?). > > I think the intent of the instructions was to allow you to run any > of them, but start them at different times, changing the > environment variables as appropriate before starting each one. > Once an instance is started, I believe it's safe to change the env > var's to start the next one. No, once the service had been configured the environment variables don't mean anything. So, if you set CATALINA_HOME and CATALINA_BASE and then call service.bat (which installs the service) then you can start/stop the service whatever way you want and it will remember those settings. You can set up any number of services and operate them independently without doing anything with the environment. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJT96tjAAoJEBzwKT+lPKRYoJEP/21VbIBVtIWXddvs/IkKoCTF KrWHc6zTnOHS2WkSH+ymnsPnNYkIAM5WPjMi3HLF7mq49yJrKFfrETkA+ZpTQv2i fHNtGW6XoRnj2vzIC/H6+WmrX64x967tSNmBYVmL9YIb3S3SA499x7x2S1vt7p9Q 38knuk6tx3XMFtcxLDvbssxa75czs9FFx4uz11ctTENxKY73nIEXrWw0DM+Q6ZP2 XIshZTSAZ4bcwrDdjeaSI9TZE5+bjzpkO+YbPu7FPPCeTR50IcfoKe4BPKPuPWQw zO0Tri2HLuBq1XMUajYYmpHrgc+5qGytrbJLlKr4V0Bz2GImXncYL/QBzbjQforR M0iGnHGR+mtmELb3bRW9/ouMPYXLYztennySGFEvx19RY3iqWUXj91739gOooglc OIjoMcA2gDq2zg3RY9KMXo9quCUshNorP55IgD6gh/6aOn9GCUG7APmE6QP+4KHf 5VY5hXV9H8gndrUvHgcwJ+LIKUgBMcpP49i3ol+1yKO8s5dswybu299vQ19W1Csc L96Ymb6AwHjMcblWDFMrwgBU2SmeExJNyIl49CwLkgcXpldxLJibUDLe2LhaRcl3 RE4m03db85MENnAX8cbsXDEqM+kSMpqUXpQ4l4kQy7Q8bwLSixrGhqpPifJTB3gy NS3BueBGNeqrixOm8SvL =wP0G -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org