# Changes between Version 12 and Version 13 of tap

Ignore:
Timestamp:
Mar 9, 2015 6:35:56 PM (7 years ago)
Comment:

--

### Legend:

Unmodified
 v12 Tomcat gets users and roles from conf/tomcat-users.xml by default. We are going to change this in order to get users and roles from a given database. First of all, include both derbyclient.jar and derbynet.jar in $CATALINA_HOME/lib. After doing that, we need to add a new resource called “jdbc/admin” in ''GlobalNamingResurces'': First of all, include both derbyclient.jar and derbynet.jar in$CATALINA_HOME/lib. After doing that, we need to add a new resource called “jdbc/admin” in ''GlobalNamingResources'': We strongly recomend you before run Tomcat, set JAVA_OPTS="-Xms256m -Xmx4096m -XX:+DisableExplicitGC -Dcom.sun.management.jmxremote -XX:PermSize=256m -XX:MaxPermSize=512m -XX:-UseGCOverheadLimit" Run Tomcat {{{ /bin/startup.sh }}} Check the Initialization {{{ tail -f /deployment_test/apache-tomcat-7.0.59/logs/catalina.out }}} == Initial TAP setup == Before deploying TAP you need to configure some files in order to adapt it for your needs. WEB_INF/classes/global_variables.properties You need to configure some files in order to adapt it for your needs. Shutdown Tomcat and go to /deployment_test/apache-tomcat-7.0.59/webapps/tap Configure WEB_INF/classes/global_variables.properties {{{ You need to create a recaptcha https://www.google.com/recaptcha/admin#list and set both private and public keys in the previous file. You also need to set your base url like localhost:8080/tap or yourhost/tap, the managers emails which allow people to keep in touch of the group events (when user wants to join a group, etc) WEB-INF/classes/mail.properties Configure WEB-INF/classes/mail.properties {{{ mail.port = port_number === Thredds and TAP deployment === The last part of this tutorial is manage to start both applications successfully. Move both thredds.war and tap.war to $CATALINA_HOME/webapps. Start the Tomcat instance and the Derby network instance. If Thredds is not able to start due to a directory error, please create a folder called “thredds” in$CATALINA_HOME/content to solve that issue. Start the Tomcat instance and the Derby network instance. If Thredds is not able to start due to a directory error, please create a folder called “thredds” in \$CATALINA_HOME/content to solve that issue. == First steps in TAP ==