I have a design question I'm guessing someone has already tackled:
Description:
I'm developing an application that runs within Tomcat. All the JARs for
that application are in it's webapp/WEB-INF/lib, except for a few classes
that implement a Realm which referenced in server.xml. Because
On Fri, 5 Apr 2002, Mark Shaw wrote:
Date: Fri, 5 Apr 2002 15:29:04 -0800
From: Mark Shaw [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Design question: common/lib -- WEB-INF/lib
I have a design question I'm guessing
ClassLoader webappLoader =
Thread.currentThread().getContextClassLoader();
Class webappClass = webappLoader.loadClass(com.mycompany.MyClass);
This works because the container (Tomcat in this case) always sets the
thread context class loader to the one
for the webapp being executed on the
Craig, nevermind, it's because I was still casting the object using an
interface that wasn't in my common/lib.
-Original Message-
From: Mark Shaw [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 4:24 PM
To: 'Tomcat Users List'
Subject: RE: Design question: common/lib -- WEB-INF
/webappps/yourwebapp/web-inf/lib
Regards
Hemant
- Original Message -
From: Bo Xu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 08, 2001 7:02 PM
Subject: Re: /lib /WEB-INF/lib
eric ng wrote:
Hi,
In tomcat or other servlet engine implements the spec.
there are 2 place to put
PROTECTED]]
Sent: Thursday, February 10, 2000 4:27 PM
To: [EMAIL PROTECTED]
Subject: Re: /lib /WEB-INF/lib
HI:
If you have a jar which you are using in more than one web-apps than place
it under
/tomat/lib
so that tomcat do not reload the same jar more than once(I really surprise
how internally
eric ng wrote:
Hi,
In tomcat or other servlet engine implements the spec.
there are 2 place to put JAR files:
1) d:/tomcat/lib
2) d:/tomcat/webapps/abc/WEB-INF/lib
I wonder what's the difference putting JAR in the 2
directory? any performance difference? Should I always
put JAR into
Hi,
In tomcat or other servlet engine implements the spec.
there are 2 place to put JAR files:
1) d:/tomcat/lib
2) d:/tomcat/webapps/abc/WEB-INF/lib
I wonder what's the difference putting JAR in the 2
directory? any performance difference? Should I always
put JAR into web apps's own lib?
On Thu, 7 Jun 2001, eric ng wrote:
Hi,
In tomcat or other servlet engine implements the spec.
there are 2 place to put JAR files:
1) d:/tomcat/lib
2) d:/tomcat/webapps/abc/WEB-INF/lib
I wonder what's the difference putting JAR in the 2
directory? any performance difference? Should I