By default, the invoker servlet is disabled in modern versions of Tomcat.
This means that the second method won't work unless you uncomment the entries for it in TOMCAT_HOME/conf/server.xml.
Read this to see why you shouldn't:
http://jakarta.apache.org/tomcat/faq/misc.html#evil