Deploying CT-V REST APIs on Oracle WebLogic 12c Server
Deploying CT-V REST APIs on the Oracle WebLogic 12c Server includes the following steps:
Recreating the tmrest.war file
Note
If CT-V is already installed on the Oracle WebLogic 12c Server, remove all the instances of previously installed CT-V from the JAVA_HOME location of the Oracle WebLogic 12c Server.
Updating the JAVA_HOME Files
Follow the steps described here to update the JAVA_HOME files:
Copy the following files from the
/SafeNetTokenization/IngrianJCE/lib/extdirectory to the/JAVA_HOME/jre/lib/extlocation. These files are used by the Oracle WebLogic 12c Server:commons-lang3-3.1.jarcommons-collections4-4.1.jargson-2.1.jarIngrianlog4j-api-2.10.0.jarIngrianlog4j-core-2.10.0jarIngrianNAE.propertiesIngrianNAE-8.12.2.000.jar
Update the following parameters of the
IngrianNAE.propertiesfile:NAE_IP.1: <IP address of the Key Manager>NAE_PORT: 9000Log_File: <Path of the log file with required permissions>
Configuring CT-V Related Files
Follow the steps described here to configure CT-V specific files:
Create a myconfig folder at
location, where is the Oracle WebLogic home directory, such as C:/Oracle/Middleware/Oracle_Home. Copy the following files from the /SafeNetTokenization/Tokenization/lib/ext directory to the
<wl_home>/myconfiglocation:SafeNetToken.propertiesSfntDbp.properties
Update the following parameters of the SafeNetToken.properties file:
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.war file from SafeNetTokenization\Tokenization\restfulService to any user location using the following command:
jar -xvf tmrest.warThe following screen displays the extracted location of the tmrest.war file:
Note
If Java runtime environment version is 8 or above, then copy the mysql-connector-java- 5.1.48.jar file from the
/SafeNetTokenization/Tokenization/lib/ext directoryto the/WEB-INF/ libfolder.For MySQL 8.0, the Java runtime environment version must be 8 or above.
Copy the following files from the
/SafeNetTokenization/Tokenization/lib/extdirectory to the/ WEB-INF/libfolder extracted in the preceding step.- - - bson-2.5.1.jar MultiSite.properties SilentInstallation.properties c3p0-0.9.5.4.jar mysql-connector-java- 5.1.42-bin.jar or mysql- connector-java-5.1.48.jar sqljdbc41.jar detokenization.properties ojdbc7.jar TVMInformix.jar jdbc-4.10.6.20151104.jar oraclepki.jar TVMMySQL.jar jtds-1.2.8.jar osdt_cert.jar TVMOracle.jar masking.properties osdt_core.jar TVMSQLServer.jar mchange-commons-java- 0.2.11.jar SafeNetTokenService- 8.12.3.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 12c Server.Note
For details on the usage of the CT-V REST APIs, refer to CipherTrust Vaulted Tokenization REST APIs.