The JAX-WS and JAX-RS web service tools in a Maven project show compilation errors when a JAX-WS client is generated
The Test Client Sample JSP files have compilation errors after generating a JAX-WS client in a Maven project.
The Problems or Markers view display compilation errors from the test client of the sample JSP files.
The gstcutils.jar and webserviceutils.jar files that are typically present in a web project, are not available in the Maven project.
Here are examples of packages that generate unresolved errors from the JSP files:
Resolving the problem
Extensive manual setup is required to use the Web services tools with Maven projects.
A workaround is to generate a JAX-WS client with the Test Sample JSP in a web project and then add the JAR files to the Maven project.
To create the JSP files:
- Start the Web Service Client wizard from a service.
- Set the slider to Test client.
- On the Web Service Client Test page of the wizard, select JAX-WS JSPs as the test facility. Click Finish to complete the wizard.
Add the resulting two JAR files, gstcutils.jar and webserviceutils.jar, from the WEB-INF/lib folder to the classpath of the Maven project (right-click the project, select Properties, and change the build path.)
More support for:
Rational Application Developer for WebSphere Software
Web Services Development
Software version: 8.5.1
Operating system(s): Linux, Windows
Reference #: 1618652
Modified date: 16 July 2013