I noticed that you mentioned portlet.xml is under jetspeeddirroot/helloworld
??
It should be under yourWebApp/WEB-INF/portlet.xml (same place where your
web.xml is). That _could_ be a problem. Due to missing portlet.xml, jetspeed
might not be deoploying your portlets.
----Original Message Follows----
From: "Hari, Piyush" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" <[email protected]>
To: "'Jetspeed Users List'" <[email protected]>
Subject: RE: simple JSP portlet in Jetspeed 2.0
Date: Fri, 8 Jul 2005 10:27:57 -0700
Using the portlet plugin I developed in Eclipse, I do a maven build on it
and create a .war file. I dragged and dropped it in the deploy folder in
Jetspeed and it disappeared which means it got deployed fine. Then, I
created the following PSML file and placed it in Web-inf's "pages" sub
directory:
*****************************************************
helloworldPortlet.PSML in /jetspeeddir/web-inf/pages/
*****************************************************
<page id="helloworld">
<defaults
skin="orange"
layout-decorator="tigris"
portlet-decorator="tigris"
/>
<title>helloworld</title>
<fragment id="helloworld-1" type="portlet"
name="helloworld::helloworldPortlet"/>
<security-constraints>
<security-constraints-ref>public-view</security-constraints-ref>
</security-constraints>
</page>
*********************************************************************
The portlet.xml is :
********************************************************************
portlet.xml in jetspeeddirroot/helloworld/
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app id="helloworld" version="1.0">
<portlet id="helloworld">
<init-param>
<name>ServletContextProvider</name>
<value>org.apache.jetspeed.portlet.ServletContextProviderImpl</value>
</init-param>
<init-param>
<name>ViewPage</name>
<value>/pages/helloworld.jsp</value>
</init-param>
<portlet-class>org.apache.portals.bridges.common.GenericServletPortlet</port
let-class>
<portlet-name>helloworldPortlet</portlet-name>
<display-name>helloworldPortlet</display-name>
<description>helloworldPortlet</description>
<portlet-class>org.apache.portals.bridges.common.GenericServletPortlet</port
let-class>
<expiration-cache>-1</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>
<portlet-info>
<title>helloworldPortlet</title>
<short-title>This is the short title</short-title>
<keywords>helloworld</keywords>
</portlet-info>
</portlet>
</portlet-app>
*************************************************************************
Problem : When I access the psml I get the following error :
"Failed to retrieve Portlet Definition for
helloworld::helloworldPortletorg.apache.jetspeed.container.window.FailedToRe
trievePortletWindow: No PortletEntity exists for for id helloworld-1
removing window from cache"
can you help me figuring out the problem now?
-Piyush
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]