Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

You ever want to run multiple instance of tomcats with the same install base, but tired of copy and setup server.xml file? Attached are couple Groovy scripts that help in those area:

new_tomcat_instance.groovy

Assume you have installed Tomcat6 or Tomcat5 in /opt/tomcat directory.

Run it again with mytomcat2, and it should configure to 8082 and so on...

Each new server instance will contains a ROOT webapp that list all other webapps for quick links.

Also, the server instance is configured with Tomcat manager webapp enabled with user admin. If you are in this stage, you ought to know where to look for your password. (smile)

Security

Icon
 

As stated in Tomcat documentation, enabling Tomcat manager is considered a security hole as it enable authenticated users to have total control over your webapps. It's enable in this script for the sake of easy setup and quick management.

To remove a install instance

new_webapp.groovy

This script will create a new webapp directory structure with all the Groovlet setup ready.

Start your server and you have a webapp ready to go!

  • No labels