Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31366
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2015-03-25 13:24 -0700 |
| References | <06d02c2a-6d23-47a9-bcb2-7bd710c9c385@googlegroups.com> |
| Message-ID | <8eb033b5-47e0-424f-ac87-10abeac44fc6@googlegroups.com> (permalink) |
| Subject | Re: using two different versions of JAR files |
| From | John <xsli2@yahoo.com> |
Sorry. I did some reading and have some insights: In normal situation, parent classloader is delegated first. If not found, then the local classloader. However, in Java Severlet container, the order has been reversed. The benefit of reversing can be shown in this classical example: The new container is always shipped out with many JARs, let's say one of them is log4j JAR. The users' programs very likely also uses log4j JAR. The two JARs probably is the same version. Classloader delegates to local first so that users programs get their log4j first. So, I guess I need to ask the company "ABC" about the classloader order. I was told different application container follow different orders.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
using two different versions of JAR files John <xsli2@yahoo.com> - 2015-03-25 12:27 -0700
Re: using two different versions of JAR files John <xsli2@yahoo.com> - 2015-03-25 13:24 -0700
Re: using two different versions of JAR files Jeff Higgins <jeff@invalid.invalid> - 2015-03-25 19:30 -0400
Re: using two different versions of JAR files John <xsli2@yahoo.com> - 2015-03-26 06:18 -0700
Re: using two different versions of JAR files Jeff Higgins <jeff@invalid.invalid> - 2015-03-26 19:05 -0400
Re: using two different versions of JAR files Jeff Higgins <jeff@invalid.invalid> - 2015-03-26 19:53 -0400
Re: using two different versions of JAR files Jeff Higgins <jeff@invalid.invalid> - 2015-03-26 20:00 -0400
Re: using two different versions of JAR files John <xsli2@yahoo.com> - 2015-03-27 13:41 -0700
Re: using two different versions of JAR files Jeff Higgins <jeff@invalid.invalid> - 2015-03-27 18:58 -0400
csiph-web