WAR Utility properties
In earlier ENOVIA software versions, some properties were modified by editing the ematrix.xml file to make the tool behave differently. In V6R2012 and later, the ematrix.xml file is no longer present and the desired values are passed using the following environment variables:
Previous property name in ematrix.xml | New environment variable name | Description | Possible Values | Equivalent warutil_setup Command-Line Options |
---|---|---|---|---|
createstaticzip | WARUTIL_CREATESTATICZIP | Create a zip file | Yes (default) No | -z, -createstaticzip -Z, -donotcreatestaticzip |
createearfile | WARUTIL_CREATEEARFILE | Create an app server archive | Yes (default) No | -c, -createstaticcontentinwar -C, - donotcreatestaticcontentinwar |
staticcontentinwar | WARUTIL_STAICCONTENTINWAR | Put static data in generated war archive | Yes (default) No | -e, -createearfile -E, - donotcreateearfile |
When adding properties or servlets, be sure that
each has a unique ID. For example, servlet id="Servlet_20"
or context-param
id= "ContextParam_30"
.
As installed with the 3DSpace Service, the web.xml file is configured for use with ENOVIA apps and contains the properties and values shown below. Additional parameters may be added. Each of these properties, along with parameters that can be added to the file, are described in the following sections.
This is not the complete web.xml file -- only the parameter and servlet definitions are shown.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app id="WebApp_1"> <display-name>ematrix</display-name> <context-param id="ContextParam_1"> <param-name>properties</param-name> <param-value>@installDir@/managed/properties/framework.properties</param-value> </context-param> <context-param id="ContextParam_2"> <param-name>ematrix.server.host</param-name> <param-value></param-value> </context-param> <context-param id="ContextParam_3"> <param-name>ematrix.login.page</param-name> <param-value>/emxLogin.jsp</param-value> </context-param> <context-param id="ContextParam_4"> <param-name>ematrix.login.failure.page</param-name> <param-value>/emxLogin.jsp</param-value> </context-param> <context-param id="ContextParam_5"> <param-name>ematrix.web.app</param-name> <param-value>true</param-value> </context-param> <context-param id="ContextParam_6"> <param-name>emxLogin.FormAction</param-name> <param-value>/@webAppName@/servlet/login</param-value> </context-param> <context-param id="ContextParam_7"> <param-name>emxLogin.FrameworkTarget</param-name> <param-value>common/emxNavigator.jsp</param-value> </context-param> <context-param id="ContextParam_8"> <param-name>ematrix.page.path</param-name> <param-value>/@webAppName@</param-value> </context-param> <context-param id="ContextParam_9"> <param-name>ematrix.home.page</param-name> <param-value>/common/emxNavigator.jsp</param-value> </context-param> <context-param id="ContextParam_10"> <param-name>ematrix.load.program</param-name> <param-value>eServiceListSchemaNames.tcl</param-value> </context-param> <context-param id="ContextParam_11"> <param-name>ematrix.encoding</param-name> <param-value>UTF8</param-value> </context-param> <context-param id="ContextParam_12"> <param-name>ematrix.audit.log</param-name> <param-value>true</param-value> </context-param> <!-- legacy servlet properties <context-param id="ContextParam_13"> <param-name>ematrix.servlet.ui</param-name> <param-value>true</param-value> </context-param> <context-param id="ContextParam_15"> <param-name>ematrix.timer.agent</param-name> <param-value></param-value> </context-param> <context-param id="ContextParam_16"> <param-name>ematrix.timer.agent.key</param-name> <param-value></param-value> </context-param> <context-param id="ContextParam_17"> <param-name>ematrix.timer.interval</param-name> <param-value>21600</param-value> </context-param> <context-param id="ContextParam_18"> <param-name>ematrix.timer.command</param-name> <param-value>execute program emxProjectSpace -method performTaskEscalation</param-value> --><!-- Define our servlets --> <servlet id="Servlet_1"> <servlet-name>Framework</servlet-name> <servlet-class>com.matrixone.servlet.Framework</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet id="Servlet_2"> <servlet-name>LogoutServlet</servlet-name> <servlet-class>com.matrixone.servlet.LogoutServlet</servlet-class> </servlet> <servlet id="Servlet_4"> <servlet-name>MatrixXMLServlet</servlet-name> <servlet-class>com.matrixone.servlet.MatrixXMLServlet</servlet-class> </servlet> <servlet id="Servlet_7"> <servlet-name>MatrixExchangeServlet</servlet-name> <servlet-class>com.matrixone.servlet.MatrixExchangeServlet</servlet-class> </servlet> <servlet id="Servlet_12"> <servlet-name>LoginServlet</servlet-name> <servlet-class>com.matrixone.servlet.LoginServlet</servlet-class> </servlet> <servlet id="Servlet_15"> <servlet-name>FrameworkServlet</servlet-name> <servlet-class>com.matrixone.servlet.FrameworkServlet</servlet-class> </servlet> <servlet id="Servlet_17"> <servlet-name>WorkspaceServlet</servlet-name> <servlet-class>com.matrixone.servlet.WorkspaceServlet</servlet-class> </servlet> <servlet id="Servlet_18"> <servlet-name>fcs</servlet-name> <servlet-class>com.matrixone.fcs.fcs.FcsServlet</servlet-class> </servlet> <servlet id="Servlet_19"> <servlet-name>audit</servlet-name> <servlet-class>com.matrixone.servlet.AuditServlet</servlet-class> <load-on-startup>2</load-on-startup> </servlet>
emxLogout.jsp
page for an
external CAS authentication upon logout.Consequently, replace the following section of the web.xml file:
<context-param id="ContextParam_logout"> <param-name>ematrix.logout.page</param-name> <param-value>/common/emxCloudLogout.html</param-value></context-param>
with:
<context-param id="ContextParam_logout"> <param-name>ematrix.sso.absolute.logout.url</param-name> <param-value>#CAS_casServerLogoutURL#</param-value> </context-param>
where #CAS_casServerLogoutURL#
may be, for example: https://vdevpril258plp.ux.dsone.3ds.com:453/iam/logout