|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.startup.HostConfig
com.liferay.support.tomcat.startup.PortalHostConfig
public class PortalHostConfig
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 http://issues.liferay.com/browse/LEP-2346.
See org.apache.catalina.startup.HostConfig.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.catalina.startup.HostConfig |
|---|
org.apache.catalina.startup.HostConfig.DeployedApplication |
| Field Summary |
|---|
| Fields inherited from class org.apache.catalina.startup.HostConfig |
|---|
appBase, configBase, configClass, contextClass, copyXML, deployed, deployXML, digester, host, invalidWars, oname, serviced, sm, unpackWARs |
| Constructor Summary | |
|---|---|
PortalHostConfig()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.catalina.startup.HostConfig |
|---|
addGlobalRedeployResources, addServiced, addWatchedResources, appBase, check, check, checkResources, checkUndeploy, configBase, createDigester, deployApps, deployApps, deployDescriptor, deployDirectory, deploymentExists, deployWAR, filterAppPaths, getConfigBaseName, getConfigClass, getContextClass, getDeploymentTime, isCopyXML, isDeployed, isDeployXML, isServiced, isUnpackWARs, lifecycleEvent, manageApp, removeServiced, returnCanonicalPath, setConfigClass, setContextClass, setCopyXML, setDeployXML, setUnpackWARs, start, stop, unmanageApp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortalHostConfig()
| Method Detail |
|---|
protected void deployDescriptors(java.io.File configBase,
java.lang.String[] files)
deployDescriptors in class org.apache.catalina.startup.HostConfig
protected void deployDirectories(java.io.File appBase,
java.lang.String[] files)
deployDirectories in class org.apache.catalina.startup.HostConfig
protected 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||