Settings not applied when initializing Tomcat

Asked

Viewed 325 times

1

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

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

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

When executing the tomcat.exe, it ignores the startup settings of catalina.bat?

1 answer

0


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

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

  1. Open only Tomcat bin
  2. Run the command tomcat6w /ES//Service name_do_windows in CMD
  3. Click on the Java tab
  4. In the java options text box, add java_opts desired.
  5. Restart service to apply changes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.