The JAX-WS and JAX-RS web service tools in a Maven project show compilation errors when a JAX-WS client is generated

Technote (troubleshooting)


Problem(Abstract)

The Test Client Sample JSP files have compilation errors after generating a JAX-WS client in a Maven project.

Symptom

The Problems or Markers view display compilation errors from the test client of the sample JSP files.


Cause

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:
-com.ibm.ccl.*
-org.eclipse.jst.ws.util*

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:

  1. Start the Web Service Client wizard from a service.
  2. Set the slider to Test client.
  3. 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.)

Historical Number

WI101068

Rate this page:

(0 users)Average rating

Add comments

Document information


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:

2013-07-16

Translate my page

Machine Translation

Content navigation