I worked on the error that I mentioned in the last email (below). Here are a
few observations. The DB creates a portlet_entity table but fails to
populate it. So, I manually inserted the statement in Production.SCRIPT file
under HSQL directory as :
INSERT INTO PORTLET_ENTITY
VALUES(23,'helloworld-1','jetspeed-layouts','VelocityTwoColumns')
INSERT INTO PORTLET_ENTITY
VALUES(24,'helloworld-2','helloworld','helloworldPortlet')
Then I get another error. It says invalid portlet entity helloworld -2. I
think this is because helloworldPortlet is not included in the portlet_defn
table in the HSQL. Does this mean it couldnot be deployed the right way ?
Would you have anysuggestions ?
-Piyush
-----Original Message-----
From: Hari, Piyush
Sent: Friday, July 08, 2005 1:28 PM
To: 'Jetspeed Users List'
Subject: RE: simple JSP portlet in Jetspeed 2.0
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="layout"
name="jetspeed::VelocityTwoColumns">
<fragment id="helloworld-2" type="portlet"
name="helloworld::helloworldPortlet"/>
<property layout="TwoColumns" name="row" value="0"/>
<property layout="TwoColumns" name="column" value="0"/>
</fragment>
<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]