...
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:
- Make sure the
magnolia-module-websphere
JAR file is your webapp'sWEB-INF/lib
directory. Edit the
web.xml
file, and add the followingServlet
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 thePath
parameter to allow it to serve other static resources from your webapp.- Set the
magnolia.definitions.classpath
property inmagnolia.properties
toinfo.magnolia
.
...