How to change the context root of the application?
Let’s assume that the context root of the application is dliteweb.
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
language
xml
<context-root> <dliteweb> </context-root>
Note
title
Note
This step is applicable only for the JBoss application server. If you use Tomcat or any other app server, proceed to step 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:
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:
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:
For JNDI data sources, the data source name should be specified. Let's assume that the JNDI data source name is DliteCTDS.
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:
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:
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.
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:
It is essential to specify the work folder path. Let's assume that the work folder path is D:/Canvas19/dliteweb.
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: