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.


Insert this snippet into your webapp's pom.xml


Deploying IBM WebSphere manually

If you downloaded the prebundled IBM WebSphere WAR file, skip the following:

  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 Servletdefinition:

      <description>Spool servlet</description>

    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 to info.magnolia.

Deploying via IBM WebSphere Administration Console

  1. Rename the WAR file to magnoliaAuthor, magnoliaPublic, or to a name that matches a configuration name of your choice.
  2. Deploy the archive(s) through the IBM WebSphere administration console. (See the IBM WebSphere documentation for precise instructions.)

Setting up JAAS Authentication for Magnolia

Refer also to the IBM WebSphere JAAS documentation: Login configuration for Java Authentication and Authorization Service.

  1. In the IBM WebSphere Application Server, select Security > Global Security in the left panel.
  2. Under Authentication, select Java Authentication and Authorization Service > Application logins.
  3. Add the Magnolia login module:
    1. Add alias: magnolia.
      1. Add class info.magnolia.jaas.sp.jcr.JCRAuthenticationModule as REQUISITE.
      2. Add class info.magnolia.jaas.sp.jcr.JCRAuthorizationModule as REQUIRED.

Disabling Contexts and Dependency Injection 1.2 and built-in JAX-RS

  1. In the IBM WebSphere Application Server, expand Servers > Server Types and select WebSphere application servers in the left panel.
  2. In the right panel, under Application servers, select <server name>.
  3. Under Server Infrastructure, expand Java and Process Management and select Process definition > Java Virtual Machine > Custom properties.
  4. You can then:
    • Disable Contexts and Dependency Injection 1.2 by adding these properties:
      • Name:, value: false.
      • Name:, value: false.
    • Disable built-in JAX-RS by adding this property:
      • Name:, value: true.
    • Avoid classloading problems by adding this property:
      • Name:, value: true.

Changing the class loading option for module

  1. In the IBM WebSphere Application Server, expand: Applications > Application Types and select WebSphere enterprise applications in the left panel.
  2. In the right panel, select <application name> (magnoliaAuthor or magnoliaPublic) and under Modules > Manage Modules > <module name> (magnolia), select from Class loader order the option Classes loaded with local class loader first (parent last).
  • No labels