Hi folks
I am a new with configuration
Right now, I have problem when loading XML file,
Below this my code
String testProperties = new File("webapps/mvnforum/Web-inf/classes/" +
OPTION_FILE_NAME).getAbsolutePath();
DOM4JConfiguration conf = new DOM4JConfiguration();
conf.setFileName(testProperties);
conf.load();
If I run this code in console, it works well (I must change the path to XML file, of
course)
but if I run this code in Servlet Container like Resin or Tomcat, I will receive an
error
"XML file has no top-element. All well-formed XML files have a single top-level
element. Nested exception: file:/C:/resin-2.1.9:1: XML file has no top-element. All
well-formed XML files have a single top-level element."
And I am sure I check the syntax of XML file carefully and the path to XML file is OK
Any body here get the same error like me.
Please help me.
Thanks iin advance
-----------------------------------------------
Nguyen Huu Mai
Software Developer
Email: [EMAIL PROTECTED]
web site: www.myvietnam.net