2 Replies Latest reply on Mar 2, 2006 12:59 PM by Gloria Martinez

    a problem of deploying a web app as the portlet

    shi wei Newbie

      I have read the liferay portal,it provide many useful portlets.
      Now,I am trying to make the calendar portlet run in the jboss portal,but I met some problems,here are the problems:

      my portlet.xml is:
      <?xml version="1.0"?>
      <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
      version="1.0">

      <portlet-name>Calendar</portlet-name>
      <portlet-class>com.liferay.portlet.StrutsPortlet</portlet-class>
      <init-param>
      view-action
      /calendar/view
      </init-param>
      <expiration-cache>0</expiration-cache>

      <mime-type>text/html</mime-type>

      <portlet-preferences>

      event-type


      </portlet-preferences>

      </portlet-app>

      my calendar-object.xml is:
      <?xml version="1.0" encoding="UTF-8"?>


      <if-exists>keep</if-exists>
      <parent-ref>default</parent-ref>

      <page-name>HelloWorld</page-name>

      <window-name>CalendarPortletWindow</window-name>
      <instance-ref>CalendarPortletInstance</instance-ref>
      center
      3




      <if-exists>overwrite</if-exists>

      <instance-name>CalendarPortletInstance</instance-name>
      <component-ref>helloworld.CalendarPortlet</component-ref>




      all the classes and jars are included,and I have copy them into the portal-helloworld.war/WEB-INF/ under jboss-portal.sar. when I start the jboss, I met the errors as follow:

      15:23:05,051 ERROR [MainDeployer]
      Could not create deployment: file:/D:/job/JBoss4.0/server/default/deploy/jboss-portal.sar/portal-helloworld.war/WEB-INF/portlet.xml
      org.jboss.deployment.DeploymentException: Cannot deploy portlet application; - nested throwable: (java.lang.IllegalArgumentException: No element found)