javer
javer

Reputation: 23

How to set SPRING MVC web application context as ROOT (/) on Tomcat?

I have SPRING MVC web application (my.war). It deploys on Tomcat 6 server to http://host/my/ folder. How can I change this to be accessible this web application in http://host/ ?

Upvotes: 2

Views: 4523

Answers (3)

Ali.Mojtahed
Ali.Mojtahed

Reputation: 2587

remove ROOT folder and make your app as ROOT.war deploy it as ROOT folder

Upvotes: 0

Gennady Shumakher
Gennady Shumakher

Reputation: 5756

You need to deploy your web application as ROOT.war

Have a look at this post which describes the whole topic pretty well: http://benhutchison.wordpress.com/2008/07/30/how-to-configure-tomcat-root-context/

Upvotes: 1

Tomasz Nurkiewicz
Tomasz Nurkiewicz

Reputation: 341003

Look at the /ROOT directory under /webapps. In default installation it holds bunch of exploded JSPs and /WEB-INF subdirectory that are accessible from main context.

Upvotes: 0

Related Questions