You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by HIREN SHAH <hi...@yahoo.co.in> on 2006/12/01 16:52:26 UTC

Portal Application not available

hi,
   
  I am trying to my firstportlet example. 
   
   
  MY Dirctory structure is as :
   
  firstportlet - 
                  WEB-INF -  classes         -    FirstPortlet.java   
                                    portlet.xml
                                    web.xml
   
   
  My code :
   
  --------------------------------------------------------------------------
  FirstPortlet.java
   
  public class FirstPortlet extends javax.portlet.GenericPortlet
  {
  public void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
  throws javax.portlet.PortletException, java.io.IOException
  {
  response.setContentType("text/html");
  response.getWriter().println("Hello I am a portlet and I am trapped in a Portal!");
  }
  }
   
  ----------------------------------------------------------------------------
   
  -------------------------------------------------------------------------------------
  portlet.xml
   
  <?xml version="1.0" encoding="UTF-8"?>
  <portlet-app id="firstportlet" version="1.0">
  <portlet id="FirstPortlet">
  <portlet-name>FirstPortlet</portlet-name>
  <portlet-class>FirstPortlet</portlet-class>
  <supports>
  <mime-type>text/html</mime-type>
  <portlet-mode>view</portlet-mode>
  
  </supports>
  <supported-locale>de-DE</supported-locale>
  <portlet-info>
  <title>FirstPortlet</title>
  <short-title>First</short-title>
  <keywords>example</keywords>
  </portlet-info>
  
  </portlet>
  </portlet-app>
   
  -------------------------------------------------------------------------------------------------
   
  ---------------------------------------------------------------------------------------
  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>FirstPortlet</display-name>
  </web-app>
   
  ------------------------------------------------------------------------------------------
   
  firstportlet.psml
   
  <?xml version="1.0" encoding="UTF-8"?> 
  <page> 
  <defaults
  skin="orange"
  layout-decorator="tigris"
  portlet-decorator="tigris"
  />
  <title>First Portlet</title>
  <metadata name="title" xml:lang="fr">La plus simple portlet du monde</metadata>
  <fragment id="firstportlet" type="layout" name="jetspeed-layouts::VelocityTwoColumns">
  <fragment id="firstportlet-1" type="portlet" name="firstportlet::FirstPortlet">
  <property layout="TwoColumns" name="row" value="0" />
  <property layout="TwoColumns" name="column" value="0" />
  </fragment>
  </fragment>
  <security-constraints>
  <security-constraints-ref>public-view</security-constraints-ref>
  </security-constraints>
  </page>
   
  --------------------------------------------------------------------------------------------------------
   
   
  But when running http://localhost:8080/jetspeed/portal/firstportlet.psml  it is giving me error:
   
   
   Portlet Application firstportlet not available  -->
   
   
   
   
  Please let me know where I am going wrong. --> -->

 				
---------------------------------
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW

Re: Portal Application not available

Posted by Elif Guner <el...@gmail.com>.
hi,

Do you deploy it with the same name? firstportlet.war?
If not you should change portlet name="firstportlet::FirstPortlet" to
"war_file_name::FirstPortlet"

Elif

On 12/1/06, HIREN SHAH <hi...@yahoo.co.in> wrote:
> hi,
>
>   I am trying to my firstportlet example.
>
>
>   MY Dirctory structure is as :
>
>   firstportlet -
>                   WEB-INF -  classes         -    FirstPortlet.java
>                                     portlet.xml
>                                     web.xml
>
>
>   My code :
>
>   --------------------------------------------------------------------------
>   FirstPortlet.java
>
>   public class FirstPortlet extends javax.portlet.GenericPortlet
>   {
>   public void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
>   throws javax.portlet.PortletException, java.io.IOException
>   {
>   response.setContentType("text/html");
>   response.getWriter().println("Hello I am a portlet and I am trapped in a Portal!");
>   }
>   }
>
>   ----------------------------------------------------------------------------
>
>   -------------------------------------------------------------------------------------
>   portlet.xml
>
>   <?xml version="1.0" encoding="UTF-8"?>
>   <portlet-app id="firstportlet" version="1.0">
>   <portlet id="FirstPortlet">
>   <portlet-name>FirstPortlet</portlet-name>
>   <portlet-class>FirstPortlet</portlet-class>
>   <supports>
>   <mime-type>text/html</mime-type>
>   <portlet-mode>view</portlet-mode>
>
>   </supports>
>   <supported-locale>de-DE</supported-locale>
>   <portlet-info>
>   <title>FirstPortlet</title>
>   <short-title>First</short-title>
>   <keywords>example</keywords>
>   </portlet-info>
>
>   </portlet>
>   </portlet-app>
>
>   -------------------------------------------------------------------------------------------------
>
>   ---------------------------------------------------------------------------------------
>   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>FirstPortlet</display-name>
>   </web-app>
>
>   ------------------------------------------------------------------------------------------
>
>   firstportlet.psml
>
>   <?xml version="1.0" encoding="UTF-8"?>
>   <page>
>   <defaults
>   skin="orange"
>   layout-decorator="tigris"
>   portlet-decorator="tigris"
>   />
>   <title>First Portlet</title>
>   <metadata name="title" xml:lang="fr">La plus simple portlet du monde</metadata>
>   <fragment id="firstportlet" type="layout" name="jetspeed-layouts::VelocityTwoColumns">
>   <fragment id="firstportlet-1" type="portlet" name="firstportlet::FirstPortlet">
>   <property layout="TwoColumns" name="row" value="0" />
>   <property layout="TwoColumns" name="column" value="0" />
>   </fragment>
>   </fragment>
>   <security-constraints>
>   <security-constraints-ref>public-view</security-constraints-ref>
>   </security-constraints>
>   </page>
>
>   --------------------------------------------------------------------------------------------------------
>
>
>   But when running http://localhost:8080/jetspeed/portal/firstportlet.psml  it is giving me error:
>
>
>    Portlet Application firstportlet not available  -->
>
>
>
>
>   Please let me know where I am going wrong. --> -->
>
>
> ---------------------------------
>  Find out what India is talking about on  - Yahoo! Answers India
>  Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org