Skip to main content

how to start an appli.automatically , while tomcat server starts.

1 reply [Last post]
Joined: 2007-04-15

i need to run an application automatically when tomcat server startup. simple hello world program. please help me out. for example, i am having one context in my tomcat webapps direc. now , i am having one class file inside the web-inf/classes. of my webapplication. now i neet this file run automatically , while tomcat server starts.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-11-12

If you want to deploy your project automatically, you can do that.
For the above you need to change the values in config files.

If you want to run the welcome page of your project, you need to run your own batch (.bat) file from the startCatalina.bat file, saying the command
Batch file seems like:

For MSIE browser
start iexplore (type your own uri here)

For Firefox browser
start firefox (type your own uri here)