At 09:36 AM 7/14/99 , you wrote:
> This is probably a foolish question, but I have spent so much time
>trying to figure it out with little to show for it that I have to try
>something. I'm new to servlets, but I've read Hunter's servlet book.
> I'm working with Websphere Application Server. I have two servlets A &
>B. There is a separate shared class, call it C that A & B use.
> Everything works as I expect it to. The problem is that if I change
>servlet B and place it on the server, when the newly loaded servlet B
>tries to use class C it throws a ClassNot Found exception. Is my
>thinking wrong? If C has not changed, I should not have to unload A
>because of a change in B. The only way I can get it to work is to unload
>A&B twice and then it works. This might be a dumb question, but I can't
>seem to figure out what is happening. If my logic is sound, then I know
>I have to focus on my code. If anyone can share any thoughts or even
>point me to an article or book that would explain how this is supposed to
>work I would appreciate it. Thanks.
>
This sounds like a servlet engine problem - I have only done a little
servlet programming, and only with ServletExec & NES, but the worst we had
to do was restart NES to get ServletExec to restart which in turn got it to
recognize the new class. This was mostly because we were doing testing and
wanted to see the changes immediately. Often if we left it alone SE would
eventually recognize that a class had changed and load the new instance of it.
FWIW,
LCB
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html