« Voltar para Custom Deployments

Installing 5.2 SP3 WAR on JBoss 4

Installing from the Liferay WAR File#

Make sure your JBoss installation starts and runs before continuing.

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 #

Create a folder in the $JBOSS_HOME/server/default/deploy directory. For this example, call it 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

Delete these files from $JBOSS_HOME/server/default/deploy/ROOT.war


  1. xercesImpl.jar
  2. xml-apis.jar}}}

Additional Editing #

  • Edit the $JBOSS_HOME/server/default/deploy/jms/jbossmq-destinations-service.xml. Delete/comment out the text between the <server> tags. Logically speaking, it will look like this:

<?xml version="1.0"?>
<server> </server>}}}

  • 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"

0 Anexos
19841 Visualizações
Média (0 Votos)
A média da avaliação é 0.0 estrelas de 5.
Respostas do tópico Autor Data
I already developed liferay in local system.... devaraj s 24 de Junho de 2012 22:05

I already developed liferay in local system. Now I want to host this in public server but which folder I will make war in liferay bundle and deploy. If any one one perfect in hosting please do the needful.
Postado em 24/06/12 22:05.