3 Replies Latest reply on Jun 10, 2008 6:46 PM by Peter Johnson

    Liferay with Jboss

    Vikram Prabhakar Newbie

      I am trying to create a simple PHP portlet in liferay:

      Steps followed:
      1. http://wiki.liferay.com/index.php/How_to_create_a_simple_php_portlet
      on liferay-portal-jboss-tomcat-4.2-5.0.1

      2. Log in as administrator(test@liferay.com/test).
      Select "add application"->Admin->PluginInstaller-> add

      Error(in red):
      "An error occurred while retrieving available plugins."

      The server.log has the following trace:
      ERROR [PluginPackageUtil] Unable to load repository http://plugins.liferay.com/official com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/official
      ERROR [PluginPackageUtil] Unable to load repository http://plugins.liferay.com/community com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/community
      WARN [PluginPackageUtil] Unable to communicate with repository http://plugins.liferay.com/official

      3. Upload the php zipped file using the "upload file" tab -> Install
      I got following success message:
      The plugin was uploaded successfully and is now being installed.

      The server log has:
      07:34:58,582 INFO [PortletAutoDeployListener] Portlets for C:\Documents and Settings\m1006785\liferay\deploy\test_abc.zip copied successfully
      07:35:01,317 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- Packages waiting for a deployer ---
      org.jboss.deployment.DeploymentInfo@b25dfae { url=file:/D:/Liferay/liferay-portal-jboss-tomcat-4.2-5.0.1/server/default/deploy/test_abc.zip/ }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/D:/Liferay/liferay-portal-jboss-tomcat-4.2-5.0.1/server/default/deploy/test_abc.zip/
      altDD: null
      lastDeployed: 1212737701317
      lastModified: 1212737698442
      mbeans:

      --- Incompletely deployed packages ---

      4. Select "Return to full page" , Add application
      By default the portlet was supposed to appear in "Undefined" category but DOESNOT appear. The error in plugin installer section continues to have:

      "An error occurred while retrieving available plugins."

      I am not sure if it is waiting for some plugins to be downloaded from site and is not able to proceed due to communication error while accessing the trusted adn untrusted repositories at the following link:
      http://plugins.liferay.com/official

      Any help would be highly appreciated.
      Thanks in advance.

        • 1. Re: Liferay with Jboss
          Peter Johnson Master

          I know this doesn't solve your problem, but the error:

          url=file:/D:/Liferay/liferay-portal-jboss-tomcat-4.2-5.0.1/server/default/deploy/test_abc.zip/ }
          . . .
          state: INIT_WAITING_DEPLOYER


          indicates that jbossas has no idea how to deploy a zip file. You could try unpacking the zip file. Usually, the file has to end in war, jar, ear, sar or one of the other extensions that jbossas recognizes.


          • 2. Re: Liferay with Jboss
            Vikram Prabhakar Newbie

            Hi peter,
            I tried uploading as jar,war but it shows the same error.
            In the Wiki Liferay site, they say that we have to upload it as a zipped file.

            Thanks for the reply

            • 3. Re: Liferay with Jboss
              Peter Johnson Master

              What are the contents of the zip file?

              If this zip file is related to the liferay portal, you should be asking liferay what it is you are doing wrong. After all, this is the jbossas forum. The most I can tell you is "what you are doing will not work." Because I do not know or use liferay, I cannot tell you what you should be doing to make it work.