Friday Feb 13, 2009

Portal pack 3.0The Portal Pack 3.0 is now available for download. With lots of new features and bug fixes, the Portal Pack 3.0 is out there to make portlet development easier than before. This version is compatible with NetBeans 6.5 IDE. This version of Portal Pack supports the recently released Sun GlassFish Web Space Server 10.0 which is part of the GlassFish Portfolio.
WebSpace
Sun GlassFish Web Space Server is Sun's next generation aggregation and presentaion platform.  It enables businesses large and small to pull together applications and content from a variety of Web-based and internal sources and present them as a unified, customizable portal on Web browsers, kiosks, and mobile devices. For more info you can check this blog written by James.

Some of the Key Features in Portal Pack 3.0

  • Support for New JSR 286 specification

  • Eventing Storyboard for JSR 286 Eventing

  • Visual Portlet Builder plug-in to build JSF portlet using WYSIWYG editor.

  • Portlets with Spring MVC framework

  • Write Portlets with different languages like Ruby/PHP/Groovy which can be deployed on Sun GlassFish Web Space Server and Liferay Portal Server.

  • Use Web Space/Liferay's service builder framework inside your portlet. A new advanced Service XML editor is introduced to help you define and generate services.

  • Use Web Space/Liferay's service apis directly to write advanced portlets.

  • Use Taglibs provided by Web Space/Liferay directly inside your Portlet. For example : You can use rich ui taglibs provided by Liferay/Web Space inside your Portlet, so that your portlet will look similar to other UI in the portal page.

  • Directory deployment : Using new directory deployment feature, you can quickly develop and test your application without redeploying your portlet application again and again. So no need to deploy your portlet when you are changing JSPs, HTML, javascripts etc etc... Also if you are developing portlets using PHP/Ruby/Groovy languages then you need to deploy the portlet only once during development cycle. During development, just change the PHP/Ruby/Groovy script and refesh the browser to see the output.

The deployment support in this release has been extended to support the following servers

Here's the link to the  quick start guide for Portal Pack 3.0 . So try out this new Portal Pack 3.0  !!!


We have already started working on the next update for Portal Pack. Your feedback for the existing features and suggestions for any new features are most welcome. So you may see your suggested feature in the next update release of Portal Pack.

Comments:

I have some problems with Liferay on Tomcat 6 and Visual JSF Portlet Pages: javascript errors like "invalid characters" and "webui undefined". Do you suggest a workaround?

Posted by Angelo D'Angelo on February 19, 2009 at 09:06 PM IST #

Are you using Liferay 5.2.1 with Tomcat 6 ? If yes, there was an issue with JSF Portlet on Liferay 5.2.1 . The compressed javascript files are getting compressed again because of some GZFilters which gets injected during portlet application deployment time. But this issue has been fixed in the latest trunk.You can check this LPS for details
http://issues.liferay.com/browse/LPS-1998

The workaround for this issue in LR 5.2.1 : After deployment of the portlet application, remove all GZipFilter , MinifierFilter from the web.xml of the deployed portlet application. Then restart the tomcat server.

Let me know if that solve your problem.

Posted by satya on February 19, 2009 at 09:24 PM IST #

Thank you Satya. I followed your suggestions and now the portlet does not arise any error. But I have another question: is it possible to use ajax in a jsf portlet (maybe using dyna-faces)?

Posted by Angelo D'Angelo on February 20, 2009 at 09:03 PM IST #

Tried PP3 in Liferay 5.2.2 and no components show up. Can't say that this is compatible with 5.2.x at this point. Unless, someone has a workaround to the problem.

Posted by DJ on March 07, 2009 at 06:57 PM IST #

>> Tried PP3 in Liferay 5.2.2 and no components show up.
What exactly it means ? Are you not able to see the deployed portlets ? Or You are not able to configure Liferay 5.2.2 inside NetBeans IDE.

Posted by satya on March 09, 2009 at 04:18 PM IST #

Does Portal Pack 3.0 support Liferay 5.2.2 on jboss-tomcat-4.2.3?

Posted by Angelo D'Angelo on March 11, 2009 at 02:36 PM IST #

No. It supports Liferay 5.2.2 on tomcat 5.x/6.x and glassfish.

Posted by satya on March 11, 2009 at 02:48 PM IST #

I am having utter hell trying the develop and deploy a portlet using Netbeans 6.5, Portal Pack 3.0, JBoss 4.2.3, and JBoss Portal 2.7.1. The user interface for this portlet simply displays a few labels and a group of checkboxes where the data for those checkboxes comes from a database. When I build and run the portlet, the labels display fine but the data-bound checkboxes do not show up AT ALL. Any help at all that you can provide would be a great help !! Thanks.

Posted by Chris Walters on April 02, 2009 at 11:34 AM IST #

Hi,

I am running on RedHat Linux 3.x with Glassfish v2.1, Netbeans 6.5, and Portal Pack 3.0.

When I try to deploy a portlet from Netbeans I receive the error:
org.netbeans.modules.portalpack.servers.core.common.DeploymentException:

Massaging could not be done properly. Possible reasons :
1. Auto deploy directory is not set properly. If so please go to the serverconfig panel and set the auto deploy directory correctly.
2. Autodeploy scanner might not be responding.
3. Please restart your sever and try again...
at org.netbeans.modules.portalpack.servers.websynergy.impl.LiferayTaskHandler._deployOnGF(LiferayTaskHandler.java:157)
at org.netbeans.modules.portalpack.servers.websynergy.impl.LiferayTaskHandler.deploy(LiferayTaskHandler.java:252)
at org.netbeans.modules.portalpack.servers.core.PSDeployerImpl.run(PSDeployerImpl.java:151)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

Posted by Bob on April 14, 2009 at 03:22 AM IST #

BTW:

I have glassfish deployed in /opt/glassfish
My domain is at /opt/glassfish/domains/domain1

I have my auto deploy set to /opt/glassfish/domains/domain1/autodeploy

Websynergy is installed at /opt/glassfish/domains/domain1/websynergy and deployed at
/opt/glassfish/domains/domain1/applications/j2ee-modules/websynergy.

I'm really stumped :(

Posted by Bob on April 14, 2009 at 03:26 AM IST #

Which version of websynergy you are using ? Is it Web Space 10.0 or previous version ?
Looks like the webspace autodeploy directory (Not glassfish's auto deploy dir) is not set properly in your case. Just remove the configured server instance from your IDE and reconfigure it again and try.

Let me know if it works.

Posted by satya on April 14, 2009 at 11:55 AM IST #

>>Tried PP3 in Liferay 5.2.2 and no components show up. Can't say that this is compatible with 5.2.x at this point. Unless, someone has a workaround to the problem.

I get the same problem. After developing a few things on JSF Visual Web and deploying, my portlet comes up blank.

Using Liferay 5.2.2, Tomcat 6.0 and PP3.0

Posted by Tony on April 15, 2009 at 06:09 AM IST #

Hi Tony,
Are you getting any exceptions when you don't see the components?
I vaguely remember facing similar issue of not seeing any components ,but after doing a page referesh(or navigating to other pages and returning) the components were getting listed.

-Sriram

Posted by Sriram on April 15, 2009 at 05:36 PM IST #

Hi Sriram,

When I refresh with 5.1.2 the components come up, but not with 5.2.2. With 5.2.2, I've tried with Glassfish, Tomcat 5.5, Netbeans 6.5.1, PP 3.01 beta and still nothing comes up.

And when I add a table with 5.1.2, it will not sort correctly. When I hit the sort button, it goes into idle.

My setup is:
Liferay 5.1.2/Liferay 5.2.2
Tomcat 6
Netbeans 6.5
Portal Pack 3.0

Thanks for the help,

Tony

Posted by Tony on April 17, 2009 at 07:59 AM IST #

Hi Tony,

In LR 5.2.2 and later version, you need to add a property "speed-filters-enabled=false" to liferay-plugin-package.properties in your Visual Web Portlet application. Check this issue for more details http://issues.liferay.com/browse/LPS-1998

Check the liferay-plugin-package.properties for this property. If it's old portlet project created with portlet with 5.1.x, then this property should not be there. You need to add that manually to make your portlet work on LR 5.2.2 .

Let me know this solution works !!!

Thanks !!!

Posted by satya on April 19, 2009 at 11:43 AM IST #

Hi Satya,

Thanks for the tip, it still isn't working correctly. I loaded a static text into the JVWP and it works fine if I click 'refresh'. And when I click to configure it and click "return to full page" it goes into a infinite load again. And only stops if I click refresh.

Any clue why that is?

Thanks

Tony

Posted by Tony on April 22, 2009 at 04:53 AM IST #

Hi Satya,

Actually, I just tested it with IE and it works fine. The problem appears when using Mozilla 3.0.8.

How can I fix this browser problem with JSF VWP?

thanks

Posted by Tony on April 22, 2009 at 04:57 AM IST #

Is it possible to develop a struts portlet with portalpack? any tutorials on how to do that?

thanks

Posted by Tony on April 28, 2009 at 06:16 AM IST #

Support for Strut portlet is not yet there. But I am sure you can do that by doing some manual stuff. Strut Portlet support is there in our plan, so you may see it very soon in future release.

Posted by satya on April 28, 2009 at 12:22 PM IST #

cool thanks! When do you think it will be supported?

Posted by Tony on April 30, 2009 at 09:52 PM IST #

Hi Satya,

I've spent so much time trying to fix this, but no luck please help.

http://www.liferay.com/web/guest/community/forums/-/message_boards/message/3025859

Posted by Tony on May 06, 2009 at 05:37 AM IST #

Tony,

I have the same problem.
On IE everything is fine. The core problem is between JavaScript code of Woodstock and Firefox. Unfortunately Woodstock is in a "quiet" state and I'm not sure we can expect a fix soon.

Posted by Emil on May 06, 2009 at 02:57 PM IST #

Thanks Emil.

Netbeans is phasing out the woodstock and migrating to Icefaces. May be icefaces is the way to go now.

Satya, will you be supporting VWP Icefaces in portal pack in the near future?

thanks

Posted by Tony on May 07, 2009 at 12:25 AM IST #

Yes, Icefaces should be the way to go as woodstock's development has been stopped. We also want to see VWP Icefaces support in Portal Pack.

There's also a bug filed on Icefaces's Jira

http://jira.icefaces.org/browse/ICE-3224;jsessionid=2622F8DFCA630370A38C7E3255D03C49?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel

Posted by satya on May 07, 2009 at 02:11 PM IST #

Hi Tony,
Since the JSF navigation sample you attached is working on LR5.1.2 , it appears to me thats a bug in LR 5.2.2..

Posted by sriram on May 07, 2009 at 06:30 PM IST #

Tony,can you please file a bug for the JSF navigation issue on LR5.2.2 attaching you sample app?

Posted by sriram krishnan on May 11, 2009 at 02:28 PM IST #

If you are still facing the JSF portlet navigation issue where blank portlet is shown in firefox, then here's the workaround for it.

From the jsf jsp page remove webuiAll="true" attribute from <webuijsf:themeLinks....../> tag. Everything works perfectly in Firefox & IE after removing this attribute.

This issue is still there in Portal Pack 3.0.1 . We will fix it in next update release.

Posted by satya on May 26, 2009 at 03:29 PM IST #

Hello.
I'm trying out Portal Pack 3.0.2 on windows with NetBeans 6.7.1.
I'm stuck with a problem using Liferay5.1.x/5.2.x on TOMCAT 6.0.20 (using Liferay 5.2.x branch from SVN).
Once deployed Liferay (with some plugins already installed ) in running out of memory,
"java.lang.OutOfMemoryError: Java heap space" by Spring.
The problem seems to be the setting of VM parameters to increase memory (-Xmx? ) with cannot be configured by "Services"->"Servers"->"Liferay Portal Server 5.1.x/5.2.x".
There is NO GUI option for that.
Can you help, perhaps pointing out a config file for the module for enlarging memory for Tomcat 6.x with Liferay on NetBeans please?

Thanks a lot.

Posted by Diego Pietralunga on August 17, 2009 at 04:54 PM IST #

SOLVED.
Look here if interested:
http://www.liferay.com/web/guest/community/forums/-/message_boards/message/3809225

Posted by Diego Pietralunga on August 17, 2009 at 10:42 PM IST #

Hi there

We are trying to deploy on both SunPS 7.1 and WebSpace from netbeans 6.5.1 and portal pack 3.0.2,

We are not eable to let either of the containers know which are the users.properties file or roles.properties files that we normally specify when deploying from the commnad line or through the web based admin page.

Is there anyway that we can do deployment from Netbeas (with Portal Pack) specifying these two properties files (for user mapping and role mapping)

Another question is: is it possible to do remote deplyment to WebSpace using these netbeans plugins.

Thank you!

Pablo.

Posted by Pablo Rodriguez on August 27, 2009 at 10:04 AM IST #

Post a Comment:
  • HTML Syntax: NOT allowed