My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 168: Lookup of jmesa.properties may fail at WebLogic Server
1 person starred this issue and may be notified of changes. Back to list
 
Project Member Reported by jeff.johnston.mn@gmail.com, Dec 5, 2008
Some containers like WebLogic Server return null when getRealPath() is
invoked.

This issues is also described in the following defect (for Struts 2):
 https://issues.apache.org/struts/browse/WW-186

A solutions to the problem is also described in the above defect. Here
is a summery of the solution:
[code]
String path = context.getRealPath(path);

if (path == null) {
 // resources are in a .war (JBoss, WebLogic)
 java.net.URL url = context.getResource(path);
 path = url.getPath();
}
[/code]

Powered by Google Project Hosting