Installing CT-V REST APIs on Oracle WebLogic Server
Following are the steps to deploy CT-V REST APIs on the Oracle WebLogic Server. All these steps have been tested with the Oracle WebLogic 12c Server.
Important Notes
If CT-V is already installed on the Oracle WebLogic Server, remove all the instances of previously installed CT-V.
For details on the usage of the CT-V REST APIs, refer to CipherTrust Vaulted Tokenization REST APIs.
Ensure the following jar files are downloaded and copied to the
/WEB-INF/libdirectory (where the tmrest.war file will be extracted). The/WEB-INF/libdirectory already containscxfrelated jar files but with different versions. It is recommended to replace those files with the versions listed below.cxf-core-3.0.12.jarcxf-rt-security-3.0.12.jarcxf-rt-frontend-jaxrs-3.0.12.jarcxf-rt-transports-http-3.0.12.jarcxf-rt-rs-service-description-3.0.12.jar
Note
We are recommending only these particular versions because they are compatible with guava-33.1.0-jre.jar.
Updating the JAVA_HOME Files
Follow the steps described here to update the JAVA_HOME files:
Copy the following files from the
/SafeNetTokenization/CADP_for_JAVA/lib/extdirectory to the/JAVA_HOME/jre/lib/extlocation. These files are used by the Oracle WebLogic Server:CADP_for_JAVA.propertiesCADP_for_JAVA-8.17.0.002.jarcommons-collections4-4.4.jarcommons-lang3-3.14.0.jarfailureaccess-1.0.2.jargson-2.10.1.jarguava-33.1.0-jre.jarlog4j-api-2.23.1.jarlog4j-core-2.23.1.jar
Update all the required parameters of the
CADP_for_JAVA.propertiesfile. Click here for details.
Configuring CT-V Related Files
Follow the steps described here to configure CT-V specific files:
Create a folder named myconfig at
<wl_home>location. Here<wl_home>is the Oracle WebLogic home directory, for example,C:/Oracle/Middleware/Oracle_Home.Copy the following files from the
/SafeNetTokenization/Tokenization/lib/extdirectory to the<wl_home>/myconfiglocation:SafeNetToken.propertiesSfntDbp.properties
Update the following parameters of the
SafeNetToken.propertiesfile:HostName: <IP address of the database>Port Number: <Port number of the database server>DatabaseType: <Type of the database to be used; for example, Oracle>DatabaseName: <Database instance>
Open the
setDomainEnvfile located at<wl_home>/user_projects/domains/<Your_domain_name>/binand update"set JAVA_PROPERTIES=-Dwls.home=%WLS_HOME% -Dweblogic.home=%WLS_HOME%" to "set JAVA_PROPERTIES=-Dwls.home=%WLS_HOME% -Dweblogic.home=%WLS_HOME% -Dcom.safenet.SfntDbp_Properties_Conf_Filename=C:/Oracle/Middleware/Oracle_Home/myconfig/SfntDbp.properties -Dcom.safenet.SafeNetToken_Properties_Conf_Filename=C:/Oracle/Middleware/Oracle_Home/myconfig/SafeNetToken.properties"
Recreating the tmrest.war File
Follow the steps described here to recreate the tmrest.war file:
Extract the existing
tmrest.warfile fromSafeNetTokenization\Tokenization\restfulServiceto any user location using the following command:jar -xvf tmrest.warThe following screen displays the extracted location of the
tmrest.warfile:
Note
The JDBC drivers for the supported databases are no longer part of the CT-V package. Download the JDBC drivers compatible with your database and copy them to the
../WEB-INF/libdirectory. Refer to the below table for the download links:Database Driver Name Download Link MySQL mysql-connector-j-x.x.x.jarMySQL website Informix jdbc-x.x.x.x.jarMaven repository Oracle ojdbc8-x.x.x.x.x.jarMaven repository SQL Server mssql-jdbc-x.x.x.jre8.jarMaven repository Copy the following files from the
/SafeNetTokenization/Tokenization/lib/extdirectory to the../WEB-INF/libfolder extracted in the preceding step.bson-5.1.0.jar MultiSite.properties SilentInstallation.properties c3p0-0.10.1.jar detokenization.properties TVMInformix.jar oraclepki-23.4.0.24.05.jar TVMMySQL.jar jtds-1.3.1.jar osdt_cert-21.14.0.0.jar TVMOracle.jar masking.properties osdt_core-21.14.0.0.jar TVMSQLServer.jar mchange-commons-java-0.3.1.jar SafeNetTokenService-8.13.2.000.jar unicode.properties migration.properties SafeNetTVM.jar Navigate to the extracted location and create the
tmrest.warfile using the following command:jar –cvf tmrest.war *Deploy the
tmrest.warfile on the Oracle WebLogic Server.