1 Reply Latest reply on May 18, 2012 2:38 AM by jaikiran pai

    How to prevent JBoss 7 to use rt.jar from JAVA_HOME/jre/lib

    Mike Gao Newbie

      Hi,

       

      During the migration an app from JBoss 4.2.3 to JBoss 7.1.1, we are facing a problem of two different class loaders try to load the same native library (dll file in window and .so file in linux). We have a rt.jar included in WEB-INF/lib of our WAR app. It works fine under JBoss 4.2.3. However, with JBoss 7.1.1, it seems our app always uses rt.jar from JAVA_HOME/jre/librt.jar and use the jar to access native library (e.g. jpeg.dll in wondow env) that causes native library loading problem (the error message is something like: Native Library ...\jre\bin\jpeg.dll already loaded in another classloader). Our rt.jar under WEB-INF/lib seems to be ignored.

       

      Can someone please help us to resolve the problem?

       

      Thanks a lot in advance.

       

      Regards,

       

       

      Michael