0

I am using Tomcat8. I deployed a war file by name admin.war.This resulted in my URL turning out to

http://localhost:8080/admin.

Nevertheless, I want the URL to be http://localhost:8080. So I tried adding the following inside /conf/server.xml as mentioned here.

< Context path="" docBase="Advocatoree" debug="0" reloadable="true" >

However, this did not work. Is there an alternative?

Community
  • 1
  • 1
Dhana
  • 505
  • 1
  • 8
  • 27
  • Possible duplicate of [Default web app in tomcat](http://stackoverflow.com/questions/5638787/default-web-app-in-tomcat) – f_puras Jul 13 '16 at 07:35

1 Answers1

0

Try to add a file called ROOT.xml in <catalina_home>/conf/Catalina/localhost/

And enter there the following:

<Context 
  docBase="yourAppName" 
  path="" 
  reloadable="true" 
/>

Now your application is default application on your server and you can access it with URL http://localhost:8080

Sergey Frolov
  • 1,317
  • 1
  • 16
  • 30