• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting up ROOT application ... What have I done?

 
Ranch Hand
Posts: 409
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to set up a web page as the root application that would not be accessible via http://localhost:8080
I know that I previously set up something to redirect this root application to another file in another directory. But I don't remember what I did and can't find it ... seriously, I've been looking all over and searching through files etc. Can't find the redirect.

Anyway ... I copied a directory under webapps (it's more than just one html file) and renamed the directory ROOT. The old ROOT has been renamed ROOT_BAK and moved elsewhere (because tomcat wanted to deploy it).
Tomcat has not deployed the new ROOT and will not accept /ROOT as the context path when I try to deploy it through the manager.
Whenever I try http://localhost:8080, it still redirects to the other application (so it must be explicit somewhere).

What have I done?

Edit: More info

When in Tomcat manager, I can click on '/' in the deployed app list and it goes to the redirected application. Also; ... now must say this is the first time I've tried to set up an app. as the root app ... not really sure anymore whether it's supposed to be in the /ROOT directory?

Checked the logs:
 
Roger F. Gay
Ranch Hand
Posts: 409
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can also feel free to tell me about a good way to search for "/MyApp/test.htm" within all files including in all subdirectories in Windows 7 ... just to be sure.
 
Roger F. Gay
Ranch Hand
Posts: 409
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
UPDATE: I reinserted the original, but somewhat modified, ROOT directory. The error above no longer exists. I got rid of the index.jsp and included my own very simple index.htm. When I go to the site using the external IP, the new index.htm is displayed. However, when I switch to localhost, it redirects again as before.
 
I have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic