
« Torna a 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
- xercesImpl.jar
- 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"
21091 Visualizzazioni