12.2.2 Deploying Oracle Graph Server to a Web Server
You can deploy Oracle Graph Server to Apache Tomcat or Oracle WebLogic Server.
The following explains the deployment instructions to a web server:
- Deploying to Apache Tomcat
 The example in this topic shows how to deploy the graph server as a web application with Apache Tomcat.
- Deploying to Oracle WebLogic Server
 The example in this topic shows how to deploy the graph server as a web application with Oracle WebLogic Server.
Parent topic: Oracle Graph Server Installation
12.2.2.1 Deploying to Apache Tomcat
The example in this topic shows how to deploy the graph server as a web application with Apache Tomcat.
The graph server will work with Apache Tomcat 9.0.x.
- Download the Oracle Graph Webapps zip file from Oracle Software Delivery Cloud. This file contains ready-to-deploy Java web application archives (.warfiles). The file name will be similar to this:oracle-graph-webapps-<version>.zip.
- Unzip the file into a directory of your choice.
- Locate the .warfile that follows the naming pattern:graph-server-<version>-pgx<version>.war.
- Configure the graph server.
                           - Modify authentication and other server settings by modifying the WEB-INF/classes/pgx.conffile inside the web application archive. See User Authentication and Authorization section for more information.
- Optionally, change logging settings by modifying the
                                WEB-INF/classes/logback.xmlfile inside the web application archive.
- Optionally, change other servlet specific deployment descriptors by modifying the WEB-INF/web.xmlfile inside the web application archive.
 
- Modify authentication and other server settings by modifying the 
- Copy the .warfile into the Tomcatwebappsdirectory. For example:cp graph-server-<version>-pgx<version>.war $CATALINA_HOME/webapps/pgx.warNote: The name you give the war file in the Tomcatwebappsdirectory determines the context path of the graph server application. It is recommended naming the war file aspgx.war.
- Configure Tomcat specific settings, like the correct use of TLS/encryption.
- Ensure that port 8080 is not already in use.
- Start Tomcat:cd $CATALINA_HOME ./bin/startup.shThe graph server will now listen on localhost:8080/pgx.You can connect to the server from JShell by running the following command: $ <client_install_dir>/bin/opg4j --base_url https://localhost:8080/pgx -u <graphuser>
Related Topics
Parent topic: Deploying Oracle Graph Server to a Web Server
12.2.2.2 Deploying to Oracle WebLogic Server
The example in this topic shows how to deploy the graph server as a web application with Oracle WebLogic Server.
This example shows how to deploy the graph server with Oracle WebLogic Server. Graph server supports WebLogic Server version 12.1.x and 12.2.x.
- Download the Oracle Graph Webapps zip file from Oracle Software Delivery Cloud. This file contains ready-to-deploy Java web application archives (.warfiles). The file name will be similar to this:oracle-graph-webapps-<version>.zip.
- Unzip the file into a directory of your choice.
- Locate the .warfile that follows the naming pattern:graph-server-<version>-pgx<version>.war.
- Configure the graph server.
                        - Modify authentication and other server settings by modifying the WEB-INF/classes/pgx.conffile inside the web application archive.
- Optionally, change logging settings by modifying the
                            WEB-INF/classes/logback.xmlfile inside the web application archive.
- Optionally, change other servlet specific deployment descriptors by modifying the WEB-INF/web.xmlfile inside the web application archive.
- Optionally, change WebLogic Server-specific deployment descriptors by modifying the WEB-INF/weblogic.xmlfile inside the web application archive.
 
- Modify authentication and other server settings by modifying the 
- Configure WebLogic specific settings, like the correct use of TLS/encryption.
- Deploy the .warfile to WebLogic Server. The following example shows how to do this from the command line:. $MW_HOME/user_projects/domains/mydomain/bin/setDomainEnv.sh . $MW_HOME/wlserver/server/bin/setWLSEnv.sh java weblogic.Deployer -adminurl http://localhost:7001 -username <username> -password <password> -deploy -source <path-to-war-file>
12.2.2.2.1 Installing Oracle WebLogic Server
To download and install the latest version of Oracle WebLogic Server, see
http://www.oracle.com/technetwork/middleware/weblogic/documentation/index.html
Parent topic: Deploying to Oracle WebLogic Server