Amos Shapira wrote:
> [snip]
> The take-way I got from this is that the WEB-INF/classes of each web
> application is "private" to this application alone, which sounds
> reasonable to me. Is this true?
>
Yes.
If your application classes live in JAR files, you can also put them (the JAR
files themselves) under WEB-INF/lib -- all the classes in all these JAR files
will also be made available to that web application privately -- same as the
unpacked classes under WEB-INF/classees.
>
> 2. The other problem we encountered yesterday is that we updated the
> .class files of one of the web applications (but not the other), and
> in the process changed a few method names. This caused the un-updated
> web application to complain about missing methods. Updating the JSP
> file to call the new method names from the classes directory of the
> updated web application fixed the problem.
>
> So now we are confused - are the WEB-INF/classes directories of each web
> application available to all web applications on the same servlet engine
> or not? How can I manage separate versions of class files for each
> web application?
>
When the JSP page was compiled, it had the old method names in it. Changing
the underlying classes does *not* cause the JSP page to be recompiled, so it
still referred to the old names.
The same thing can happen in general Java programming if you change and
recompile one class, but do not recompile some other class that depends on it.
That's why most build environments have the option to "recompile everything",
so you can detect such cases.
>
> Either way, how do others tuckle deployment of multiple web applications
> on a single servlet engine? And what about use of JNI in servlets?
>
> Thanks,
>
> --Amos Shapira
> WebCollage
>
Craig McClanahan
___________________________________________________________________________
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