#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    4
    Rep Power
    0

    Problem with tags


    Hi. I'm having a problem with my TAG on a JSP page. It seems as if once there's a bug in my tag code, no matter what I do to change the code (including taking all the code out of the TAG so that it does nothing), the tag will never again work on my page. The funny thing is that it starts off working fine. But as I add to the tag and make an error in the java code, the tag never again works. It gives this error:

    java.lang.ClassCastException: java.lang.String

    The thing is that I'm not casting any value. And even when the tag contains nothing in doInitBody() and doAfterBody(), I still get the error.

    Any ideas?

    Thanks!
  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
    It sounds like it might be an issue with your app server not refreshing resources when they change. I haven't done any tag development, though, so it could be something different.

    What app server are you using?
    -james
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    4
    Rep Power
    0
    Im using Tomcat 4. something.
  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
    Try setting the reloadable attribute in your <context> to "true".

    This will be in your server.xml file.
    -james
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    4
    Rep Power
    0
    I've tried that.

    Thanks.
  10. #6
  11. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    Does the problem go away after you restart the app server? Temporarily, at least.
    -james
  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    4
    Rep Power
    0
    No it doesn't.

IMN logo majestic logo threadwatch logo seochat tools logo