You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Satyendra Singh <sa...@gmail.com> on 2013/04/24 22:47:08 UTC

Tomcat 7.0.39 windows service setenv not used

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.

any help would be appreciated.

Thank You

RE: Tomcat 7.0.39 windows service setenv not used

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Satyendra Singh [mailto:satyaadk@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 7.0.39 windows service setenv not used

Posted by Satyendra Singh <sa...@gmail.com>.
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
<kn...@gmail.com>wrote:

> 2013/4/25 Satyendra Singh <sa...@gmail.com>:
> > 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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat 7.0.39 windows service setenv not used

Posted by Konstantin Kolinko <kn...@gmail.com>.
2013/4/25 Satyendra Singh <sa...@gmail.com>:
> 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org