Hi,
i was able to find the reason, just wanted to share it..
as mentioned in
J2EE API Specification, the function
getServletContext().getRealPath("/WEB-INF/eos.xml");
will fail and return null when the resource is inside a war file...
so thatz why its failing in my case....
so i tried using
getServletContext().getResource() this has a new problem..
each time.. the application is access the WLS server extracts the ear to the wldonotdelete folder and creates folder each time the server is started and when the application is accessed first time.
so i cant give
getServletContext().getResource("/eos.xml")
because... when this xml is extracted.. its named as eosXXXXX.xml , where this XXXXX is some random number.. each time..
so is there anyother solution ??