You wrote....
======================================================
> To run multiple Struts-based apps in the same servlet container, you must
> copy the struts.jar file into the /WEB-INF/lib directory of each
> individual web app (along with copying the TLD files).
>
> Having struts.jar outside of the web apps (i.e. on some shared classpath
> somewhere) is guaranteed not to work.  The most common symptom is
> ClassNotFoundException when parsing, but that's only one of many things
> that will go wrong.  It is *much* more complex than just finding the DTD
> -- it has to do with the fact that shared classes cannot see classes
> loaded by the webapp class loader.
======================================================

We are using weblogic 5.1 and are constantly having issues to resolve with
class loading.  We are NOT placing our /classes and /lib etc inside of the
WEB-INF directory for reasons of simpifying migration from NT to UNIX.
Instead we have the entire application outside of the weblogic directory
starting at the root (C: for NT, and /whatever for UNIX).  Our scripts point
to the correct places so weblogic and the java classloader can find them to
load.  We only have one web application now, however, and will for the
forseeable future.  I bring all this up because we load some classes in
separate class loaders, and other classes are loaded by both!  We need to do
this because of this setup.  I dont know what all the consequences of this
are, but I just read an article about classloading where it suggests using
".ear" files to remedy this classloading issue.  Could you please comment.
http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html



Reply via email to