NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ
for more details.
is a great library if you can't use Java 8
in your project. If you happen to be using version above 126.96.36.199
with your web service
and deploying to WebLogic 12c
(12.1) you will likely get java.lang.NoSuchMethodError
exceptions. This is how to fix it.
In my case I was getting an exception like this...
Strange I thought because I had joda-time-2.9.3.jar
in my WEB-INF/lib
It turns out that WebLogic
comes with an old version of Joda-Time
library, in my case it was the 188.8.131.52
version which I found at the following location...
The fix is easy, just force your web service to use the jar
file that you bundle inside the WEB-INF/lib
directory. To do this you need to set prefer-web-inf-classes
in the weblogic.xml
file. Below is an example.
After making this change and redeploying everything should work as expected.
Hope you found this post useful...
...so please read on! I love writing articles that provide beneficial information,
tips and examples to my readers. All information on my blog is provided free of
charge and I encourage you to share it as you wish. There is a small favour I ask in return however -
engage in comments below, provide feedback, and if you see mistakes let me know.
If you want to show additional support and help me pay for web hosting and
domain name registration,
donations, no matter how small, are always welcome!
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...