Liferay Developer Studio comes bundled with Tomcat server. Tomcat is usually useful to get things up and running however not so suitable for resource intensive applications. JBoss is usually is good choice for most requirements. The following are the instructions on how to integrate JBoss with Liferay.
- Download Liferay JBoss bundle from the liferay website and save it on your local drive. I saved liferay-portal-jboss-6.2-ee-sp7-20140807114015311.zip to my local drive.
- Unzip this file to a folder of your choice. I unzipped it to C:\work\liferay-portal\liferay-portal-6.2-ee-sp7. This will your JBOSS_BUNDLE_HOME.
- Start the JBoss Server.
- If you navigate to http://localhost:8080/, you will see a message indicating that you dont have the Liferay License.
- Refer to section in my previous blog post on updating license.
- You also need to connect to the same database that you set up with Liferay Developer Studio. To connect to the existing database:
- Create a new file called portal-ext.properties in JBOSS_BUNDLE_HOME.
- Add the following properties to the file and restart your JBoss Application Server.
jdbc.default.driverClassName=net.sourceforge.jtds.jdbc.Driver jdbc.default.url=jdbc:jtds:sqlserver://localhost:1433/service_portal jdbc.default.username=xxxxxx jdbc.default.password=xxxxxx
- Create a new file called portal-setup-wizard.properties in JBOSS_BUNDLE_HOME, add the following lines and save it.
- admin.email.from.address={your admin user email address}
- admin.email.from.name=Admin User
- liferay.home=C:/work/liferay-portal/liferay-portal-6.2-ee-sp7
- setup.wizard.enabled=false
- Create a new file called build.(your username}.properties in {LIFERAY_HOME}\liferay-developer-studio\liferay-plugins-sdk-6.2 and add the following lines and save it.
app.server.type = jboss app.server.jboss.dir = ${app.server.parent.dir}/jboss-7.1.1 app.server.jboss.lib.global.dir = ${app.server.jboss.dir}/modules/com/liferay/portal/main app.server.jboss.portal.dir = ${app.server.jboss.dir}/standalone/deployments/ROOT.war app.server.jboss.deploy.dir = ${app.server.jboss.dir}/standalone/deployments app.server.parent.dir = C:/work/liferay-portal/liferay-portal-6.2-ee-sp7
- Restart your application server. You should automatically be navigated to the Portal Login page.