Magnolia 6.1 reached end of life on March 31, 2021. This branch is no longer supported, see End-of-life policy.
The IBM WebSphere Compatibility module is a DX Core module that provides a servlet for the IBM WebSphere application server to accept requests. With other application servers, Magnolia uses its filter chain with no specific endpoint. In Magnolia 5.5, IBM WebSphere 9 works with the WebSphere Compatibility module.
<dependency> <groupId>info.magnolia</groupId> <artifactId>magnolia-module-websphere</artifactId> <version>1.5</version> </dependency>
If you downloaded the prebundled IBM WebSphere WAR file, skip the following:
magnolia-module-websphere
JAR file is your webapp's WEB-INF/lib
directory.Edit the web.xml
file, and add the following Servlet
definition:
<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.
magnolia.definitions.classpath
property in magnolia.properties
to info.magnolia
.Refer also to the IBM WebSphere JAAS documentation: Login configuration for Java Authentication and Authorization Service.
magnolia
.info.magnolia.jaas.sp.jcr.JCRAuthenticationModule
as REQUISITE
.info.magnolia.jaas.sp.jcr.JCRAuthorizationModule
as REQUIRED
.com.ibm.ws.cdi.enableCDI
, value: false
.com.ibm.ws.cdi.enableImplicitBeanArchives
, value: false
.com.ibm.websphere.jaxrs.server.DisableIBMJAXRSEngine
, value: true
.com.ibm.ws.classloader.strict
, value: true
.