Magnolia 4.5 reached end of life on June 30, 2016. This branch is no longer supported, see End-of-life policy.
Java Web Application (webapp) is a collection of servlets, HTML pages, classes and other resources bundled together and run on a servlet container. The following items can exist in a webapp:
The directory structure is the container that holds the components of a webapp. The first step in creating a Magnolia webapp is creating this structure. The following table describes what each directory should contain.
Files with cached content.
Files extracted from
Magnolia log files.
Meta information files, e.g. from Maven.
Templates extracted from
Temporary work directory.
All resources related to the application that are not in the document root. WEB-INF directory is not part of the public document. No files contained in this directory can be served directly to a client.
Bootstrap files. Empty by default.
Bootstrapped on author and public instances.
Bootstrapped on author instance only.
Bootstrapped on public instance only.
Class path for manually deployed classes.
Configuration files for repository and properties.
Properties such as: repository location, persistence manager to be used, should samples be bootstrapped, should installation be done in unattended mode etc.
Defines repository configuration.
Log4j logging configuration.
Properties used on author instance only.
Properties used on public instance only.
Persistence manager configuration files.
Configuration for authentication and authorization.
Deployment descriptor. Describes configuration information for the entire web application.
The Magnolia main filter is registered in the
web.xml file. The file only defines one filter:
The Magnolia main filter will delegate the request to the Magnolia filter chain. The filter is also mapped to forward requests, which means that the Magnolia filter chain will be re-executed on internal forwards.
web.xml we also register one listener:
The listener initializes the system, starts the repository and modules, while the filter handles all requests.