2 Replies Latest reply on Aug 31, 2005 6:12 AM by Mark Vollmann

    How can I deploy JSR 168 portlet?

    Serguey Shinder Newbie

      Hi all, I am having a problem. I am trying to deploy my portlet application ang get errors.
      I have the following xml files:

      jboss-web.xml
      web.xml
      portlet.xml
      portlet-instances.xml
      jsrpatrolportlet-pages.xml

      The content of these files is as follows:





      web.xml:


      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/dtd/web-app_2_3.dtd">
      <web-app>
      <display-name>jsrpatrolportlet</display-name>
      <description>Automated generated Application Wrapper</description>

      <listener>
      <listener-class>org.jboss.portal.server.servlet.PortalContextListener</listener-class>
      </listener>
      <servlet>
      <servlet-name>PortletServlet</servlet-name>
      <servlet-class>org.jboss.portal.core.servlet.CoreServlet</servlet-class>
      <load-on-startup>0</load-on-startup>
      <init-param>
      <description>WebDAV Directory Root</description>
      <param-name>rootdir</param-name>
      <param-value>/files</param-value>
      </init-param>
      </servlet>
      <servlet-mapping>
      <servlet-name>PortletServlet</servlet-name>
      <url-pattern>/index.html</url-pattern>
      </servlet-mapping>
      <taglib>
      <taglib-uri>http://java.sun.com/portlet</taglib-uri>
      <taglib-location>/WEB-INF/tld/portlet.tld</taglib-location>
      </taglib>
      </web-app>


      portlet.xml:


      <?xml version="1.0" encoding="UTF-8"?>
      <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
      <portlet>
      <portlet-name>PatrolPortlet</portlet-name>
      <portlet-class>patrolportlet.PatrolPortlet</portlet-class>
      <expiration-cache>0</expiration-cache>
      <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>view</portlet-mode>
      <portlet-mode>edit</portlet-mode>
      <portlet-mode>help</portlet-mode>
      </supports>
      <supported-locale>en-US</supported-locale>
      <portlet-info>
      <title>PATROL® Portlet</title>
      <short-title>Patrol</short-title>
      <keywords>Patrol</keywords>
      </portlet-info>

      <portlet-preferences>
      <preference>
      <name>txtParameterPerRow</name>
      <value>3</value>
      </preference>
      <preference>
      <name>txtMultiline</name>
      <value>false</value>
      </preference>
      <preference>
      <name>txtWSCOSURL</name>
      <value>http://localhost:3030/patrol/WSDL</value>
      </preference>
      <preference>
      <name>txtRefreshRate</name>
      <value>0</value>
      </preference>
      <preference>
      <name>txtFontName</name>
      <value>Courier New</value>
      </preference>
      <preference>
      <name>txtFontSize</name>
      <value>12</value>
      </preference>
      <preference>
      <name>columnList</name>
      <value>Status,Legend,Host,Application,Instance,Parameter,Value,Time,Details</value>
      </preference>
      <preference>
      <name>legendList</name>
      <value></value>
      </preference>
      <preference>
      <name>lineColorList</name>
      <value></value>
      </preference>
      <preference>
      <name>agentList</name>
      <value></value>
      </preference>
      <preference>
      <name>KMPathList</name>
      <value></value>
      </preference>
      <preference>
      <name>userNameList</name>
      <value></value>
      </preference>
      <preference>
      <name>userPasswordList</name>
      <value></value>
      </preference>
      <preference>
      <name>displayType</name>
      <value>Table</value>
      </preference>
      <preference>
      <name>txtBackground</name>
      <value>white</value>
      </preference>
      <preference>
      <name>txtGaugeForeground</name>
      <value>white</value>
      </preference>
      <preference>
      <name>txtChartForeground</name>
      <value>white</value>
      </preference>
      <preference>
      <name>txtChartTitle</name>
      <value></value>
      </preference>
      <preference>
      <name>txtChart3D</name>
      <value>false</value>
      </preference>
      <preference>
      <name>txtGridH</name>
      <value>true</value>
      </preference>
      <preference>
      <name>txtGridV</name>
      <value>true</value>
      </preference>
      <preference>
      <name>txtScroller</name>
      <value>true</value>
      </preference>
      <preference>
      <name>txtLineWidth</name>
      <value>1</value>
      </preference>
      <preference>
      <name>txtLegend</name>
      <value>true</value>
      </preference>
      <preference>
      <name>txtLabelX</name>
      <value></value>
      </preference>
      <preference>
      <name>txtLabelY</name>
      <value></value>
      </preference>
      <preference>
      <name>txtLegendPos</name>
      <value>bottom</value>
      </preference>
      <preference>
      <name>txtChartHours</name>
      <value>1</value>
      </preference>
      <preference>
      <name>txtSampleLabelsOn</name>
      <value>true</value>
      </preference>
      <preference>
      <name>txtValueLabelsOn</name>
      <value>true</value>
      </preference>
      <preference>
      <name>txtRange</name>
      <value>100</value>
      </preference>
      <preference>
      <name>txtLowerRange</name>
      <value>0</value>
      </preference>
      <preference>
      <name>txtAutoRange</name>
      <value>true</value>
      </preference>
      <preference>
      <name>txtGaugeWidth</name>
      <value>240</value>
      </preference>
      <preference>
      <name>txtGaugeHeight</name>
      <value>240</value>
      </preference>
      <preference>
      <name>txtChartWidth</name>
      <value>100%</value>
      </preference>
      <preference>
      <name>txtChartHeight</name>
      <value>500</value>
      </preference>
      <preference>
      <name>txtScaleMin</name>
      <value>0</value>
      </preference>
      <preference>
      <name>txtScaleMax</name>
      <value>100</value>
      </preference>
      <preference>
      <name>txtWarningMin</name>
      <value>60</value>
      </preference>
      <preference>
      <name>txtWarningMax</name>
      <value>80</value>
      </preference>
      <preference>
      <name>txtAlarmMin</name>
      <value>80</value>
      </preference>
      <preference>
      <name>txtAlarmMax</name>
      <value>100</value>
      </preference>
      <preference>
      <name>txtgaugeShape</name>
      <value>half</value>
      </preference>
      </portlet-preferences>

      </portlet>
      </portlet-app>



      jboss-web.xml:



      <?xml version="1.0"?>
      <jboss-web>
      <context-root>/jsrpatrolportlet</context-root>
      </jboss-web>


      portlet-instances.xml:


      <?xml version="1.0" standalone="yes"?>
      <instances>
      <instance>
      <instance-name>PatrolPortletInstance</instance-name>
      <component-name>PatrolPortlet</component-name>
      </instance>
      </instances>


      jsrpatrolportlet-pages.xml:


      <pages>
      <portal-name>default</portal-name>
      <page>
      <page-name>patrol</page-name>
      <window>
      <window-name>PatrolPortletWindow</window-name>
      <instance-ref>/jsrpatrolportlet.PatrolPortlet.PatrolPortletInstance</instance-ref>
      <default>true</default>
      <region>left</region>
      <height>0</height>
      </window>
      </page>
      </pages>


      Am I doing something wrong here?