Add a Java and Tomcat resource