Two Laptop Bag*
The moose likes Tomcat and the fly likes Setting up ROOT application ... What have I done? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Setting up ROOT application ... What have I done?" Watch "Setting up ROOT application ... What have I done?" New topic
Author

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

Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 349
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:


Correlation does not prove causality.
Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 349
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

Joined: Feb 16, 2007
Posts: 349
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.
 
Consider Paul's rocket mass heater.
 
subject: Setting up ROOT application ... What have I done?
 
Similar Threads
Deploying .war file in tomcat
JBoss running ?
installation
Beginning J2EE. Cannot reach deployed EAR.
Beginning J2EE. Cannot reach deployed EAR.