When started the work on Liferay initial issue faced is setting up the development environment in Eclipse.
This is part 1 of the series on my developement experience with Liferay.
Let me start with how add liferay runtime in Eclipse and start /stop liferay from Eclipse IDE
Liferay installation is liferay-portal-5.2.3 and Eclipse version is Eclipse Java EE IDE for Web Developers
1. Go to Windows ->Preferences
2. Select Server -> Runtime Environments, Click on “Add”,
Select Apache Tomcat v6.0 , Click Next
3. Give name for the Runtime,
Give the Tomcat Installation Directory, Browse up to the Tomcat Folder in
the Liferay installation, ex, D:\liferay-portal-5.2.3\tomcat-6.0.18
Make sure the Select the JRE and Java 5 or Java 6.
Click “Finish”.
4. On the Server Console of Eclipse, Click New -> Server
5. On the window opened,
Give Server Name: ex, Tomcat For Liferay
Server Runtime Environment: From the drop down select the Runtime
created for Liferay as in Step 5.
6. Double Click on the server created.
a. Under Server Locations, Select “Use Tomcat”
b. Edit Deploy path, give the value “webapps”
7. Edit VM arguments
a.Click on “Open Configuration” in the server configuration.
b. Select the “Arguments” tab
Add the following values,
-Xms128m -Xmx512m -XX:MaxPermSize=128m
-Djava.io.tmpdir="D:\liferay-portal-5.2.3\tomcat-6.0.18\temp"
-Djava.security.auth.login.config="D:\liferay-portal-5.2.3\tomcat-6.0.18\conf\jaas.config"
-Dfile.encoding=UTF8
-Duser.timezone=GMT+1
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment