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.
I've noted previously that the JWSC Ant Task fails to build Java sources above 1.5 source version
due to a hardcoded "1.5"
value in one of the Jar
files. That was happening for the 12.1.2
version of the Ant
task, it also appears to be a problem in the 12.1.2 Maven
plugin as well as the 12.1.3 Maven
So if you're using this plugin...
...and you're trying to compile Java
source code that has 1.6
features e.g. diamond operator
, your compilation will fail.
Hang on you say, there is an Oracle Patch #19942919
that addresses this exact issue. I tried that and ironically the patch itself throws a NullPointerException
So what's the solution?
Well in fact there are two ways around this.
1. Follow the steps in my previous article
2. Package the modified .class file into a Jar
3. Install the Jar
file into your Maven repository.
4. Add the installed Jar
file as a dependency INSIDE THE MAVEN WEBLOGIC PLUGIN
so that it overwrites the default .class
file for JamUtils
e.g. (based on Maven Documentation
. Replace with whatever you used for the groupId
in step 3.
Upgrade to the 12.2.1
version of the plugin. This is probably an easier feat, but you will need to download the 12.2.1
version of WebLogic
to get the plugin. Follow these instructions
to set up the plugin.
Either solution works, of course Solution 1
is not official and would not be supported.
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...