| 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 |
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] |