Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

absolute file path in a war file

843836Jan 15 2004 — edited Feb 20 2004
Hi,
I have a war file which I have deployed on a Weblogic 7 server.I have a startup servlet which tries to read an xml file located in the WEB-INF folder.I need to have the absolute path to the file so that my parser can read the xml file.
ServletContext.getRealPath() returns null when the application is in a war format.
Would be grateful for any help.

regards
Vikram

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2004
Added on Jan 15 2004
26 comments
3,458 views