Saturday, October 24, 2009

STEP 7: Add Liferay (Glassfish) to NetBeans

These are instructions to add the Liferay portal server (running on Glassfish) 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 (GlassFish 3)
Next
  • Server Type: GlassFish / Sun Java System AppServer

  • GlassFish Home: /usr/local/liferay-portal-5.2.3/glassfish

  • Domain Dir: /usr/local/liferay-portal-5.2.3/glassfish/domains/domain1

  • Domain: domain1

  • User Name: admin

  • Password: adminadmin

  • Http Port: 8080

  • Admin Port: 4848
Next
  • Portal Context: /

  • Portal Deploy Dir: /usr/local/liferay-portal-5.2.3/glassfish/domains/domain1/applications/liferay-portal

  • Checked: Directory Deployment Enabled
Finish
  • Auto Deploy Dir: /usr/local/liferay-portal-5.2.3/deploy
Apply | Close



Test

In NetBeans...

Services (tab) | Servers | Liferay 5.2.3 (GlassFish 3) | Start

In a web browser, go to...

http://localhost:8080/web/guest

In NetBeans...

On the Output panel, click the Stop Server icon.

1 comment:

  1. when i try to start glassfish via netbeans

    there comes this message:

    'java' is not recognized as an internal or external command,
    operable program or batch file.

    have the jdk in the path directory. when i manually open a cmd window the "java" command works.

    any idea?

    ReplyDelete