Configuration not applied when initializing Tomcat

1

I have a specific configuration to be performed on catalina.bat , and this configuration works perfectly when I start the application server by running the script catalina.bat (or startup.bat ).

However, when starting the windows service running Tomcat.exe , the setting is not applied, as if the catalina.bat script was not used by Tomcat.exe .

So what's the real difference between starting the application server with tomcat.exe and catalina.bat/startup.bat ?

When running tomcat.exe , does it ignore the catalina.bat initialization settings?

    
asked by anonymous 02.02.2015 / 20:15

1 answer

0

When tomcat is configured as a windows service, it does not run catalina.bat or startup.bat .

Instead, to add new parameters to java_opts , you should follow the steps below.

  • Open a simple bin from tomcat
  • Run the tomcat6w command on the CMD // ES // Windows_Service_Name
  • Click the Java tab
  • In the java options text box, add the desired java_opts on each line.
  • Restart the service to apply the changes.
  • 03.02.2015 / 15:32