|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
editing beans - make changes take effect
I'm writing a simple app that stores some data in a db. The presentation is handled by JSP pages, but i'm doing all the work within a bean or two.
During development, i change the .java file for the bean, recompile and then test my changes, but i often get e.g. NoSuchMethodError because the changes have not been found by the app. I've tried resaving th JSPs, closing the browser etc, but the only surefire way to solve the problem is to restart Tomcat... Can anyone clarify for me how I can ensure that my bean (which has session scope) gets unloaded and reloaded properly. Please excuse my terminological inexactitude - i'm new to the JSP game. I'm on Tomcat 4.0.4 which is handling the JSP requests for Apache 1.3.26 via mod_jk. I'm using j2sdk1.4.0 and it's all on Red Hat 7.3.
__________________
Little more than a playground for the bugs that live beneath us... |
|
#2
|
|||
|
|||
|
You need to add
Code:
reloadable="true" to your <Context> tag in your server.xml file. |
|
#3
|
|||
|
|||
|
many thanks
that's sped me up no end...
and apologies... it was something I could have worked out myself, wasn't it...! thanks again. |
|
#4
|
|||
|
|||
|
no problem
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > editing beans - make changes take effect |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|