add snippets for tomcat and solr