0

I'm dealing with an issue with static singleton that we create for log4j. As per the document here, jboss 4.x and prior used a unified class loader. Meaning, a class deployed in one .ear file can access access class of another ear deployed. So, if one .ear file has already loaded that class, then 2nd .ear does not load it again as it is already loaded.

Does anyone know if this is same for Weblogic 8.1 server? If that is true, I need to change the design of our application.

Update: Issue i'm dealing with here

Community
  • 1
  • 1
Zeus
  • 6,386
  • 6
  • 54
  • 89
  • WebLogic 8.1 is *really* old. – Elliott Frisch Dec 12 '14 at 21:19
  • @ElliottFrisch Yes, but our corp is still using it. I have to fix the issues :( – Zeus Dec 12 '14 at 21:22
  • What issues are those? I don't think there is a unified class loader in Weblogic (but I haven't used 8.1 in a very long time). – Elliott Frisch Dec 12 '14 at 21:24
  • @ElliottFrisch i've updated my question with the link to the issue. I thought I fixed it. But, it popped up within no time. – Zeus Dec 12 '14 at 21:27
  • 1
    WebLogic classloading is definitly hierarchical - finally managed to track down the 8.1 documentation [here](https://docs.oracle.com/cd/E13222_01/wls/docs81/programming/classloading.html#1089798), although is not really changed since then - the latest 12c documentation has the same diagrams!. That said, if a class is loaded by the system classloader, then this is sharded by everything, so it might me worth checking the beginning of the server log file it see if log4j is on the server classpath. – Jeremy Gosling Dec 16 '14 at 10:18

0 Answers0