• Post Reply Bookmark Topic Watch Topic
  • New Topic

Workin with ROOT  RSS feed

 
Jim Babcock
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay,

I've got a fresh install of 5.0.28 and I'm trying to replace $TOMCAT_HOME/webapps/ROOT/index.jsp with my own file (I've copied the tomcat files to $TOMCAT_HOME/webapps/tomcat, incase I need them) and no matter what I do, it still displays the original tomcat page. I'm getting a bit frustrated, here!

I've replaced, deleted restarted any number of times...

This is a single application server, all I want is control of /

Jimbus
 
B. Katz
Ranch Hand
Posts: 54
Chrome Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jim Babcock wrote:Okay,

I've got a fresh install of 5.0.28 and I'm trying to replace $TOMCAT_HOME/webapps/ROOT/index.jsp with my own file (I've copied the tomcat files to $TOMCAT_HOME/webapps/tomcat, incase I need them) and no matter what I do, it still displays the original tomcat page. I'm getting a bit frustrated, here!

I've replaced, deleted restarted any number of times...

This is a single application server, all I want is control of /

Jimbus


Have you tried stopping the server, going into $TOMCAT_HOME/work/Catalina/localhost/ and deleting everything there and then restarting the server? That is where the compiled jsp pages are held, and they normally don't get updated until the server detects a change within the page. Also, make sure that your browser isn't caching the page.... You can do that by holding down the 'Shift' key while clicking 'Refresh'/'Reload' on your browser.

Hope that helps.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally, I'd never do that. I always create new contexts for my web applications and leave the Tomcat contexts be.
 
B. Katz
Ranch Hand
Posts: 54
Chrome Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Personally, I'd never do that. I always create new contexts for my web applications and leave the Tomcat contexts be.


What's under the work/ directory is the converted .java and compiled .class files of the JSPs. It gets rebuilt as the server restarts. And, we have had a few instances where something would get stuck in there and wouldn't update even though the replaced file under webapps/ had a newer date than the file it replaced.

Just a thought.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!