tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Евгений Кузнецов <>
Subject Try to deploy war and keep access to my webapp in browser without entering context root name
Date Thu, 21 May 2015 15:56:21 GMT

I asked question in stakoverflow

I ll repeat it here:

I have a webapp (spring mvc 4 application) which code is placed in 
|tomcat-7/webapp/mywebapp/| folder. Webapp is accessed in browser with 
url |http://my-web-app.loc:8080| (i.e. without context root name 
|mywebapp| after port number). I have following setups in 

|<Host name="my-web-app.loc" appBase="webapps" unpackWARs="true" autoDeploy="true">
   <Context path="" docBase="mywebapp" reloadable="true" allowLinking="true" antiJARLocking="true"
copyXML="true" />
      <Valve className="org.apache.catalina.valves.AccessLogValve"
            resolveHosts="true" />

I delploy webapp by placing war-file into |/webapp| folder. But after 
war-file is unpacked and webapp is successfully deployed, I can access 
to webapp only with |http://my-web-app.loc:8080/mywebapp| url. Url 
|http://my-web-app.loc:8080| directs me to 404 tomcat error page.

What I have to setup to access to webapp with 
|http://my-web-app.loc:8080| url?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message