Deploying a web service
You must deploy a web service after you implement it. This information describes how to deploy a web service on WebSphere® Application Server.
Before you begin
Procedure
- Configure the application server
- Start the server:
$WAS_HOME/bin/startServer.sh server_name.
- Go to the Administration Console:
http://server_name:9060/ibm/console
Replace the port number with the port number for your admin server. - Configure the JVM. You configure two things in the JVM:
the class path and the custom properties.
- Class path
- Application servers > server_name >
Process Definition > Java Virtual Machine::
/opt/WebSphere/AppServer/java/lib/tools.jar
/opt/db2inst9/sqllib/java/db2jcc.jar
/opt/db2inst9/sqllib/java/db2jcc_license_cu.jar
- For Oracle:
/opt/oracle/Ora11gHome/jdbc/lib/ojdbc5.jar
- $TOP\jars\ccd_javaapi2.jar
- $TOP\jars\ccd_svr.jar
- $TOP\jars\mdm_cache.jar
- $TOP\jars\ehcache-1.6.0.jar
- $TOP\jars\axis_1.4.jar
- $TOP\jars\jakarta-regexp-1.5.jar
- $TOP\jars\log4j-1.2.15.jar
- $TOP\jars\icu4j-4_2.jar
- $TOP\jars\commons-dbcp2-2.1.1.jar
- $TOP\jars\commons-pool2-2.4.2.jar
- $TOP\jars\commons-collections-3.2.1.jar
- $TOP\jars\commons-configuration-1.6.jar
- $TOP\jars\commons-lang-2.4.jar
- $TOP\jars\commons-io-1.4.jar
- $TOP\jars\concurrent-utils-1.3.2.jar
- $TOP\jars\Cup.jar
- $TOP\jars\JSON4J_1.0.0.2.jar
- $TOP\jars\xalan_2_7_5.jar
- $TOP\jars\xercesImpl_4_4_6.jar
- Custom properties
- Application servers > server_name >
Process Definition > Java Virtual Machine > Custom Properties:
- CCD_ETC_DIR: The value of $TOP)/etc
- TOP: The value of $TOP
- enableJava2Security: true
- exit_if_config_file_not_found : no
- java.security.policy: The value of $TOP)/etc/default/java.policy
- svc_name : The name of the application server,
for example,
appsvr_FROGGER
- Start the server:
- Deploy the sample services with WebSphere Application Server as a New Enterprise
Application.
- Provide the location of the .ear file.
- Specify the context root or application name for the application, for example, /webservices.samples, and follow the steps of deployment.
- Make sure that the deployed web service application is started.