Re: Tomcat 7.0.39 windows service setenv not used
Thanks!, so there is no other way to set these except to put in registry via tomcat7w.exe. On Wed, Apr 24, 2013 at 4:50 PM, Konstantin Kolinko wrote: > 2013/4/25 Satyendra Singh : > > I have created multiple windows services and for one of the service, i > have > > -Dcatalina.base=C:\servers\applications\service1 > > -Dcatalina.home=C:\servers\apache-tomcat-7.0.39 > > > > i have C:\servers\applications\service1\bin\setenv.bat where i have > > > > set JAVA_HOME= C:\ > > > > Set JAVA_OPTS=-D.. > > > > set CATALINA_OPTS=-Xms. > > > > running service1 does not seem to use these values, it only use those > that > > i can see at tomcat7w.exe on this service. > > > > > As documented, > [quote] > All the environment variables described here and the "setenv" script are > used only if you use the standard scripts to launch Tomcat. For example, if > you have installed Tomcat as a service on Windows, the service wrapper > launches Java directly and does not use the script files. > [/quote] > > http://tomcat.apache.org/tomcat-7.0-doc/RUNNING.txt > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
RE: Tomcat 7.0.39 windows service setenv not used
> From: Satyendra Singh [mailto:satya...@gmail.com] > Subject: Tomcat 7.0.39 windows service setenv not used > running service1 does not seem to use these values, it only use those that > i can see at tomcat7w.exe on this service. Services do not use _any_ .bat scripts, nor any environment variables. All properties must be configured in the tomcat7w.exe program associated with each service, which then stores the values in the Windows registry for use when the service is started. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7.0.39 windows service setenv not used
2013/4/25 Satyendra Singh : > I have created multiple windows services and for one of the service, i have > -Dcatalina.base=C:\servers\applications\service1 > -Dcatalina.home=C:\servers\apache-tomcat-7.0.39 > > i have C:\servers\applications\service1\bin\setenv.bat where i have > > set JAVA_HOME= C:\ > > Set JAVA_OPTS=-D.. > > set CATALINA_OPTS=-Xms. > > running service1 does not seem to use these values, it only use those that > i can see at tomcat7w.exe on this service. > As documented, [quote] All the environment variables described here and the "setenv" script are used only if you use the standard scripts to launch Tomcat. For example, if you have installed Tomcat as a service on Windows, the service wrapper launches Java directly and does not use the script files. [/quote] http://tomcat.apache.org/tomcat-7.0-doc/RUNNING.txt - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org