Saturday, October 24, 2009

STEP 6: Add Liferay (Tomcat) to NetBeans

These are instructions to add the Liferay portal server (running on Tomcat) to NetBeans.

Create New Server

In NetBeans...

Tools | Servers | Add Server
  • Server: Liferay Portal Server 5.1.x/5.2.x
  • Name: Liferay 5.2.3 (Tomcat 6.0.18)

Next
  • Server Type: Tomcat 6.x
  • Catalina Home: /usr/local/liferay-portal-5.2.3/tomcat-6.0.18
  • Catalina Base: /usr/local/liferay-portal-5.2.3/tomcat-6.0.18
  • Java Home: JDK 1.6 (Default)(/usr/lib/jvm/java-6-sun)
  • Http Port: 8080
  • Debug Port: 11589

Next
  • Portal Context: /
  • Portal Deploy Dir: /usr/local/liferay-portal-5.2.3/tomcat-6.0.18/webapps/ROOT
  • Checked: Directory Deployment Enabled
  • Un-Checked: Run in Developer Mode

Finish
  • Auto Deploy Dir: /usr/local/liferay-portal-5.2.3/deploy

Apply | Close


Test

In NetBeans...

Close the Start page if it is open.

Services (tab) | Servers | Liferay 5.2.3 (Tomcat 6.0.18) | Start

In a web browser, go to...

http://localhost:8080/web/guest

In NetBeans...

In the Output panel, click the Stop Server icon.

1 comment: