Iam trying to load an xml file which is in the WEB-INF/classes/report folder of war file, but with no luck..
Note: Due to some restrictions I dont want to use ServletContext/any thing related to servlet..I want to develop only plain
java related code which does loading
the ..
System.out.println("9:"+DataDiscrepancyXMLParser.class.getClassLoader().getResource("/WEB-INF/classes/lsorDataDiscrepancyReport.xml").getPath());
I deployed in
jboss and I get the below system output:
C:/softwares/Middleware/user_projects/domains/lsor_domain/servers/AdminServer/tmp/_WL_user/lsorFS/ie6ar8/war/WEB-INF/lib/_wl_cls_gen.jar!/lsorDataDiscrepancyReport.xml
When I try to read it I get Filenotfundexception..
My assumpton was that I would instead get the path as "/web-inf/classes/sorDataDiscrepancyReport.xml.
Please suggest