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.)
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.