I want to get the real path of a file in WebLogic 9.2. When I do this via an enterprise application it gives the real path. Whereas, when I do it via an EAR file then it returns null. I also found out that this is a security feature introduced by WebLogic 9.2. I also tried using a configuration tag in weblogic-application.xml but it didn't work. Please let me know if there is a work around for this.
This gave me nightmares. I don't know why weblogic behaves differently when deployed as WAR instead of exploded. There are 2 ways to fix this - domain level and webapp level. please visit this blog entry for the same.
Andy Kay wrote:This gave me nightmares. I don't know why weblogic sometimes behaves differently when deployed as WAR instead of exploded.
Weblogic behaves like this because THIS IS EXACTLY what is defined in the J2EE specification. This is not a problem and is an expected and correct behavior as stated in specs. This is also mentioned in javadocs.