I can't load correctly a file xml from my servlet: that's the code:
try{
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse("db.xml");
} catch (Exception ex) {
ex.printStackTrace();
out.print("File Not Found!");
}
the db.xml is inside the classes folder with the class and the java file...