Troubleshooting
Problem
A duplicate method error is displayed when compliling the java artifacts for JAX-RS 2.0 web service applications which is generated by the wadl2java tool.
Symptom
The wadl2java tool that generates Java artifacts has the compilation error caused by the duplicate method error.
Cause
The JAX-RS 2.0 wadl2java command-line tool is used to generate java artifacts using a Web Application Description Language (WADL) file that is generated by the JAX-RS 2.0 run time.
The following code snippet shows an example of the wadl2java command that could cause this:
wadl2java -p package-name-d output-directory -impl -verbose wadlFile
For more information on using the wadl2java tool, see http://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_command_wadl.html.
Resolving The Problem
Rename the method that causes the duplicate error.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21959528