Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Spool servlet must be registered for WebSphere Liberty. Follow these steps to add the servlet to the deployment descriptor (web.xml file) in your webapp:

  1. Make sure the magnolia-module-websphere JAR file is your webapp's WEB-INF/lib directory.
  2. Edit the web.xml file, and add the following Servlet definition:

    Code Block
    xml
    xml
    <servlet>
      <description>Spool servlet</description>
      <servlet-name>Spool</servlet-name>
      <servlet-class>info.magnolia.module.websphere.Spool</servlet-class>
      <init-param>
        <param-name>Path</param-name>
        <param-value>/docroot</param-value>
      </init-param>
    </servlet>
    <servlet-mapping>
      <servlet-name>Spool</servlet-name>
      <url-pattern>/*</url-pattern>
    </servlet-mapping>
    

    Note that the Servlet must be mapped to serve /*, but you can adapt the Path parameter to allow it to serve other static resources from your webapp.

  3. Set the magnolia.definitions.classpath property in magnolia.properties to info.magnolia.

...