Easy Steps to Set up Portlet Development Environment

Posted: March 31, 2007 in NetBeans

This blog will help

  • All new portlet developers who don’t know how to start writing portlets and test them
  • Developers looking for open source softwares to develop and test their portlets
  • Developers looking for an integrated portlet development environment

You can use the Java EE Tools Bundle U3 Preview which comes with pre-configured GlassFish appserver, Open Source Portlet Container and NetBeans IDE with Portal Pack Plug-ins to start portlet development.

But Alternatively if you want to use latest versions of mentioned components to set up your portlet development environment then go through this blog. 

The following open source components are required to set up your portlet development environment

  1. Glassfish Application Server
  2. Open Source Portlet Container
  3. NetBeans 5.5/5.5.1 Beta IDE
  4. Portal Pack Plug-ins

1. GlassFish Application Server

GlassFish is an open source application server. Download the latest version of GlassFish Application server from here.  GlassFish installation is very easy. Just follow the steps mentioned here

2. Open Source Portlet Container

The Open Source Portlet Container  is an Enterprise Class Open Source Portlet Container which is free and available for download here. This can be used to deploy/test your JSR 168 portlets. To install Open Source Portlet Container on the GlassFish AppServer run the following command which opens an GUI installer. The whole installation process completes within a few seconds

java -jar portlet-container-configurator.jar

Alternatively you can check installation instructions here 

3. NetBeans IDE 5.5 and above

Download and Install NetBeans IDE from https://www.netbeans.org 

4. Portal Pack Plug-ins

The Portal Pack NetBeans Plug-ins for Portlet development is  available in NetBeans 5.5 Beta Auto Update Center.

But if you want to try latest version of Portal Pack Plug-ins then download them from here . You can find the installation instructions for the plug-ins in download page.

As all of the above components are installed and configured properly, you can now start your portlet development. You can check user guides and documents available in portal pack doc page. If you want a short/quick tutorial on Portlet development using Portal Pack check this.

  1. Kishore says:

    Hi Satya,
    I am using NB 5.5 with app server 9 to run a sample HelloWorld Portlet. I am following your steps at
    Here is what I do, I start netbeans IDE, then install the “Open Source Portlet Container” as per instructions above. Im using win xp, and I get installed succesfully message in my command window.
    Now when I goto
    I get a error page, how do I troubleshoot this? What am I doing wrong?
    Please help

  2. Satya says:

    Hi Kishore,
    Can you try this url
    First time when you start app server after portlet container installation, portlet container takes some time to get started.
    To check if the installation is proper
    – Check if the “portlet-container” directory is there under
    $glassfish_home/domains/domain1 .
    -Also check if portletdriver.war application is deployed properly.
    You can also copy paste the error from app server log file. I will look into it.
    You can also use Java App platform SDK http://java.sun.com/javaee/downloads/ea/
    which comes bundled with portlet containe.r And no separate installation is required for Portlet Container.

  3. Satyra
    We started development of portal with Sun Java Enterprise system 2005Q04, On Solaris, From last one month we ended only with installation and configuration and error reolving
    now can we developed different portlets on page like Sun Java Enter pRise system??

  4. satya says:

    Yes you can use Portal Pack plugins to develop and deploy portlets on Sun Portal Server 7.x
    Please refer to the doc page

  5. phani says:

    hai satya,i am using jboss portal servrer 2.6.3.i am going to develope blog portlet in that portal.I couldn’t get the code any where else .will you please tell me how to develope the portlet in that portal.I am new to the portals and portlets.please help me in this regard.
    thanks in advance.

  6. sunny says:

    excellent page for getting started. thanks

  7. sameera says:

    sorry the erro I’m getting when I try to run portletdriver is 503
    says that,
    The requested service () is not currently available.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s