Design question: common/lib -- WEB-INF/lib

2002-04-05 Thread Mark Shaw
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

Re: Design question: common/lib -- WEB-INF/lib

2002-04-05 Thread Craig R. McClanahan
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

RE: Design question: common/lib -- WEB-INF/lib

2002-04-05 Thread Mark Shaw
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

RE: Design question: common/lib -- WEB-INF/lib

2002-04-05 Thread Mark Shaw
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