GriffJon.com Blog

« 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 and removed the from around it, so tomcat would read the right web pages as my site.

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.)


Remember me?



Stylin'

Normal (Bloggish)
Default
Fire (FireFox Showcase)
GriffJon.com (Pages past)
GriffJon.com (Tribute to Dragon Warrior)
Printer-Friendly High-contrast

Calendar

October 2006
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Contact Me

email: (my name)  (`at')   G r i f f  J o n (`.dot')c o m
PGPPGP Key
efax:1.925.666.3613
IM
ICQ:16386214
Y!

MSN

AIM

GriffJon

Web
/.#14945
LJ:LiveJournal
Flikr:Photos

Disclaimer

My personal opinions do not necesarily reflect on my employers, schools, any government, U n i t e d   S t a t e s   P e a c e   C o r p s, my friends, or my family.

They may not even reflect my current opinions

Furthermore, these opinions do not unfairly influence any official decisions I make in my academic or professional work.

If you wish permission to reprint or reuse anything within these pages, I require that you contact me for permission. I'll likely give it to you, and probably even a link back.

Software, scripts, and configuration files downloaded from this website come with NO WARRANTY express or implied, and are for use AT YOUR OWN RISK. They are available under the GPL unless otherwise noted.