portals-jetspeed-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bianchi" <stefano.bian...@softeco.it>
Subject Re: new to jetspeed
Date Fri, 09 Sep 2005 11:46:54 GMT
Sorry, I hope not to be misleading...
I usually include portlets using admin tools rather than modifing directly 
psml.
Furthemore (this is ok for J1.6), you should define your portlet in a xreg 
file (the portlet definition).
But maybe you are using J2 and everything is different, if so, sorry.
Cheers
Stefano


----- Original Message ----- 
From: "Bhaskar K" <bhas4@yahoo.com>
To: "Jetspeed Users List" <jetspeed-user@portals.apache.org>; 
<jetspeed-user@jakarta.apache.org>
Sent: Friday, September 09, 2005 1:38 PM
Subject: Re: new to jetspeed


> Aaron,
>
> Thanks for your suggestions!
>
> I still have some issues in maven plugin to create a new portlet, hence 
> tried to create a new portlet by hand & followed below steps -
>
> 1. defined a new class HelloWorld as below -
>
> public class HelloWorld extends GenericPortlet
> {
> public void doView(RenderRequest request,RenderResponse response)
>     throws PortletException,IOException
>    {
>  response.setContentType(request.getResponseContentType());
>  PrintWriter writer = response.getWriter();
>  writer.write("Hello World!");
>    }
> }
>
> 2. defined the portlet in portlet.xml -
> <portlet-app id="myorg" 
> xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" 
> version="1.0">
>   <portlet id="HelloWorld">
>      <portlet-name>HelloWorld</portlet-name>
>      <portlet-class>com.myorg.portlet.HelloWorld</portlet-class>
>      <expiration-cache>0</expiration-cache>
>      <supports>
>         <mime-type>text/html</mime-type>
>         <portlet-mode>VIEW</portlet-mode>
>      </supports>
>      <supported-locale>en</supported-locale>
>      <portlet-info>
>         <title>HelloWorld</title>
>         <keywords>Hello, world, test</keywords>
>      </portlet-info>
>      <portlet-preferences>
>         <preference>
>            <name>displaytext</name>
>            <value>Hello, from your preferences</value>
>         </preference>
>      </portlet-preferences>
>   </portlet>
> </portlet-app>
>
> 3. placed all the required jetspeed jar files in my WEB-INF/lib directory
>
> 4. did a build to create myorg.war file and copied the same to 
> $TOMCAT_HOME/webapps folder
>
> 5. modified the default-page.psml file in jetspeed folder to as below -
>    <fragment id="dp-6" type="portlet" name="myorg::HelloWorld">
>      <property layout="TwoColumns" name="row" value="3" />
>      <property layout="TwoColumns" name="column" value="1" />
>    </fragment>
>
> 6. Tomcat starts up properly & myorg.war is deployed message appears, but 
> I do not see the message "JetspeedContainerServlet: starting 
> initialization of Portlet Application at: myorg" -- as it appears for the 
> other portlets installed ---- not sure what I'm missing here to make 
> tomcat to initialise my portlet
>
> 7. I think because of the above error, I get following error on my 
> webpage -
> Failed to retrieve Portlet Definition for 
> myorg::HelloWorldorg.apache.jetspeed.container.window.FailedToRetrievePortletWindow:

> No PortletEntity exists for for id dp-6 removing window from cache.Failed 
> to retrieve Portlet Definition for myorg::HelloWorld
>
> Questions/Doubts I have are:
> 1. Is it required to register/have the new portlets developed in the 
> database?
> 2. What is the role of database in jetspeed application?
> 3. What is the configuration or files that I'm missing in my above new 
> portlet to deploy successfully?
>
> Thanks for your help in advance...
> Bhaskar
>
> Aaron Evans <aaronmevans@yahoo.ca> wrote:
> Bhaskar K yahoo.com> writes:
>
>
>> I would like to know if we have any instructions that explains how to 
>> create a
> new portlets without using the
>> maven plug-in that explains all the steps?
>>
>
> Bhaskar,
> the easiest way to deploy new portlets is to get jetspeed up and running 
> and
> then drop the war file for your custom portlet in jetspeed's
> WEB-INF/deploy directory and it will take care of the rest after a few
> seconds.
>
> To view it, then just modify the psml of one of the pages (eg.
> WEB-INF/pages/default-page.psml) adding a reference to your portal.
>
> You can operate on the live version of jetspeed, or you can modify it 
> between
> the j2:portal.genapp and the war:install steps. Typically, I keep my
> jetspeed customizations in a separate directory of my project, run
> maven j2:portal.genapp to generate a portal and then use ant to apply my
> customizations to it.
>
> Then I just call
> maven war:install
> and
> maven j2:quickStart
>
> For subsequent changes, I edit my customizations run my ant build and then
> just do the war:install and j2:quickStart steps.
>
> Hope this helps.
>
> aaron
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>
> ---------------------------------
> Yahoo! Messenger  NEW - crystal clear PC to PC calling worldwide with 
> voicemail 




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


Mime
View raw message