for (DirContext altDirContext : altDirContexts) {
if (altDirContext instanceof BaseDirContext){
path = ((BaseDirContext) altDirContext).getRealPath(
- "META-INF/resources/" + name);
+ "/META-INF/resources" + name);
if (path != null)
return path;
}
// Check the alternate locations
for (DirContext altDirContext : altDirContexts) {
try {
- obj = altDirContext.lookup("META-INF/resources/" + name);
+ obj = altDirContext.lookup("/META-INF/resources" + name);
if (obj != null)
return obj;
} catch ( NamingException ex) {
for (DirContext altDirContext : altDirContexts) {
if (altDirContext instanceof BaseDirContext)
bindings = ((BaseDirContext) altDirContext).doListBindings(
- "META-INF/resources/" + name);
+ "/META-INF/resources" + name);
else {
try {
bindings = altDirContext.listBindings(name);
for (DirContext altDirContext : altDirContexts) {
if (altDirContext instanceof BaseDirContext)
attrs = ((BaseDirContext) altDirContext).doGetAttributes(
- "META-INF/resources/" + name, attrIds);
+ "/META-INF/resources" + name, attrIds);
else {
try {
attrs = altDirContext.getAttributes(name, attrIds);