Hello everyone! i am new to Java EE programming and have successfully deployed a java application for the first time! The application works fine when im testing on my local machine, but when i get the app online, it fails to locate a .txt file that is included in the WEB-INF folder. I am not too knowledgable about deploying java to the web, and im using my uncles web hosting service. He uses Plesk to manage this many websites, and his server has Tomcat 7.x. To get my java app on my domain, i simply give Plesk a .war file and everything else is done automatically.
This code works for me when i am on my local machine:
ItemIO is looking to accomplish this:
Once the app goes online, im not really sure what source i should be specifying. to create this File object. Any help or ideas would be greatly appreciated.
I would like to avoid the solution of putting the .txt in a directory that is accessible by the public.