myapp java application works if I put the applications folder under the root Tomcat serving folder, ie webapps/myapp

But if a move it under subfolder, ie webapps/servlets/myapp the error appears of not finding the resource.

HTTP Status 404 - /servlets/androidserver/

type Status report

message /servlets/androidserver/

description The requested resource (/servlets/androidserver/) is not available.
Apache Tomcat/7.0.22
Is there a way to make running the application folder independent?