Defining context root entries
You must add the WAR file mappings for defining the context root in the build.properties.in file. This ensures that the web applications that are installed on single application server have unique context roots.
About this task
Note: Multiple EARs or context roots require additional
memory for the application server JVM. Testing has shown that the
deployment of a second application EAR file requires 2.5 - 3.5 times
the memory of a single EAR. Supporting two deployments may require
up to 2.5 GB of heap space and 1.2 GB of permanent space.
During installation, you can avoid out-of-memory errors by setting JVM-specific properties (ADDITIONAL_ANT_JAVA_TASK_ARGS and ADDITIONAL_ANT_COMPILER_TASK_ARGS).
To add these entries, do the following:
Procedure
Results
Note: If you provide yfs.context.namespace
property and don't provide the mapping of the WAR files in the build.properties.in
file, the buildEAR.cmd (buildear.sh for UNIX/Linux) script will throw
an error forcing the user to fill in the WAR file mappings. And if
you provide the mapping of the WAR files in the build.properties.in
file and don't provide yfs.context.namespace property, the WAR file
mappings are ignored.
Also, the yfs.context.namespace property value and the WAR file mappings name should be different for each EAR that you want to deploy on the same application server.