Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 8th, 2002, 08:40 PM
ghatzhat ghatzhat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 361 ghatzhat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 5 sec
Reputation Power: 7
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...

Reply With Quote
  #2  
Old October 8th, 2002, 10:22 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
You need to add
Code:
reloadable="true"

to your <Context> tag in your server.xml file.

Reply With Quote
  #3  
Old October 8th, 2002, 10:58 PM
ghatzhat ghatzhat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 361 ghatzhat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 5 sec
Reputation Power: 7
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.

Reply With Quote
  #4  
Old October 9th, 2002, 10:37 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
no problem

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > editing beans - make changes take effect


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway