4 Replies Latest reply on Jan 4, 2006 6:31 AM by pedrosacosta

    url problem in my portlet

    pedrosacosta

      I've deployed my portlet (carris.war) in the server/default/deploy directory.

      My xml files are:

      portlet.xml

      <?xml version="1.0" encoding="UTF-8"?>
      
      <!-- This file is used to declare the portlets of your application -->
      
      <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 1 -->
       <portlet>
       <portlet-name>RegistrationPortlet</portlet-name>
       <portlet-class>com.sample.portlet.Registration</portlet-class>
      
       <!-- The portlet container may cache the output of a portlet. -->
       <expiration-cache>0</expiration-cache>
      
       <!-- Groups mime-type and portlet-mode -->
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>view</portlet-mode>
       </supports>
      
       <!-- Portlet metadata -->
       <portlet-info>
       <title>1: Registar Ocorrencias</title>
       </portlet-info>
       </portlet>
      
       <!-- Portlet 2 -->
       <portlet>
       <portlet-name>TaskListPortlet</portlet-name>
       <portlet-class>com.sample.portlet.TaskList</portlet-class>
       <expiration-cache>0</expiration-cache>
      
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>VIEW</portlet-mode>
       </supports>
      
       <portlet-info>
       <title>2: Lista de Ocorrencias</title>
       </portlet-info>
       </portlet>
      
       <!-- Portlet 3 -->
       <portlet>
       <portlet-name>TreatmentPortlet</portlet-name>
       <portlet-class>com.sample.portlet.Treatment</portlet-class>
       <expiration-cache>0</expiration-cache>
      
       <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>view</portlet-mode>
       </supports>
      
       <portlet-info>
       <title>3: Tratamento das Ocorrencias</title>
       </portlet-info>
       </portlet>
      </portlet-app>
      




      jboss-app.xml
      <jboss-app>
       <app-name>carris</app-name>
      </jboss-app>
      



      carris-object.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <deployments>
       <deployment>
       <parent-ref/>
       <if-exists>overwrite</if-exists>
       <portal>
       <portal-name>carris</portal-name>
       <properties>
       <!-- Set the layout for the default portal -->
       <!-- see also portal-layouts.xml -->
       <property>
       <name>layout.id</name>
       <value>generic</value>
       </property>
       <!-- Set the theme for the default portal -->
       <!-- see also portal-themes.xml -->
       <property>
       <name>theme.id</name>
       <value>Nphalanx</value>
       </property>
       <!-- set the default render set name (used by the render tag in layouts) -->
       <!-- see also portal-renderSet.xml -->
       <property>
       <name>theme.renderSetId</name>
       <value>divRenderer</value>
       </property>
       <!-- set the default strategy name (used by the strategy interceptor) -->
       <!-- see also portal-strategies.xml -->
       <property>
       <name>layout.strategyId</name>
       <value>maximizedRegion</value>
       </property>
       </properties>
       <supported-modes>
       <mode>view</mode>
       <mode>edit</mode>
       <mode>help</mode>
       </supported-modes>
       <supported-window-states>
       <window-state>normal</window-state>
       <window-state>minimized</window-state>
       <window-state>maximized</window-state>
       </supported-window-states>
      
       <page>
       <page-name>Registration</page-name>
       <properties/>
       <window>
       <window-name>RegistrationPortletWindow</window-name>
       <instance-ref>RegistrationPortletInstance</instance-ref>
       <region>center</region>
       <height>0</height>
       </window>
       </page>
       </portal>
       </deployment>
      
       <deployment>
       <if-exists>overwrite</if-exists>
       <instance>
       <instance-name>RegistrationPortletInstance</instance-name>
       <component-ref>carris.RegistrationPortlet</component-ref>
       </instance>
       </deployment>
      </deployments>
      
      



      What url should i put in the browser to retrieve my page?

      Thanks