#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    361
    Rep Power
    13

    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. #2
  3. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    You need to add
    Code:
    reloadable="true"
    to your <Context> tag in your server.xml file.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    361
    Rep Power
    13

    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.
    Little more than a playground for the bugs that live beneath us...
  6. #4
  7. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    no problem

IMN logo majestic logo threadwatch logo seochat tools logo