« Retour - Custom Deployments

Installing 5.2 SP3 WAR on JBoss 4

Documentation: Initial Setup

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

/WEB-INF/lib 

  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"

Moyenne (0 Voter)
L'estimation moyenne est de 0.0 étoiles sur 5.
Commentaires
Réponses Auteur Données
I already developed liferay in local system.... devaraj s 24 juin 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.
Publié le 24/06/12 22:05.