You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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.

Installing

Unable to render {include} The included page could not be found.

Insert this snippet into your pom.xml

<dependency>
  <groupId>info.magnolia</groupId>
  <artifactId>magnolia-module-websphere</artifactId>
  <version>1.5</version>
</dependency>

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:

    <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.

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: com.ibm.ws.cdi.enableCDI, value: false.
      • Name: com.ibm.ws.cdi.enableImplicitBeanArchives, value: false.
    • Disable built-in JAX-RS by adding this property:
      • Name: com.ibm.websphere.jaxrs.server.DisableIBMJAXRSEngine, value: true.
    • Avoid classloading problems by adding this property:
      • Name: com.ibm.ws.classloader.strict, 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