Events

JavaOne India
May 8 - 9, 2013, Hyderabad, India

Java content tracks will include Core Java Platform; JavaFX and Rich User Experiences; Java EE, Web Services, and the Cloud; and Java ME, Java Embedded, and Java Card.

A Free Template from Joomlashack

A Free Template from Joomlashack

Advertisement

Liferay Installation on WAS 6.1 (Linux) PDF Print E-mail
Written by Administrator   
Thursday, 14 May 2009 20:41

 
We'll follow the steps provided in the liferay admin guide. But since i faced certain issues while installing , i would like to share the experience here.
 
Before we start installing, we would need the liferay portal war file and the dependency files.
 
The files required are liferay-portal-5.1.2.war & liferay-portal-dependencies-5.1.2.zip. Also we would need geronimo-annotation_1.0_spec-1.1.jar after we deploy the liferay war on WAS. We would also need the mysql jdbc connector jar file mysql-connector-java-5.1.7-bin.jar since we are going to use mysql as the db for Liferay.
 
Before we start installing Liferay, we would need a database. We'll use mysql, since its freely available and is a good database to be used for development environment than hypersonic db.
 
Download mysql community server db 5.1.34 from this url http://dev.mysql.com/downloads/mysql/5.1.html#linux
 
We'll install mysql using the tar file distribution. The steps for setting it up is here http://dev.mysql.com/doc/refman/5.0/en/installing-binary.html.

Create the lportal schema in mysql for liferay to use. Once the db setup is done, we'll follow the admin guide to setup liferay. As per the admin guide, we'll be setting up the JDBC provider and the datasource. There is also mail configuration that needs to be done. In my case, the WAS security is enabled so did not have to do anything related to it.
 
Before we do any configuration on WAS, we'll have to copy the liferay dependency files to <appserver>/lib/ext folder. Also copy the mysql jdbc connector jar file. We also need to copy the portlet.jar and icu4j.jar to <appserver>/java/jre/lib/ext folder. Restart the server after this.
 
After the above configuration is done, we'll install the liferay portal war file using the WAS admin console. We specified the context root as /portal instead of the default /. After the application is installed successfully, we'll have to copy the geronimo-annotation_1.0_spec-1.1.jar to the WEB-INF lib of liferay application. Without this jar file, liferay does not startup. Basically this jar is required for missing annotation classes. Start the liferay application from the admin console.
 
Since we  had specified the context as /portal, we need to update the portal.ctx property in portal-ext.properties. After all this is done, we are good to go with Liferay.
 
The url would look like http://<host>:<port>/portal 
 
Recently i installed 5.2.x on WAS 6.1. you don't need to copy the geronimo annotation jar file. Liferya guys might have fixed it. Another thing is, I have moved all the liferay dependent jar files into a shared lib folder and configured the same in WAS. Then created the classloader with application classloader to load first.
 


Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! TwitThis Joomla Free PHP
Last Updated on Sunday, 14 June 2009 20:59
 
 
Joomla 1.5 Templates by Joomlashack