Deploying Unica Insights
You must follow a set of guidelines when you deploy Unica Insights in your web application server. There is a different set of guidelines for deploying Unica Insights on WebLogic and on WebSphere.
When you run the Unica installer, you completed the following actions:
• You created the WAR file of Unica Insights (Insights.war).
We assume that you possess the information on how to work with your web application server. For details, such as navigation in the Administration console, see your web application server documentation.NOTE
- Open Insights.war.
- Navigate to the WEB-INF folder and access the viewer.properties file.
- Uncomment the
base_url
property by removing "#
". - Configure the
base_url
property with Unica Insights' reverse proxy URL. - Redeploy the Insights.war file.
Guidelines for deploying Unica Insights on WebLogic
You must follow a set of guidelines when you deploy Unica Insights on the WebLogic application.
- Unica products customize the Java virtual machine (JVM) used by WebLogic. If you encounter errors related to JVM, you can create a WebLogic instance that is dedicated to Unica products.
- Open the startWebLogic.cmd file and verify that the SDK that is
selected for the WebLogic domain that you are using is the Sun SDK for
the
JAVA_VENDOR
variable. TheJAVA_VENDOR
variable must be set to Sun (JAVA_VENDOR=Sun).If the
JAVA_VENDOR
variable is set to JAVA_VENDOR, it means that JRockit is selected. You must change the selected SDK as JRockit is not supported. See the BEA WebLogic documentation to change the selected SDK. - Deploy Unica Insights as a web application.
- If you are configuring WebLogic to use the IIS plug-in, review the BEA WebLogic documentation.
- Complete the following tasks if your installation must support non-ASCII
characters, for example for Portuguese or for locales that require
multi-byte characters:
- Edit the
setDomainEnv
script in the bin directory under your WebLogic domain directory to add-Dfile.encoding=UTF-8
to JAVA_VENDOR. - In the WebLogic console, click the Domain link on the home page.
- In the Web Applicationstab, select the Archived Real Path Enabled check box.
- Restart WebLogic.
- Deploy and start the Insights.war file.
- Edit the
- If deploying in a production environment, set the JVM memory heap size
parameters to 1024 by adding the following line to the
setDomainEnv
script..Set MEM_ARGS=-Xms1024m -Xmx1024m -XX:MaxPermSize=256m
Guidelines for deploying Unica Insights on WebSphere
- Specify the following custom property in the server:
- Name: com.ibm.ws.webcontainer.invokefilterscompatibility
- Value:
true
- Set a custom property in WebSphere.
- Deploy the Insights.war file as an enterprise application. When you
deploy the Insights.war file, ensure that the JDK source level of the
JSP compiler is set to Java 17 for SDK 1.7 and 18 for SDK 1.8, and that
JSP pages are precompiled according to the following information:
- In the form where you browse to and select the WAR file, select Show me all installation options and parameters so the Select Installation Options wizard runs.
- In step 1 of the Select Installation Options wizard, select Precompile JavaServer Pages files.
- In step 3 of the Select Installation Options wizard,
ensure that the JDK Source Level is set to
17
for SDK 1.7 and set to18
for SDK 1.8. - In step 8 of the Select Installation Options wizard, select UnicaPlatformDS as the matching Target Resource.
- In step 10 of the Select Installation Options wizard, the context root must be set to /Insights.
- In the Web Container Settings > Web Container > Session Management
section of the server, enable cookies. Specify a different session
cookie name for each application that is deployed. Use one of the
following procedures to specify a cookie name:
- Select the Override session management check box under Session Management. If you deployed separate WAR files for your Unica products, in the WebSphere console, in the Applications > Enterprise Applications > [deployed_application] > Session Management > Enable Cookies > Cookie Name section of the server, specify a unique session cookie name].
- If your installation must support non-ASCII characters, for
example for Portuguese or for locales that require multi-byte
characters, add the following arguments to Generic JVM
Arguments at the server
level.
-Dfile.encoding=UTF-8
-Dclient.encoding.override=UTF-8
- Navigation tip: Select Servers > Application Servers > Java and Process Management > Process Definition > Java Virtual Machine > Generic JVM Arguments. See the WebSphere documentation for additional details.
- In the Applications > Enterprise Applications section of the
server, select the WAR file that you deployed, then select Class
loading and update detection and specify the following
properties. If you are deploying a WAR file:
- For Class loader order, select Classes loaded with local class loader first (parent last).
- For WAR class loader policy, select Single class loader for application.
- Start your deployment. If your instance of WebSphere is configured to
use a JVM version 1.7 or newer, complete the following steps to work
around an issue with the time zone database.
- Stop WebSphere.
- Download the Time Zone Update Utility for Java (JTZU).
- Follow the steps provided by the IBM (JTZU) to update the time zone data in your JVM.
- Restart WebSphere.
- In Websphere Enterprise Applications, select Your Application
> Manage Modules > Your Application> Class Loader Order > Classes
loaded with local class loader first (parent last).
- The recommended minimum heap size for the basic functioning of
the application is
512
and the recommended maximum heap size is1024
. Complete the following tasks to specify the heap size:- In WebSphere Enterprise Applications, select Servers > WebSphere application servers > server1 > Server Infrastructure > Java and Process Management > Process definition > Java Virtual Machine.
- Set the initial heap size to
512
. - Set the maximum heap size to
1024
. See the WebSphere documentation for more information about sizing. For DB2, set progressiveStreaming =2
in WebSphere console at following path: JDBC >Data sources > UnicaPlatformDS > Custom properties.
- The recommended minimum heap size for the basic functioning of
the application is
Guidelines for deploying Unica Insights on JBoss
Before deploying Insights.war in JBOSS application server, update the Insights.war file.
- Deploy the Insights.war file as an enterprise application. For example:
deploy
<Platform_Install>\ Insights.war
.See https://docs.jboss.org/jbossweb/3.0.x/deployer-howto.html for instructions on Deploying Web Server Application in JBoss.
- Complete the following tasks if your installation must support non-ASCII
characters, for example for Portuguese or for locales that require
multi-byte characters:
- Edit the
standalone.conf
script in the bin directory under your JBOSS /bin directory to add-Dfile.encoding=UTF-8
.-Dclient.encoding.override=UTF-8
to JAVA_VENDOR.-Djboss.as.management.blocking.timeout=3600
- Restart JBoss server.
- Edit the
Guidelines for deploying Unica Insights on Apache Tomcat
You must follow a set of guidelines when you deploy Unica Insights on Apache Tomcat.
- Deploy the Insights.war file as an enterprise application on Tomcat Apache server.
- Complete the following tasks if your installation must support non-ASCII
characters, for example for Portuguese or for locales that require
multi-byte characters:
- Edit the setenv.sh file for the respective product instances
script in the bin directory under your tomcat instances
directory to add
-Dfile.encoding=UTF-8 - Dclient.encoding.override=UTF-8 to JAVA_VENDOR
. - Edit the setenv.sh file for the respective product instances
script in the bin directory under your tomcat instances
directory to add
-Dfile.encoding=UTF-8 - Dclient.encoding.override=UTF-8 to JAVA_VENDOR
. - Edit the setenv.sh file for the respective product instances
script in the bin directory under your tomcat instances
directory to add
-Dfile.encoding=UTF-8 - Dclient.encoding.override=UTF-8 to JAVA_VENDOR
. - Edit the setenv.sh file for the respective product instances
script in the bin directory under your tomcat instances
directory to add
-Dfile.encoding=UTF-8 - Dclient.encoding.override=UTF-8 to JAVA_VENDOR
. - Restart Tomcat.
- Edit the setenv.sh file for the respective product instances
script in the bin directory under your tomcat instances
directory to add
- If deploying in a production environment, you can add JVM heap setting for that tomcat instance in app-one/bin/setenv.sh file respectively for all the instances.