7.13 Deploying RAOR.war in Tomcat
This section describes how to deploy the RAOR.war file in Tomcat.
To deploy RAOR.war in Tomcat, follow these steps:
- Create datasource for RAOR context in Tomcat by editing server.xml in the
<TOMCAT_HOME_DIR>/conf directory.
Update database details as shown in the following sample:
Note:
Context name must be the directory name under webapps.<Context path="/RAOR" docBase="/scratch/ofsaaapp/apache-tomcat-8.0.32/webapps/RAOR" debug="0" reloadable="false" crossContext="true"><Loader delegate="true"/> <Resource auth="Container" name="jdbc/FICMASTER" type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver" username="act_obiconf" password="password" url="jdbc:oracle:thin:@whf00aqr:1521/DEVUT08SPRINT" maxTotal="100" maxIdle="30" maxWaitMillis="10000" removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"/> <Resource auth="Container" name="jdbc/<infodom name>". For example, OFSAAAIINFO type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver" username="act_obiatm" password="password" url="jdbc:oracle:thin:@whf00aqr:1521/DEVUT08SPRINT" maxTotal="100" maxIdle="30" maxWaitMillis="10000" removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"/> <Resource auth="Container" name="jdbc/<infodom name>CNF". For example, OFSAAAIINFOCNF type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver" username="act_obiatm" password="password" url="jdbc:oracle:thin:@whf00aqr:1521/DEVUT08SPRINT" maxTotal="100" maxIdle="30" maxWaitMillis="10000" removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"/> </Context> - Copy RAOR.war file to $TOMCAT_HOME/webapps directory.
- Grant 755 (rwxr-xr-x) permissions to the RAOR.war file.
- Start the Tomcat server.
- Update install.properties file in $TOMCAT_HOME/webapps/RAOR/conf
directory as follows:
- sql.config.datasource.jndi.name=java:comp/env/jdbc/FICMASTER
- sql.atomic.datasource.jndi.name=java:comp/env/jdbc/OFSAAAIINF
- sql.metadom.datasource.jndi.name=java:comp/env/jdbc/OFSAAAIINFOCNF
Note:
Name must match the Resource Name defined in server.xml. - Update application-env.properties file in $TOMCAT_ HOME/webapps/RAOR/conf
directory as
follows:
comment the #spring.profiles.active=JMS,JMSApplicationCache,JMSGateway,JMSFeedBackGateway tag - Copy jms-api-1.1-rev-1.jar and javax.ws.rs-api-2.0-m02.jar to $TOMCAT_HOME/webapps/RAOR/WEB-INF/lib directory.
- Restart all app and web servers.