« Sorry, Citizen, the Computer says you can't be here | Main | IBM Commercial »
Tomcat taking over / overriding index.jsp?
February 11, 2005 ( geek )
So, I'm playing with a testing server running Apache2/Jakarta2/Tomcat4.1. After (lots of) tweaking, it works fine. Yay. Except the front page insists on being the tomcat server page ("You've successfully installed tomcat...") Not a problem, I think, and changed the server.xml Content path setting to
Still there.
Restarted tomcat, still there. restarted apache, still there. cleared my browser cache (just in case), still there. Bounced the server, still there. Reinstalled everything, in different orders, still there. Changed tc versions up to 5.0, still there (even with 5.0's fancier redirect xmls).
Back to scouring google, found a vague reference to a pre-compiled version of index.jsp in a jar (the jar wasn't there on my server). BUT, this led me down the right path.
After 3 days of scouring Google, Tomcat and Apache Docs, IRC channels and the brains of people more experienced than I with TomCat, I finally diagnosed the problem (with no help from the above sources).
If you keep getting the tomcat start page instead of the index.jsp you have designed, the problem is a precomiled copy of the index.jsp hanging around somewhere in tomcat. I found it to be in the work\Standalone\_\ directory relative to the tomcat directory. Stop topcat, delete these precomipled and cached files, start tomcat, and you're good to go.
I commit this to my blog in the hopes that Google will index it and save others the hassle.
Posted by griffjon at February 11, 2005 02:26 PM
Comments
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)