DirContext resources = context.getResources();
if (resources != null) {
- String fullPath = context.getName() + normPath;
+ String fullPath = context.getPath() + normPath;
String hostName = context.getParent().getName();
try {
resources.lookup(path);
keyProperties.append(",servlet=");
keyProperties.append(c.getName());
} else if (c instanceof Context) {
- String contextName = ((Context)container).getName();
+ keyProperties.append(",context=");
+ String contextName = c.getName();
if (!contextName.startsWith("/")) {
- contextName = "/" + contextName;
+ keyProperties.append('/');
}
- keyProperties.append(",context=");
keyProperties.append(contextName);
} else if (c instanceof Host) {
keyProperties.append(",host=");