6 Replies Latest reply on Aug 28, 2012 7:51 AM by zekela104

    How do I handle class version dependencies in different jar files?

    zekela104 Newbie

      Hi:

       

      I created a new system module x for an external jar file, x.jar, I was given. The external jar file contains an older version of org.mozilla.javascript.

       

      My application war file contains an internal jar file, y.jar, in ./WEB-INF/lib. The internal jar file contains a newer version of org.mozilla.javascript. My application war file also contains another internal jar file, z.jar, which depends on the newer version of org.mozilla.javascript from y.jar.

       

      At runtime, when z.jar attempts to use org.mozilla.javascript, the older version of org.mozilla.javascript in x.jar is used and the request fails with a NoSuchMethodException exception.

       

      At build time, how do I specify that the newer version of org.mozilla.javascript in y.jar should be used rather than the older version from x.jar?

       

      Thank you and sincerely,

      Steve