Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

choosing my own webapp instead of ROOT on 5.5

 
seb petterson
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy!

On 5.0 i simply changed path in the context element in ROOT.xml under tomcat/conf/catalina/localhost/ROOT.xml to "/ROOT" and similarly in ...myWebApp.xml i changed the path property to "";

That way the webapp activated by an empty string as context path in the accessing url was myWebApp ant not the default ROOT webapp.

On 5.5 this doesn't work anymore. Can anyone help me on this?

Also I wonder, what is the preferred way of dealing with this, is it to just put your default webapp in the ROOT directory, or to make it work by configuring tomcat?

Thanks in advance!

Seb
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic