Howdy, You can't use the interceptors from tomcat 3.x in tomcat 4.x. You'd have to write your own Valve as Filip said.
However, I don't think you want to do that. Tomcat will automatically load classes from jars placed in WEB-INF/lib and classes placed in WEB-INF/classes under webapp's root directory. Tomcat will load these classes once, on startup. Tomcat will reload these classes if you restart the webapp via tomcat's Manager webapp. The risks associated with dynamic reloading of selected classes at runtime outside the above two mechanisms are very significant: why would you want to do this? Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Filip Hanik [mailto:[EMAIL PROTECTED] >Sent: Tuesday, November 04, 2003 1:54 PM >To: Tomcat Users List >Subject: Re: [NEWBIE] Using LoaderInterceptor11 with tomcat 4.1.24 > >ContextInterceptor belonged to the old Tomcat 3.x >You would use Valves, although, I doubt Valves will let you load additional >stuff to the classloader > >Filip > >----- Original Message ----- >From: "Julie christiana" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Monday, November 03, 2003 8:28 PM >Subject: [NEWBIE] Using LoaderInterceptor11 with tomcat 4.1.24 > > >Hi, > >Can anyone lend me pointers on how to use LoaderInterceptor11 with tomcat >4.1.24 ? > >We want to use this to load classsed from jar, zip files during runtime ? > >In the server.xml we have the following configuration : > ><ContextInterceptor > className="org.apache.tomcat.context.LoaderInterceptor" > useApplicationLoader="true" additionalJars="xxx.jar"/> > >Now, if we need to access a particular class from this jar, we would >implement a classloader which would be accessed by the JSPs . > >Is my understanding correct ? Any other configuration required for the same >? > >Please lend me any pointers on how to implement a classLoader to access a >class file. I was unable to find the same in tomcat documentation. > >Any help on this is appreciated. > >TIA, >Julie Chritiana > > > >--------------------------------- >Do you Yahoo!? >Protect your identity with Yahoo! Mail AddressGuard > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
