Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleHow to change the context root of the application?

Let’s assume that the context root of the application is dliteweb.

  1. In the JBoss EAP 7.x Installed folder (e.g. 'D:\Canvas\JBoss EAP 7.x Installed folder\standalone\deployments\ctmodelhouse.war \WEB-INF\jboss-web.xml’), specify the context root in the jboss-web.xml file, as shown in the following code snippet:

    Code Block
    languagexml
    <context-root> <dliteweb> </context-root>


    Note
    titleNote

    This step is applicable only for the JBoss application server. If you use Tomcat or any other app server, proceed to step 2. 


  2. In the CTResources.jar folder (e.g. ‘D:\Canvas\ JBoss EAP 7.x Installed folder\CTWeb\Dependencies\Canvas\CTResources.jar\CanvasApplicationContext.json’), specify the context root in CanvasApplicationContext.json file, as shown in the following code snippet:

    Code Block
    languagebash
    {
    	"contextRoot": "<dliteweb>",
    	"applicationId": "MODELHOUSE",
    	"displayName": "CTWEB",
    	"isService": "Y"
    }


  3. In the application Resource.jar folder (e.g. D:\Canvas\ JBoss EAP 7.x Installed folder\CTWeb\CTWebResources\src\main\resource\securityconfig.properties), specify the default context root in securityconfig.properties file, as shown in the following code snippet: 

    Code Block
    languagexml
    DEFAULT_CONTEXT_ROOT=/<dliteweb>
    ALL_CONTEXT_ROOTS=<dliteweb>


  4. In the application Resource.jar folder (e.g. D:\Canvas\ JBoss EAP 7.x Installed folder\CTWeb\CTWebResources\src\main\resource\exportconfig.properties), specify the context root as the context path in exportconfig.properties file, as shown in the following code snippet:

    Code Block
    languagexml
    SESSION_TIMEOUT_URL=/<dliteweb>/index.jsp 
    CONTEXT_PATH= /<dliteweb>


    For JNDI data sources, the data source name should be specified. Let's assume that the JNDI data source name is DliteCTDS.

  5. In the application Resource.jar folder (e.g. D:\Canvas\ JBoss EAP 7.x Installed folder\CTWeb\CTWebResources\src\main\resource\databaseconfig.properties), specify the JNDI data source name in databaseconfig.properties file, as shown in the following code snippet:

    Code Block
    languagexml
    CT_FW_DATASOURCE =java:/<DliteCTDS> 
    CT_FW_FILEIMPORT_DATASOURCE=java:/<DliteCTDS>


  6. In the JBoss EAP 7.x Installed folder (e.g. 'D:\Canvas\JBoss EAP 7.x Installed folder\standalone\configuration\standalone.xml’), specify the JNDI data source name in standalone.xml file, as shown in the following code snippet:

    Code Block
    languagexml
    <datasource jndi-name="java:jboss/datasources/<DliteCTDS>" pool-name="<DliteCTDS>" enabled="true">
                <connection-url>jdbc:oracle:thin:@10.12.25.28:1521:SIR13714</connection-url>
                <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
                <driver>OracleJDBCDriver</driver>
                <security>
                    <user-name><SCHEMA_NAME></user-name>
                    <password><SCHEMA_NAME_PWD></password>
                </security>
    </datasource>


    Note
    titleNote

    Steps 6 and 7 are applicable only for the JBoss application server. If you use Tomcat or any other app server, proceed to step 8. 


  7. In the JBoss EAP 7.x Installed folder (e.g. 'D:\Canvas\JBoss EAP 7.x Installed folder\standalone\deployments\ctmodelhouse.war \WEB-INF\jboss-web.xml’), specify the JNDI data source name in the jboss-web.xml file, as shown in the following code snippet:

    Code Block
    languagexml
    <resource-ref>
                <res-ref-name>jdbc/CTwebCanvasDataSource</res-ref-name>
                <jndi-name>java:jboss/datasources/<DliteCTDS></jndi-name>
    </resource-ref>


    It is essential to specify the work folder path. Let's assume that the work folder path is D:/Canvas19/dliteweb

  8. In the application Resource.jar folder (e.g. D:\Canvas\ JBoss EAP 7.x Installed folder\CTWeb\CTWebResources\src\main\resource\MyImplementation.properties), specify the work folder and centralized work folder paths in MyImplementation.properties file, as shown in the following code snippet:

    Code Block
    languagexml
    CT_WORK_FOLDER_PATH=D:/Canvas19/dliteweb                
    CT_WORK_CENTRALIZED_FOLDER_PATH=D:/Canvas19/dliteweb   


    It is essential to specify the WAR file name. Let's assume that the WAR file name is dliteweb

  9. Specify the Web Application Resource (WAR) file name in build.xml file, as shown in the following code snippet: 

    Code Block
    languagexml
    <property name="dliteweb" value="${DIST_ROOT}/<dliteweb>.war" />


...