Saturday Mar 31, 2007

Easy Steps to Set up Portlet Development Environment

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.





Wednesday Feb 21, 2007

Portal Pack Plug-ins are now also available at NetBeans Auto-Update Center Beta

Portal Pack Portlet Plugins are now also available at NetBeans Auto Update Center Beta. To install/update latest version of these plugins 

> Go to Tools > Update Center menu of NetBeans 5.5 IDE

> Select "NetBeans Auto Update Center Beta" check box in the list of update centers

> Click Next

The following modules of Portal Pack are required for Portlet Development support in NetBeans IDE

  • Generic Portlets - This module provides wizard based supports to create JSR 168 based portlet applications.
  • OpenSource PC - This module provides support to deploy/undeploy portlet applications on Portlet Container available on http://portlet-container.dev.java.net or bundled with Java EE SDK
  • Sun Java System Portal Server 7.x - This module provides support to deploy/undeploy portlet application on Sun Java System Portal Server 7.x
  • Base PSFramework - This is a library module which is required for the above two server plug-ins modules.

The same modules are also available as a zip archive at http://portalpack.netbeans.org/download.html
 

Saturday Feb 17, 2007

Updated Flash Demos for Portal Pack Plug-ins

Check out updated Portal Pack flash demos at  http://portalpack.netbean.org

These flash movies show all the new features supported by Portal Pack plug-ins for Sun Java Systems Portal Server 7.x

Wednesday Feb 07, 2007

Debug Portlet Application while using NetBeans 5.5 IDE and Portal Pack Portlet Plugin

This blog describes how you can debug a portlet application while you are using NetBeans 5.5 IDE + Portal Pack plug-in for portlet development.

This blog assumes that you are using 

Though Portal Pack plugin starts the Glassfish server automatically from NetBeans IDE, but currently it doesn't starts the server in debug mode. Using the following approach you can quickly debug your portlet application.

Set Debug mode for GlassFish Application Server

  1. Open NetBeans IDE
  2.  I am assuming that you have already added a Portlet Container instance in your NetBeans IDE
  3. Go to Runtime window . Right click on Servers > Open Source Portlet Container instance.
  4. Click "Start" to start the server.
  5. When the server is started properly. Open http://localhost:4848 in your browser.
  6. Login to GlassFish Admin Console as "admin" (default password is "adminadmin")
  7. Go to the "Application Server" page .
  8. Select the JVM Settings tab and the General option.
  9. Check the Debug Enabled box.
  10. Check debug port (default value is 9010)
  11. Select the Save button.
  12. Now  restart  the  server through  the NetBeans IDE  by the same way  you had started the server.

Configure debugger in NetBeans IDE

  1. Go to Run > Attach Debugger menu in title menu bar of NetBeans IDE.
  2.  It will pop-up a dialog box.
  3. Select Debugger as "JPDA Debugger"
  4. Select Connector as "SocketAttach"
  5. Give your machine host. (example, localhost)
  6. Give debug port no. (Default, 9010).
  7. Click Ok
  8. Now the debugger will be attached to the application server's debug port
You are now ready to debug your portlet application. Add break point in your portlet java file and start debugging. All of the above configuration steps are required once.

 

 


Friday Dec 15, 2006

NetBeans Portlet Plugin 1.0 for "Portlet Container 1.0 Beta"

The NetBeans Portlet Plugin  is now available for download which  includes a plugin for the Portlet Container 1.0 Beta component bundled with the Java Application Platform SDK Update 2 release. Read about Java Application Platform SDK Update2 release here. To download the Java Application Platform SDK Update 2 click here.

Portlet Container 1.0 Beta, an Enterprise Class Portlet Container implementation is derived from the open source project on https://portlet-container.dev.java.net.

As a plugin for NetBeans IDE 5.5 and above, current release of NetBeans Portlet Plugin helps developers to develop, deploy and test portlets on the Portlet Container 1.0 Beta component that is part of the Java Application Platform SDK U2 from their NetBeans IDE. NetBeans Portlet Plugin makes portlet development as easy as writing a normal Java application, with all the features of portlets made available to you at the click of a mouse.

Some highlights of this plugin are


  • Provides wizard based support to create a JSR-168 based generic portlet application.

  • Generates deployment descriptor automatically.

  • Provides support to specify different portlet modes while a new portlet  is added.

  • Portlet deployment/undeployment support on the Portlet Container 1.0 Beta component.

  • Provides support to view output of a single portlet

  • Provides support to launch admin tool directly from NetBeans IDE.

  • Provides support to start and stop Portlet Container 1.0 Beta from NetBeans IDE.

Here are the links to the resources and docs for Netbeans Portlet Plugin

Visit the NetBeans Portlet Plugin home page for future releases and announcements.

 

About

ranjansatya

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today