Keep in mind, you must always supply the correct values for your database in the following attributes: password, username, url, and driverclassname 1 Tomcat 5.5.x, 6.0.x, 7.0.x The following shows an example Tomcat 5.5.x, 6.0.x or 7.0.x web context xml file with data source definition for an Oracle database: WEB-INF/web.xml WEB-INF/* The following shows an example Tomcat 5.5.x, 6.0.x or 7.0.x web context xml file with data source definition for a SQL Server database: WEB-INF/web.xml WEB-INF/* The following shows an example Tomcat 5.5.x, 6.0.x or 7.0.x web context xml file with data source definition for a DB2 database: WEB-INF/web.xml WEB-INF/* 2 Tomcat 8.0.x, 8.5.x, 9.0.x Choose one of the above Tomcat web context xml files based on your database type and add the following xml above the  elements. The following shows an example Tomcat 8.0.x, 8.5.x or 9.0.x web context xml file with data source definition for an Oracle database: WEB-INF/web.xml WEB-INF/*