5.1.3.27.1. On JBoss (tested on JBoss 5.1.0.GA)

We assume that you have a clean JBoss version of GateIn, in other words, we assume that you have already the file exoplatform.ear in the deploy directory of JBoss and you have the related application policy in your conf/login-config.xml.

You need to:


  <application-policy name="exo-domain-sample-portal">
    <authentication>
      <login-module code="org.exoplatform.web.security.PortalLoginModule" flag="required">
        <module-option name="portalContainerName">sample-portal</module-option>
        <module-option name="realmName">exo-domain-sample-portal</module-option>
      </login-module>
      <login-module code="org.exoplatform.services.security.jaas.SharedStateLoginModule" flag="required">
        <module-option name="portalContainerName">sample-portal</module-option>
        <module-option name="realmName">exo-domain-sample-portal</module-option>
      </login-module>
      <login-module code="org.exoplatform.services.security.j2ee.JbossLoginModule" flag="required">
        <module-option name="portalContainerName">sample-portal</module-option>
        <module-option name="realmName">exo-domain-sample-portal</module-option>
      </login-module>
    </authentication>
  </application-policy>

Warning #1

This can only work if a Unified ClassLoader has been configured on your JBoss (default behavior) and the load order is first the exoplatform.ear then the sample-portal.ear and finally the starter.ear.

Warning #2

The file starter.ear must always been started last.

Copyright ©2012. All rights reserved. eXo Platform SAS