title: File path gwt app hosted mode
body: <p>I'd like to know how to get the path of a file to access to it in hosted mode. My app is reading some files using a servlet. Originally the files are located under the folder "war" (e.g. "war/data/file1.txt"), in development everything works well, the servlet reads the file and sends the data to the client. However, I'm having issues when I deploy the app in Tomcat.</p>
  
  <p>I copied the content of the folder war, and put it in a folder under the "webapps" directory (in Tomcat). In development mode, I access to the data file using the path "data/file1.txt" but this doesn't work in hosted mode because I found out that when using that path, the servlet looks for the file in the "bin" folder of Tomcat installation directory, not in the folder of the application.</p>
  
  <p>So, I'd like to know how to programatically find the correct path to access the file and avoid problems when deploying the application to Tomcat or any other server.</p>