Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Joda time library conflict IllegalAccessError in weblogic

Don KleppingerFeb 24 2016 — edited Feb 29 2016

11.1.1.6

I created a java callout jar running on the OSB for validating a JSON schema. it uses a library from

com.github.fge.jsonschema.main.JsonSchema

When I try to deploy the OSB project, it fails with two library conflicts

  • java.lang.IllegalAccessError: org/joda/time/format/DateTimeFormatterBuilder$FixedNumber : org/joda/time/format/DateTimeBuilder$PaddedNumber
  • java.lang.IllegalAccessError: org/mozilla/javascript/ScriptableObject$RelinkSlot : org/mozilla/javascript/ScriptableObject$Slot

Weblogic is loading these two classes from these two jars and I think JsonSchema uses a later version of those libraries.

jar:file:/oracle/dev/product/fmwsoa/modules/joda.time_1.2.1.0.jar!/org/joda/time/format/DateTimeFormatterBuilder.class

jar:file:/oracle/dev/product/fmwsoa/wlserver_10.3/server/lib/weblogic.jar!/org/mozilla/javascript/ScriptableObject.class

Somehow I need to resolve the version conflict.  How would I do this?

This post has been answered by Don Kleppinger on Feb 26 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2016
Added on Feb 24 2016
5 comments
1,363 views