Fine tuning build for running tomcat and jboss examples