Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
java.lang.IllegalArgumentException: Prefix '' is already bound to '' on jdk11 #1220
The goal of com.oracle.weblogic:weblogic-maven-plugin:12.3.1-0-0:ws-jwsc is failed on jdk11 with following exception.
And the issue is caused by the following code:
The empty namespace can be bound to the empty prefix in implementation of jaxb. If empty namespace is bound to the empty prefix in Line#1, the IllegalArgumentException will be thrown. Because WSDL_NAMESPACE (http://schemas.xmlsoap.org/wsdl/) also attempts to bind to the empty prefix in Line#2.
This issue only happens on jdk9 and later versions.
I have found this empty namespace URL prefix to be a really problematic issue.
Basically, we need to perform XML transformations after a schemagen XSD generation to rename product schema files, and hence the tooling expects that the element (including its namespace) be constant.
I took the liberty of reporting this issue here as well: see #1223
referenced this issue
Oct 9, 2018
Looks to be caused by maven classloading in the context of maven plugin goal execution.