
Installing Liferay 5.2 SP3 on JBoss 6 (M1)
INSTALLING FROM THE LIFERAY WAR FILE
I am writing this because there is no other documentation on how to install Liferay on JBoss 6. Note that this is on Milestone 1, as at the time of writing, Milestones 2 and 3 were not even able to clean startup straight from the .zip file.
Make sure your JBoss installation starts and runs before continuing. (This is important as I spent over an hour pulling my hair out wondering why I couldn't get Liferay to run on M3.)
Starting Out**#
Put the Liferay Dependencies bundle in your JBoss installation first. Do this by copying the .jar files into the $JBOSS_HOME/server/default/lib directory.
Configure JAAS**#
Edit $JBOSS_HOME/server/default/conf/login-config.xml and comment out the entire section where application policy is equal to "other" in lines 140-156.
<!--<application-policy name = "other">... <authentication> <login-module code = "org.jboss.security.auth. spi.UsersRolesLoginModule" flag = "required" /> </authentication> </application-policy>-->}}}
Deploying the Liferay WAR**#
Delete all the files and folders in $JBOSS_HOME/server/default/deploy/ROOT.war
Use an archive program such as WinRAR or 7Zip to unarchive the Liferay WAR file to $JBOSS_HOME/server/default/deploy/ROOT.war
Additional Editing**#
Remove the following files from $JBOSS_HOME/server/default/deploy/ROOT.war/WEB-INF/lib
- jaxrpc.jar
- stax.jar
- xercesImpl.jar
- xml-apis.jar
Add the code "set JAVA_OPTS=%JAVA_OPTS% -Xmx1024m -XX:MaxPermSize=256m -Dfile.encoding=UTF-8 -Duser.timezone=GMT" in the "run.bat" located in the $JBOSS_HOME/bin directory. This line of code will prevent Java memory issues.
Finally, to startup JBoss, execute "run.bat"
Hooray!