Installation

## 3 Installation

This chapter explains how to install the Jakarta XML Web Services TCK software.

After installing the software according to the instructions in this chapter, proceed to Chapter 4, "Setup and Configuration," for instructions on configuring your test environment.

### 3.1 Obtaining a Compatible Implementation

Each compatible implementation (CI) will provide instructions for obtaining their implementation. Java EE 8 RI is a compatible implementation which may be obtained from http://javaee.github.io

### 3.2 Installing the Software

Before you can run the XML Web Services TCK tests, you must install and set up the following software components:

- Java EE 8 RI or, at a minimum, a Web server with a Servlet container

- Java SE 8

- A CI for XML Web Services 2.3, one example is Java EE 8 RI

- XML Web Services TCK version 2.3, which includes:

  - JDOM 1.0

  - Apache Commons HTTP Client 3.1

  - Apache Commons Logging 1.1.1

  - Apache Commons Codec 1.3

- The XML Web Services 2.3 Vendor Implementation (VI)

Follow these steps:

1. Install the Java SE 8 software, if it is not already installed.
   Download and install the Java SE 8 software from http://www.oracle.com/technetwork/java/javase/downloads/index.html. Refer to the installation instructions that accompany the software for additional information.

2. Install the XML Web Services TCK 2.3 software.

   1. Copy or download the XML Web Services TCK software to your local system.
      You can obtain the XML Web Services TCK software from the Jakarta EE site https://jakarta.ee/specifications/xml-ws/2.3/.

   2. Use the `unzip` command to extract the bundle in the directory of your choice:
      `unzip jaxwstck-x.x_dd-Mmm-YYYY.zip`
      This creates the TCK directory. The TCK is the test suite home, `<TS_HOME>`.

3. Install the Java EE 8 RI software (the servlet Web container used for running the XML Web Services TCK with the XML Web Services 2.3 RI), if it is not already installed.
   Download and install the Servlet Web container with the XML Web Services 2.3 RI used for running the XML Web Services TCK 2.3, represented by the Java EE 8 RI. This software can be obtained from the Java Licensee Engineering Web site. Refer to any installation instructions that accompany the software for additional information.

4. Install the Java EE 8 RI software which contains the JAX-WS 2.3 Reference Implementation or install the Standalone JAX-WS 2.3 RI software.
   The Java EE 8 RI software contains the JAX-WS 2.3 Reference Implementation and is used to validate your initial configuration and setup of the JAX-WS TCK 2.3, as well as to run the reverse tests which are explained further in Chapter 4, "Setup and Configuration" and Appendix B.
   The Standalone JAX-WS 2.3 RI software contains the JAX-WS 2.3 Reference Implementation and can be used with any web container that meets the minimum requirements for a container as defined in the JAX-WS 2.3 Specification such as the Apache Tomcat web container.
   If you use the Standalone JAX-WS 2.3 RI software with the Apache Tomcat web container, you need to copy the JAR files/classes from the standalone JAX-WS 2.3 RI software to the correct location under the Apache Tomcat web container. Assuming the Apache Tomcat web container is installed under `${tomcat.home}`, you would copy the JAR files/classes as follows:

       cp jaxws-api.jar jaxb-api.jar ${tomcat.home}/common/endorsed

       cp commonj.sdo.jar eclipselink.jar FastInfoset.jar gmbal-api-only.jar \
           ha-api.jar javax.annotation-api.jar javax.persistence.jar \
           javax.xml.soap-api.jar jaxb-core.jar jaxb-impl.jar jaxb-jxc.jar \
           jaxb-xjc.jar jaxws-eclipselink-plugin.jar jaxws-rt.jar jaxwstck.jar \
           jaxws-tools.jar jsr181-api.jar mail.jar management-api.jar mimepull.jar \
           policy.jar resolver.jar saaj-impl.jar sdo-eclipselink-plugin.jar \
           stax2-api.jar stax-ex.jar streambuffer.jar tsharness.jar \
           woodstox-core-asl.jar ${tomcat.home}/shared/lib

       cp jaxwstck/lib/tsharness.jar jaxwstck/lib/jaxwstck.jar ${tomcat.home}/shared/lib

   If, instead of using Tomcat, you are using the Java EE 8 Reference Implementation, which already includes JAX-WS 2.3, you only need to copy the `jaxwstck/lib/tsharness.jar` and `jaxwstck/lib/jaxwstck.jar` TCK JAR files to the domain’s `lib/ext` directory.

5. Install a XML Web Services 2.3 Compatible Implementation.
   A Compatible Implementation is used to validate your initial configuration and setup of the XML Web Services TCK 2.3 tests, which are explained further in Chapter 4, "Setup and Configuration."
   The Compatible Implementations for XML Web Services are listed on the Jakarta EE Specifications web site: https://jakarta.ee/specifications/xml-ws/2.3/.

6. Install a Web server on which the XML Web Services TCK test applications can be published for testing the VI.

7. Install the XML Web Services VI to be tested.
   Follow the installation instructions for the particular VI under test.

Copyright © 2018, Oracle and/or its affiliates. All rights reserved.