Configuring WEB.xml

You can configure the WEB.xml to complete the installation of ENOVIA CPG Accelerator for Artwork and LabelingOverlay.


Before you begin: ENOVIA CPG Accelerator for Artwork and Labeling Overlay should be installed in either of the following mode:
  • Windows UI Mode.
  • UNIX Mode.

For more information, see Installing ENOVIA Applications in the Live Collaboration - Web Applications Installation Guide.

  1. Add the following entries if they are not present in WEB.xml.

    <filter>
    		<filter-name>CustomFilterCPD</filter-name>
    		<filter-class>com.matrixone.servlet.CustomFilter</filter-class>
    		<init-param>
    			<param-name>ematrix.customDirName</param-name>
    			<param-value></param-value>
    		</init-param>
    		<init-param>
    			<param-name>ematrix.customFilePrefix</param-name>
    			<param-value>CPD_</param-value>
    		</init-param>
    	</filter>
    <!-- Start CPD Filters mapping for V6R2011x -->
    <filter-mapping>
    		<filter-name>CustomFilterCPD</filter-name>
    		<url-pattern>/common/*</url-pattern>
    	</filter-mapping>
    	<filter-mapping>
    		<filter-name>CustomFilterCPD</filter-name>
    		<url-pattern>/components/*</url-pattern>
    	</filter-mapping>
    <filter-mapping>
    		<filter-name>CustomFilterCPD</filter-name>
    		<url-pattern>/teamcentral/*</url-pattern>
    	</filter-mapping>
    	<filter-mapping>
    		<filter-name>CustomFilterCPD</filter-name>
    		<url-pattern>/common/scripts/*</url-pattern>
    </filter-mapping>
    <!-- End CPD Filters mapping for V6R2011x -->

  2. Add the following entries in WEB.xml.

    <filter>
    		<filter-name>CustomFilterAWL</filter-name>
    		<filter-class>com.matrixone.servlet.CustomFilter</filter-class>
    		<init-param>
    			<param-name>ematrix.customDirName</param-name>
    			<param-value></param-value>
    		</init-param>
    		<init-param>
    			<param-name>ematrix.customFilePrefix</param-name>
    			<param-value>AWL_</param-value>
    		</init-param>
    	</filter>
    
    
    <!-- Start AWL Filters mapping for V6R2011x -->
    	<filter-mapping>
    		<filter-name>CustomFilterAWL</filter-name>
    		<url-pattern>/common/*</url-pattern>
    	</filter-mapping>
    	<filter-mapping>
    		<filter-name>CustomFilterAWL</filter-name>
    		<url-pattern>/components/*</url-pattern>
    	</filter-mapping>
    	<filter-mapping>
    		<filter-name>CustomFilterAWL</filter-name>
    		<url-pattern>/productline/*</url-pattern>
    	</filter-mapping>
    	<filter-mapping>
    		<filter-name>CustomFilterAWL</filter-name>
    		<url-pattern>/configuration/*</url-pattern>
    	</filter-mapping>
    <!-- End AWL Filters mapping for V6R2011x -->
    

  3. Add the following entries in WEB.xml.


    • Entries for WebLogic server
      <filter>
                      <filter-name>HTMLDOCTYPEFilter_WL</filter-name>
                      <filter-class>com.matrixone.apps.framework.ui.HTMLDOCTYPEFilter_WL</filter-class>
               </filter>
      
               <filter-mapping>
                      <filter-name>HTMLDOCTYPEFilter_WL</filter-name>
                      <url-pattern>*.jsp</url-pattern>
               </filter-mapping>
    • Entries for all other servers
      <filter>
              <filter-name>HTMLDOCTYPEFilter</filter-name>
              <filter-class>com.matrixone.apps.framework.ui.HTMLDOCTYPEFilter</filter-class>
      </filter>
      
      <filter-mapping>
              <filter-name>HTMLDOCTYPEFilter</filter-name>
              < url-pattern>*.jsp</url-pattern>
      </filter-mapping>

  4. Add the following entries in WEB.xml.

    <!-- TomCat UTF-8 setting -->
           <filter>
               <filter-name>Set Character Encoding</filter-name>
               <filter-class>com.matrixone.servlet.SetCharacterEncodingFilter</filter-class>
    
               <init-param>
                     <param-name>encoding</param-name>
                     <param-value>UTF-8</param-value>
               </init-param>
           </filter>
    
    <!-- TomCat UTF-8 filter mapping -->
           <filter-mapping>
                  <filter-name>Set Character Encoding</filter-name>
                  <url-pattern>/*</url-pattern>
           </filter-mapping>
    

  5. Configure the following WebLogic WAR file Deployment related Settings.


    • In the Domain > Web applications of the WebLogic server Admin console, select Archived Real Path Enabled checkbox. This makes an entry into WebLogic servers domain config.xml as below.
      <web-app-container>
              <show-archived-real-path-enabled>true</show-archived-real-path-enabled>
      </web-app-container>
      
    • Add the following entries in weblogic.xml.
      <container-descriptor>
              <show-archived-real-path-enabled>true</show-archived-real-path-enabled>
      </container-descriptor>
      

      Note: The value of <show-archived-real-path-enabled> that is set in the web application has precedence over the value set at the domain level.

  6. Configure the following UTF - 8 Related Settings for WebLogic deployment settings.


    • Add the following entries in WEB.xml under the ContextParam, use a unique number for the context-param id tag. For example, if number 11 is already used for context-param id, then use number 12.
      <context-param id="ContextParam_12">
              <param-name>weblogic.httpd.inputCharset./*</param-name>
              <param-value>UTF-8</param-value>
      </context-param>
    • Uncomment the following lines in weblogic.xml:
      <charset-params>
              <input-charset>
              <resource-path>/*</resource-path>
              <java-charset-name>UTF8</java-charset-name>
              </input-charset>
      </charset-params>