0

I have an application deployed in Tomcat 7. Now there is one application called studentManagement

Till now I open application by entering the http://{IPAddress}/studentManagement

Now, I want to open that application by just entering the IPAddress only.

Krish
  • 3
  • 1
  • You are basically trying to set the root application to run in tomcat to your application... you can do that by following a previous post http://stackoverflow.com/questions/715506/tomcat-6-how-to-change-the-root-application – AurA Jul 17 '13 at 09:19

2 Answers2

1

Replace your application as the ROOT.war so it by default loads when only the IP address is loaded. Consider the fact that also when you deploy it, later if you want to apply a patch to without restarting you can just ROOT##0001.war.

There are a number of solutions you can follow here.

Community
  • 1
  • 1
David
  • 19,577
  • 28
  • 108
  • 128
1

If you cannot rename the application, you can add the following to Server/Service/Engine/Host in TOMCAT_HOME/conf/server.xml

<Context path="" docBase="NAME-OF-DIRECTORY-UNDER-WEBAPPS">
  <WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>
Chris J
  • 370
  • 2
  • 8