1.3.5.5.2 Deploying the Graph Visualization Application in Oracle WebLogic Server

The following instructions are for deploying the Graph Visualization application in Oracle WebLogic Server 12.2.1.3. You might need to make slight modifications, as appropriate, for different versions of the Weblogic Server.

  1. Download the Oracle Graph Webapps zip file from Oracle Software Delivery Cloud. This file contains ready-to-deploy Java web application archives (.war files). The file name will be similar to this: oracle-graph-webapps-<version>.zip
  2. Unzip the file into a directory of your choice.
  3. Locate the .war file for deploying the Graph Visualization application to Oracle WebLogic Server. It follows the naming pattern: graphviz-<version>-pgviz<graphviz-version>-wls
  4. Configure the Graph Visualization application by editing the WEB-INF/web.xml file as explained in Configuring the Web Application Deployment Descriptor.
  5. Start WebLogic Server.
    # Start Server
    cd $MW_HOME/user_projects/domains/base_domain
    ./bin/startWebLogic.sh
  6. Enable tunneling.

    In order to be able to deploy the Graph Visualization application WAR file over HTTP, you must enable tunneling first. Go to the WebLogic admin console (by default on http://localhost:7001/console). Select Environment (left panel) > Servers (left panel). Click the server that will run Graph Visualization (main panel). Select (top tab bar), check Enable Tunneling, and click Save.

  7. Rebuild and deploy the graphviz-<version>-pgviz<graphviz-version>-wls.war file.

    To deploy the repackaged WAR file to WebLogic Server, use the following command, replacing the <<...>> markers with values matching your installation:

    cd $MW_HOME/user_projects/domains/base_domain
    source bin/setDomainEnv.sh
    java weblogic.Deployer -adminurl <<admin-console-url>> -username <<admin-user>> -password <<admin-password>> -deploy -upload <<path/to>>/graphviz-<<version>>-pgviz<<graphviz-version>>.war

    To undeploy, you can use the following command:

    java weblogic.Deployer -adminurl <<admin-console-url>> -username <<admin-user>> -password <<admin-password>> -name <<path/to>>/graphviz-<<version>>-pgviz<<graphviz-version>>.war -undeploy

    To test the deployment, navigate using your browser to: https://<<fqdn-ip>>:<<port>>/ui.

    The browser prompts for your credentials (user name and password). After you log in, the Graph Visualization user interface (UI) appears and the graphs from PGX is retrieved.