Salesforce

How to setup the Web Services Adapter (WSA) with Tomcat

« Go Back

Information

 
TitleHow to setup the Web Services Adapter (WSA) with Tomcat
URL NameP30600
Article Number000140919
EnvironmentProduct: OpenEdge
Version: 10.x, 11.x
OS: All supported platforms
Other: Tomcat 4.1, 5.5, 6.0, 7.0, 8.0
Question/Problem Description
How to setup the Web Services Adapter (WSA) with Tomcat.
How to configure the Web Service Adapter (WSA) with Tomcat.
How to upgrade the Web Services Adapter (WSA) when using Tomcat.
Steps to Reproduce
Clarifying Information
Apache Tomcat™ is an open source software implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies, so it is not a product of Progress Software.
Error Message
Defect Number
Enhancement Number
Cause
Resolution
PREREQUISITES:

Ensure the following components are installed before proceeding.
  • Progress AppServer
  • Database
  • ProxyGen
  • Java 2 SDK
Uninstall previous WSA versions (if applicable)

1. Stop Tomcat.
2. Move the <Tomcat directory>\webapps\wsa directory to a backup directory which is located outside of the Tomcat installation directory.
3. Do the same for any other WSA instances, to a backup directory (located outside of the Tomcat installation directory). For example move the: <Tomcat directory>\webapps\wsatest

Installation / Configuration of Tomcat

1. (If Tomcat is not yet installed) Download a full binary version of Tomcat from http://tomcat.apache.org

2. (If Tomcat is not yet installed) Run the Tomcat install program and follow the installation instructions.

3. Stop Tomcat.

4. Copy the directory <OpenEdge directory>\servlets\wsa (including all sub-directories)
into the directory <Tomcat directory>\webapps. So, you should have <Tomcat directory>\webapps\wsa (including all sub-directories there).

To do this copy command on Linux, for example, the following may be used: 
$   sudo cp -pr $DLC/servlets/wsa /var/lib/tomcat6/webapps​

5. Start Tomcat (during the startup process, Tomcat will add the Adapter as a web application).

 
6. To validate the configuration was successful, check the following:
  • A new directory named wsa1 was created in the "<TomCat Directory>\webapps\wsa" directory. The wsa1 directory will initially contain two files: default.props and DeployedServices.ds.
     
  • Starting Tomcat will automatically start the WSA. To check that Tomcat has started, enter the following URL in a browserhttp://<Tomcat-Server-Hostname> 
    The default Tomcat response is an html page entitled "
    It works" and contains "This is the default web page for this server".
     
  • To check that wsa1 (default) Web Services Adapter is working, enter the following URL in a browser: http://<Tomcat-Server-Hostname>:8080/wsa/wsa1 
    The correct response is an html page entitled "WSA Web Services" and it contains "status:wsa1:OK".
    NOTE: If Tomcat is configured to use a port other than 8080 then modify the above to use the appropriate port.
     
  • In the event of a failure, check Progress WRKDIR\wsa1.wsa.log and Tomcat log files located in <Tomcat-install-dir>\logs for errors and ensure that the WSA instance has been defined in the $DLC/properties/ubroker.properties file.
7. At this point the WSA has been successfully configured.
Workaround
Notes
Keyword Phrase
Last Modified Date4/19/2021 8:16 PM

Powered by