Author: mbrohl
Date: Thu Jan 10 16:07:02 2019
New Revision: 1850953
URL:
http://svn.apache.org/viewvc?rev=1850953&view=revLog:
Fixed: Failed registration for virtual hosts with similar mount points
(OFBIZ-10765)
The name is now registered with the webbapp name prior to the context.
Modified:
ofbiz/ofbiz-framework/trunk/framework/catalina/src/main/java/org/apache/ofbiz/catalina/container/CatalinaContainer.java
Modified: ofbiz/ofbiz-framework/trunk/framework/catalina/src/main/java/org/apache/ofbiz/catalina/container/CatalinaContainer.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/catalina/src/main/java/org/apache/ofbiz/catalina/container/CatalinaContainer.java?rev=1850953&r1=1850952&r2=1850953&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/catalina/src/main/java/org/apache/ofbiz/catalina/container/CatalinaContainer.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/catalina/src/main/java/org/apache/ofbiz/catalina/container/CatalinaContainer.java Thu Jan 10 16:07:02 2019
@@ -500,12 +500,13 @@ public class CatalinaContainer implement
context.setParent(host);
context.setDocBase(location);
+ context.setName(appInfo.name);
+ context.setDisplayName(appInfo.name);
context.setPath(getWebappMountPoint(appInfo));
context.addLifecycleListener(new ContextConfig());
context.setJ2EEApplication("OFBiz");
context.setJ2EEServer("OFBiz Container");
context.setLoader(new WebappLoader(Thread.currentThread().getContextClassLoader()));
- context.setDisplayName(appInfo.name);
context.setDocBase(location);
context.setReloadable(ContainerConfig.getPropertyValue(configuration, "apps-context-reloadable", false));
context.setDistributable(contextIsDistributable);