Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running Apache Tomcat as a Windows Service under Windows 7. It is configured to run as connector using mod_jk. Hence I cannot use the "standard" Tomcat installer, since it ignore the mod_jk settings.

My registry contains an entry like:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tomcat6]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):43,00,3a,00,5c,00,74,00,6f,00,6d,00,63,00,61,00,74,00,5c,00,\
  62,00,69,00,6e,00,5c,00,74,00,6f,00,6d,00,63,00,61,00,74,00,36,00,2e,00,65,\
  00,78,00,65,00,20,00,2f,00,2f,00,52,00,53,00,2f,00,2f,00,54,00,6f,00,6d,00,\
  63,00,61,00,74,00,36,00,00,00
"DisplayName"="Apache Tomcat 6"
"DependOnService"=hex(7):54,00,63,00,70,00,69,00,70,00,00,00,41,00,66,00,64,00,\
  00,00,00,00
"WOW64"=dword:00000001
"ObjectName"="LocalSystem"
"Description"="Apache Tomcat 6.0.32 Server - http://tomcat.apache.org/"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tomcat6\Parameters]

Now I am trying to deploy an application WAR that requires some Java System Property, specifically "appserver.base" and "appserver.home".

Where can I specify these properties in order to be picked up Tomcat?

(I already tried putting them into the CATALINA_OPTS environment variable and also under Tomcat6/Parameters/Java without luck)

share|improve this question
    
Have you read this? tomcat.apache.org/tomcat-6.0-doc/… --environment is what you are looking for. –  fuero Jan 20 '13 at 10:29
    
@fuero Yes. I tried to use tomcat6.exe //US//Tomcat6 --JvmOptions="-Dsome.option=foo;-Danother.option=goo". Inspected the registry, nothing changed. After starting the server, the application still failed to initialize due to missing "appserver.base" system property. –  Adrian Herscu Jan 20 '13 at 11:46
    
I finally managed to add these parameters by manually launching the tomcat6w.exe (as an Administrator). Still, where these settings are registered is a mystery to me... Any suggestion for where it might be documented? –  Adrian Herscu Jan 20 '13 at 12:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.