Portal Pack 3.0.5 Beta for NetBeans 7.1 and later

Posted: April 3, 2012 in Uncategorized
Tags: , , , , ,

If you are using NetBeans 7.1 or 7.1.1, you can now use Portal Pack plugins in your IDE. Because of a library mismatch the previous Portal Pack 3.0.5 binary was not working with NetBeans 7.1. Finally I have compiled Portal Pack sources with latest NetBeans 7.1/7.1.1.

You can now download Portal Pack 3.0.5 Beta binaries for NetBeans 7.1/7.1.1 from Portal Pack project site.

  1. Peter says:

    Liferay 6.1 default bundle is based on Tomcat 7. The New Server popup only offers me Tomcat 5.x or 6.x. Do you know if it will work with the bundled Tomcat 7.x?

  2. KenJo says:

    cannot download plugin

    please help me

    • satya says:

      Did you try to download from this page ?


      I could download the binary.

      • Peter says:

        Hi Satya,

        The links have been fixed now. I just downloaded. Thanks.

      • Peter says:

        NB complains that the plugins are already installed. I notice that the previous version has a generic directory that the new version lacks. Is it alright to just delete the existing plugins and reinstall the new ones? Does the generic dir make any difference?

      • Peter says:

        I have opened tools->plugins->Installed, tick Show details, sort by Category, select each plugin in PortalPack category, Uninstall, restart.
        tools->plugins->Downloaded Add plugins, select all of the nbms from portalpack_3_0_5_beta_all, Install, restart.

        I haven’t tested the results, but this install process seems to work.

  3. Peter says:

    Yes, the download site http://portalpack.netbeans.org/ now points to the Planet NetBeans blog.

  4. Ivan says:

    Hi, is any chance to enable java ee 6 Web for projects in netbeans 7.1.1 with portal pack 3.0.5 with liferay server (deployed in glassfish server)??

  5. Peter says:

    The latest pp 3.0.5 installs OK in NB 7.2. Haven’t tried it out yet.

  6. Peter says:

    OS X 10.8.1
    NetBeans 7.2
    Latest PortalPack
    Testing on localhost

    When I create a portlet hello-world-portlet with classname hello_world_portlet, portlet name hello_world_portlet and display name hello-world-portlet, and deploy it, then, in NetBeans, try to open Global/Portlets, I get the following exception:

    org.json.JSONException: A JSONArray text must start with ‘[‘ at character 1 of {“exception”:”Invalid authentication token”}
    at org.json.JSONTokener.syntaxError(JSONTokener.java:448)
    at org.json.JSONArray.(JSONArray.java:107)
    at org.json.JSONArray.(JSONArray.java:146)
    [catch] at org.netbeans.modules.portalpack.servers.websynergy.impl.LiferayTaskHandler.getThemes(LiferayTaskHandler.java:747)
    at org.netbeans.modules.portalpack.servers.websynergy.nodes.ThemeChildrenNode$1.run(ThemeChildrenNode.java:89)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)

    There have been a lot of Invalid authentication token exceptions reported at various times – I’ve had them myself on a live server. It looks as though an exception is getting in the way when I try to access the Portals list.

    Any ideas?

  7. Peter says:

    I eliminated the original message by turning off auth.token.check.enabled. That led to a different exception message in the same circumstances.

    org.json.JSONException: A JSONArray text must start with ‘[‘ at character 1 of {“exception”:”Please sign in to invoke this method”}
    at org.json.JSONTokener.syntaxError(JSONTokener.java:448)
    at org.json.JSONArray.(JSONArray.java:107)
    at org.json.JSONArray.(JSONArray.java:146)
    [catch] at org.netbeans.modules.portalpack.servers.websynergy.impl.LiferayTaskHandler.getPortlets(LiferayTaskHandler.java:686)
    at org.netbeans.modules.portalpack.servers.core.nodes.PortletChildrenNode$1.run(PortletChildrenNode.java:74)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)

  8. Peter says:

    There’s also this in the server log.

    Caused by: java.lang.RuntimeException: The moduleId /hello-world-portlet/6.1.1/war is not correct

  9. Peter says:

    Some more info.

    From the tomcat log.

    INFO: Deploying web application directory /Users/pbw/Software/LifeRay6.1.1/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/Hello_World_2
    23:32:24,788 INFO [pool-2-thread-2][HotDeployImpl:178] Deploying Hello_World_2 from queue
    23:32:24,789 INFO [pool-2-thread-2][PluginPackageUtil:1033] Reading plugin package for Hello_World_2
    23:32:24,790 WARN [pool-2-thread-2][PluginPackageUtil:1131] Plugin package on context Hello_World_2 cannot be tracked because this WAR does not contain a liferay-plugin-package.xml file
    Sep 4, 2012 11:32:24 PM org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext

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