There are several ways of doing this.
- Change your startWeblogic.cmd(sh) in the bin folder for your domain, look for the classpath setting and add the new joda before any other WebLogic jars
- as was said above, you can change your weblogic.xml if the application is a web application and chose to prefer any lib that comes inside the war.
-
If you are using an Enterprise application, you can set the following options in your weblogic-application.xml:
<prefer-application-packages> <package-name>org.apache.*</package-name> <package-name>antlr.*</package-name> </prefer-application-packages>
And set your package name for joda in there.
Please note that the first option might result in strange behavior from WebLogic.
Note for some reason I can’t get the code to work with the XML.