Tomcat Startup Error in RDM
Reported for version 10
Problem
At a start of Tomcat for RDM application, there is the following error.
Solution
The error may be caused by two possible reasons. The reason may either lay in the wrong configuration of RDM deployment descriptor or in Tomcat not loading the context descriptor properly. Therefore there are several quests which need to be taken into consideration and accomplished properly.
Firstly, verify the location of the file containing RDM deployment descriptor and JDBC driver file. RDM deployment descriptor should be located in [RDM]/tomcat/conf/Catalina/localhost/rdm.xml. The file contains definitions of two resources - jdbc/rdm and jdbc/rdm_repository.
If the rdm.xml file is located in the desired area, verify whether there is correct JDBC driver in [RDM]/tomcat/lib directory. If the driver is missing, copy it from [RDM]/runtime/lib/jdbc/mssql/sqljdbc4.jar to [RDM]/tomcat/lib.
If the error still remains although file containing RDM deployment descriptor and file with JDBC driver are in the proper areas, the procedure underneath could present a solution. The cause of the error is associated with Tomcat not loading the context descriptor properly. Switching off automatic deployment of web applications may provide a fix. To repair the issue, follow the steps below:
- Stop Tomcat.
- In [RDM]/tomcat/conf/server.xml, change the autoDeploy attribute of the element Host to false.
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="false">
Make sure that the [RDM]/tomcat/conf/Catalina/localhost/rdm.xml is still present.
Related articles