471,316 Members | 1,278 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,316 software developers and data experts.

jsp on Tomcat

Hi everyone,

I'm really new to jsp (and java). Is there a way to automatically pick up
newly compiled class files. I have a .jsp page which calls a class file
(using Beans). Everytime I modify the .java file my .jsp complains of
missing methods...etc. Once I restart the service everything becomes fine.
Is there a way to setup Apache Tomcat to automatically pickup the changes in
my class.

Thank you
Maz.
Jul 17 '05 #1
1 1829
Maziar Aflatoun wrote:
I'm really new to jsp (and java). Is there a way to automatically
pick up newly compiled class files. I have a .jsp page which calls a
class file (using Beans). Everytime I modify the .java file my .jsp
complains of missing methods...etc. Once I restart the service
everything becomes fine. Is there a way to setup Apache Tomcat to
automatically pickup the changes in my class.


Check the server.xml in the conf dir, to contain the following:

* In the <Host /> elements, the attribute autoDeploy should be present with
its value set to "true"

* <DefaultContext reloadable="true"/>

What will also help, is to touch the files, so Tomcat will detect updates.
HTH;
JW

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by SamMan | last post: by
4 posts views Thread by BigAl | last post: by
2 posts views Thread by kimbuba | last post: by
6 posts views Thread by DaiIchi | last post: by
5 posts views Thread by D E | last post: by
3 posts views Thread by danish | last post: by
4 posts views Thread by Edward V. Berard | last post: by
reply views Thread by Arun21084 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.