This content has been marked as final.
Show 2 replies
-
1. Re: XML Not found
jaikiran Oct 23, 2010 9:10 AM (in response to sjunejo)What does the code which tries to load that XML, look like? If you want the XMLs to be part of the classpath then a better place is JBOSS_HOME/server/< servername>/conf folder.
-
2. Re: XML Not found
sjunejo Oct 23, 2010 3:50 PM (in response to jaikiran)Hi Jai,
I want to provide this file with my WAR as a package and want to use in my WAR only. I am using following standard code to load XML file;
String exampleFilePath = "../examples/ofs-examples.xml"; <-- This path is relative to my WAR file like we use in our JSP pages for redirection
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(exampleFilePath);Thanks,
--
SJunejo