Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Server problems

 
Tom Diamond
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello people,
I am testing my .jsp pages with Apache Tomcat Server ver. 4.0 Beta 5. But if I make a change to a page and try to reload it the server sends the old one. Where does it store old pages (so I can clear them every time I make a change)?
Any ideas?
Thanx,
Tom.
 
kichu kichu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi tom,
The old pages are stored in "tomcat\work" folder.Delete the contents of this folder and try again.
alternatively you may also clear your browser cache and history.
regards,
kichu
 
Tom Diamond
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I tried that (clearing the work dir) but the server reloads only the .jsp page. If I use another class in my page (jsp:useBean) and change that class the server keeps the old one.
Anything I can do for that?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Because Tomcat's ClassLoader loads the beans and classes called in jsp at starting (same thing with an application).
The jsp is loaded each time that it modified.
 
kichu kichu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have been using tomcat 3.2.1 now for a long time.I tried the new beta version for some time,but i found out that the older version was more stable.
I think you should not do any development work using a beta version as it is bound to have a number of bugs.
Install an older version from==>
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/
regards,
kichu(the choice is yours!)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic