JBoss 5.x uses Tomcat 6.0.16 which does not support the special symbols in the OpenSSO iPlanetDirectoryPro cookie. This affects OpenSSO cookie-handling.
Workaround. See To Deploy OpenSSO on JBoss 5.0.
The minimum heap size should be set to at least 512M (-Xms256m), and maximum heap size should be set to 1024M (-Xmx1024m).
The MaxPermSize should be set to 256M (-XX:MaxPermSize=256m)
In the JBoss run.conf file (run.conf.bat on Windows), which is used to start up the JBoss instance, add the following JVM options:
-Dcom.iplanet.am.cookie.encode=true -Dcom.iplanet.am.cookie.c66Encode=true
If you do not set these properties, after entering your credentials in the OpenSSO console, you are directed back to the login page. After you've deployed and configured OpenSSO you can remove this entry in the run.conf file (or run.conf.bat on Windows). OpenSSO configures the cookie encode property during deployment.
Unjar the opensso.war.
Create text-file opensso.war/WEB-INF/jboss-web.xml.
Enter the following content in the file:
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd"> <jboss-web> <class-loading java2ClassLoadingCompliance='true'> <loader-repository> jbia.loader:loader=opensso <loader-repository-config> java2ParentDelegaton=true </loader-repository-config> </loader-repository> </class-loading> <resource-ref> <res-ref-name>jdbc/openssousersdb</res-ref-name> <jndi-name>java:jdbc/openssousersdb</jndi-name> </resource-ref> </jboss-web>
Create the WAR again.
Stop the JBoss server.
Create a directory under the mode that opensso will be deployed to.
Example: JBOSS_INSTALL_DIR>/server/$CONFIG/deploy/opensso.war
where $CONFIG is the mode such as default, all, or production.
Go to the opensso.war directory.
Example: JBOSS_INSTALL_DIR/server/$CONFIG/deploy/opensso.war
Explode the war to this directory.
jar -xvf WAR_FILE_LOCATION/opensso.war
Restart the JBoss container.
Deployment of opensso.war will succeed without errors.
OpenSSO 8.0 U2 installation on JBoss 5.0.0 is supported in exploded war mode only.