public class PortalHostConfig
extends org.apache.catalina.startup.HostConfig
Tomcat will always process XML descriptors first, then packaged WARs, and
then exploded WARs. However, Tomcat does not have a predictable load order
for the XML descriptors or the WARs. It relies on Java's
java.io.File.list() implementation which is not predictable.
This class overrides several of the deploy methods to ensure that the files
are always processed alphabetically (case sensitive).
To use this class, modify Tomcat's conf/server.xml. Find the
Host element and add the attribute hostConfigClass.
See https://issues.liferay.com/browse/LEP-2346.
See HostConfig.
| Constructor and Description |
|---|
PortalHostConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deployDescriptors(java.io.File configBase,
java.lang.String[] files) |
protected void |
deployDirectories(java.io.File appBase,
java.lang.String[] files) |
protected void |
deployWARs(java.io.File appBase,
java.lang.String[] files) |
protected java.lang.String[] |
sortFiles(java.lang.String[] files) |
addGlobalRedeployResources, addServiced, addWatchedResources, check, check, checkResources, checkResources, checkUndeploy, createDigester, deployApps, deployApps, deployDescriptor, deployDirectory, deploymentExists, deployWAR, filterAppPaths, getConfigBaseName, getContextClass, getDeploymentTime, isCopyXML, isDeployed, isDeployXML, isServiced, isUnpackWARs, lifecycleEvent, manageApp, removeServiced, returnCanonicalPath, setContextClass, setCopyXML, setDeployXML, setUnpackWARs, start, stop, unmanageAppprotected void deployDescriptors(java.io.File configBase,
java.lang.String[] files)
deployDescriptors in class org.apache.catalina.startup.HostConfigprotected void deployDirectories(java.io.File appBase,
java.lang.String[] files)
deployDirectories in class org.apache.catalina.startup.HostConfigprotected void deployWARs(java.io.File appBase,
java.lang.String[] files)
deployWARs in class org.apache.catalina.startup.HostConfigprotected java.lang.String[] sortFiles(java.lang.String[] files)