Any other servlet is running fine on eclipse-apache/tomcat integration. But when I add a properties file in one of the classes, i get this error-
HTTP Status 500 - type Exception report
MessageDescription: The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.io.FileNotFoundException: xyz.properties(The system cannot find the file specified) java.io.FileInputStream.open(Native Method) java.io.FileInputStream.(Unknown Source) java.io.FileInputStream.(Unknown Source) xyz.DatabaseConnection(DatabaseAccess.java:23) xyz.HelloServlet.doGet(HelloServlet.java:22) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
Do I have to do some kind of modification in the web.xml file to let it know where the xyz.properties file exists ?
P.S - file and package name has been censored with "xyz".