Oh, that makes perfect sense. Thanks Chuck. Regards, Kevin
2008/10/25 Caldarale, Charles R <[EMAIL PROTECTED]> > > From: Kevin SeongHyun Lee [mailto:[EMAIL PROTECTED] > > Subject: Re: How can I use a class in javax package from the > > jar file in WEB-INF/lib instead of the one in common/lib. > > > > Even if it is loaded first, I believe, it should work > > as both libraries are the same javamail > > What frequently happens is that some classes get loaded from both jars, but > since they're under different classloaders, the JVM treats them as different > classes. When code in one class tries to utilize instances created from the > other classloader, it can't, since the "instance of" operation fails. > > > Does anyone know how to solve this without removing any files? > > I don't. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >