Enabling Cybersource's Payment Gateway in Weblogic
Enabling Cybersource's Payment Gateway in Weblogic
Cybersource's payment gateway requires libraries that conflict with those provided with WebLogic. To get around this issue, add the libraries shown below to the WebLogic domain's classpath before any WebLogic libraries are added.
Warning: Cybersource and the Cortex API
If you are running the Storefront and the Cortex on Weblogic with a Cybersource payment gateway, you must run the Cortex on a separate domain. The classpath modifications made in this document prevent the Cortex from starting up properly.
- Locate the following files in your local <DOMAIN_HOME>/<WAR directory>/<cmserver webapp>/WEB-INF/lib directory and copy them to your <DOMAIN_HOME>\lib directory:
- xalan-2.6.0.jar
- xercesImpl-2.9.1.jar
- commons-lang-2.3.jar
- With a text editor, open setDomainEnv in <DOMAIN_HOME>/bin
- Modify the PRE_CLASSPATH variable to add the Cybersource and Xalan libraries:
- On Linux:
EXT_PRE_CLASSPATH="${DOMAIN_HOME}/lib/commons-lang-2.3.jar:${DOMAIN_HOME}/lib/xalan-2.6.0.jar:${DOMAIN_HOME}/lib/xercesImpl-2.9.1.jar"
- On Windows:
set PRE_CLASSPATH=%DOMAIN_HOME%\lib\commons-lang-2.3.jar;%DOMAIN_HOME%\lib\xalan-2.6.0.jar;%DOMAIN_HOME%\lib\xercesImpl-2.9.1.jar
- On Linux:
- Add -Dweblogic.security.SSL.allowSmallRSAExponent=true to the JAVA_OPTIONS variable:
- On Linux:
JAVA_OPTIONS="${JAVA_OPTIONS} ${JAVA_PROPERTIES} -Dwlw.iterativeDev=${iterativeDevFlag} -Dwlw.testConsole=${testConsoleFlag} -Dwlw.logErrorsToConsole=${logErrorsToConsoleFlag} -Dweblogic.security.SSL.allowSmallRSAExponent=true"
- On Windows:
set JAVA_OPTIONS=%JAVA_OPTIONS% %JAVA_PROPERTIES% -Dwlw.iterativeDev=%iterativeDevFlag% -Dwlw.testConsole=%testConsoleFlag%-Dwlw.logErrorsToConsole=%logErrorsToConsoleFlag% -Dweblogic.security.SSL.allowSmallRSAExponent=true
Note:For Windows, JAVA_OPTIONS must be specified on a single line. It is displayed here on two lines for readability.
- On Linux:
- Save your changes to setDomainEnv and restart your Weblogic server.