Gotchas with deploying Grails apps

Some things to check when deploying Grails packages:

Ensure tomcat is stopped if running under Tomcat
Run grails clean – always
Remove $CATALINA_HOME/work/Catalina/localhost/ directory
Remove $CATALINA_HOME/webapps/ROOT.war
Remove (rm -rf) $CATALINA_HOME/webapps/ROOT/
If necessary – increase cache size in $CATALINA_HOME/conf/context.xml
If deploying to SSL (https) ensure that a valid SSL crtificate is in place – or you will most likely get a Deployment error which is virtually impossible to trace

ALSO: rm /opt/tomcat/webapps/ROOT/WEB-INF/lib/bcprov-jdk14-136.jar

Copy the new package to $CATALINA_HOME/webapps/ as ROOT.war if it is to be a base URL based site

Restart tomcat