I'm uploaded my java ee online in a JBOSS server using openshift.
I'm trying to open an xml file with a servlet, (servlet location: src/main/java/myservlet/myservlet.java) I can access to my servlet if I try in web naviguator/java client with html output. My xml file is in src/main/resources/Liste.xml
I found in stackoverflow that I must use this with maven for deployment:
InputStream is = ClassName.class.getResourceAsStream("/Liste.xml");
But in my constructor I do this to parse my xml file:
File fichier = new File(nomFichier);
document = constructeur.parse(fichier);
So I don't really understand how to use getResourceAsStream...