while (entryName != null) {
if (entryName.startsWith("META-INF/resources/")) {
context.addResourceJarUrl(url);
break;
}
jar.nextEntry();
entryName = jar.getEntryName();
}
} else if ("file".equals(url.getProtocol())) {
FileDirContext fileDirContext = new FileDirContext();
fileDirContext.setDocBase(new File(url.toURI()).getAbsolutePath());