myblogspace sriram

Wednesday Feb 18, 2009

Directory deployment  using Portal Pack and Netbeans 6.5

Portalpack plugins for Netbeans 6.5 supports directory deployment in addition to deployment using archived formats like .war.With directory deployment, the deployment structure used is same as the one we get after expanding the war file.

With directory deployment enabled ,the IDE need not archieve the files into .war format and also the appserver need not expand the archieved format during deployment.In this case the webapplication application directory is not expanded under (..\glassfish\domains\domain1\applications\j2ee-modules)

JSP files can be modified and the changes done are reflected on the portal server immediately, just by clicking the save option.This enables faster development.

Please follow the below steps to enable directory deployment in Portal Pack

1)Go to Services tab

2)Right click on Webspace10.x(Project Websynergy) and check the "Directory Deployment Enabled" option

Please follow the below steps to try Directory deployment of a portlet application

1)With directory deployment option enabled create a HelloWorld portlet application

2)Right click the application and select deploy

3)Add the HelloWorld application on the portal page

4)Modify the HelloWorld_view.jsp to include some liferay ui tag elements.

5)Now  click save after making changes to the jsp.There is no need to build/package the war and deploy again.

6)Refresh the portal page where the HelloWorld appplication was added.

In directory deployment the directory structure under <application>/build/webs will be used by the server

If you happen to use php,ruby or groovy for developing your portlets then here's the good news.You can also avail directory deployment on these non java portlets.These non java portlets can be used  on WebSpace/Liferay.Any changes made to *.rb,*.groovy ,*.php,*.js,*.html  files is reflected on the deployed application by simply saving the changes. 

Note:If you have deployed an application using directory deployment and if you like to switch to normal deployment then make sure that you have undeployed the application before you use normal deployment. Directory deployment can be used with Visualweb JSF portlets also. The supported run times are Open Source Portlet Container,WebSpace10.x Server,Liferay+Glassfish2.x/Tomcat

Comments:

produto com excelente qualidade

Posted by maria helena on June 27, 2009 at 03:30 AM IST #

Hi, using this configuration is a faster way for developing portlets thanks, but is there any way for debugging portlets? I´v tried ths one (http://blogs.sun.com/satya/entry/debug_your_portlet_application_while) but notthing happens. I´m using netbeans 6.5 and portal pack 3.0.

Posted by Jonathan Fernández on August 12, 2009 at 10:22 PM IST #

Post a Comment:
  • HTML Syntax: NOT allowed