Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TEAM Engine context.xml for Tomcat 9

TEAM Engine context.xml for Tomcat 9

TEAM Engine has instructions for usage with Tomcat 7, however using it with Tomcat 9 requires some changes to the context.xml file to work. These changes may also work with Tomcat 8/8.5.

Install this file in webapps/teamengine/context.xml.

<Context reloadable="true">
<Realm className="com.occamlab.te.realm.PBKDF2Realm" root="${TE_BASE}/users"/>
<Resource auth="Container" description="Derby database for EPSG geodetic parameters" driverClassName="org.apache.derby.jdbc.EmbeddedDriver" maxTotal="8" maxIdle="4" name="jdbc/EPSG" password="" type="javax.sql.DataSource" url="jdbc:derby:EPSG/7.09;create=true" username=""/>
<WatchedResource>${TE_BASE}/config.xml</WatchedResource>
<WatchedResource>${TE_BASE}/scripts</WatchedResource>
<Resources>
<PreResources base="${TE_BASE}/resources/docs" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/docs" />
<PreResources base="${TE_BASE}/scripts" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/about" />
<PreResources base="${TE_BASE}/users" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/reports" />
<PreResources base="${TE_BASE}/resources/site" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/site" />
<PreResources base="${TE_BASE}/lib" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/WEB-INF/lib" />
</Resources>
<!-- improve startup time -->
<JarScanner scanClassPath="false"/>
</Context>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment