You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by Bernhard Bauer <ba...@aon.at> on 2005/05/13 11:08:06 UTC

deployment of a portlet

hi all!

i'm let's say a very beginner with pluto. so i'm trying to deploy a simple portlet into pluto. but it drives me crazy.

i use the binary distribution of pluto & java 1.5 on a windows machine.

i found the example bookmark portlets on javaworld and tried to follow the instruction...
first thing - my binary pluto file has no install.bat or something like that (i know it's not necessary because it comes with a tomcat distribuition and you just have to start the server with the startup file in the bin directory)

anyway - when it comes to the deployment of the bookmark portlet in the javaworld article - there is mentioned a file called something like "portletDeploy.bat" - i've no file like this...

i've tried so much including maven & ant deployment but can't manage to get the thing running - please help me!! is someone out the who has a clear instruction how to deploy a portlet in pluto - step by step! 

i would be very grateful!

thank you,
bernhard

Re: deployment of a portlet

Posted by Gad <mR...@hotmail.com>.
Bernhard Bauer <bauer_bernhard <at> aon.at> writes:

> 
> 
> hi all!
>  
> i'm let's say a very beginner with pluto. so i'm 
> trying to deploy a simple portlet into pluto. but it drives me 
> crazy.
>  
> i use the binary distribution of pluto & java 
> 1.5 on a windows machine.
>  
> i found the example bookmark portlets on javaworld 
> and tried to follow the instruction...
> first thing - my binary pluto file has no 
> install.bat or something like that (i know it's not necessary because it comes 
> with a tomcat distribuition and you just have to start the server with the 
> startup file in the bin directory)
>  
> anyway - when it comes to the deployment of the 
> bookmark portlet in the javaworld article - there is mentioned a file called 
> something like "portletDeploy.bat" - i've no file like this...
>  
> i've tried so much including maven & ant 
> deployment but can't manage to get the thing running - please help me!! is 
> someone out the who has a clear instruction how to deploy a portlet in pluto - 
> step by step! 
>  
> i would be very grateful!
>  
> thank you,
> bernhard
> 


Hello,

I am also a new beginner of Pluto and I succeeded in deploying my first portlet.

Here is my configuration : 
OS : Ubuntu
java : j2sdk1_4_2_08 (i tried with java 1.5 but I had problems such as : "enum"
is a keyword and may not be used as an identifier)
maven : 1.0.2
tomcat : 5.5.9
pluto : 1.0.1-rc2


It is said on the Apache's website
(http://portals.apache.org/pluto/install.html) :  
"Currently, to automate the deployment/installation of portlets you must utilize
the source distribution of pluto"

So you should use the source distribution of pluto.

Once Tomcat, maven and pluto have been installed (don't forget the environment
variables : MAVEN_HOME and CATALINA_HOME) : you can deploy your portlet.

Firstly, you must generate a WAR file of your web app'.
You can use this command : "maven war", but you have to check if the file is
correct (for my project, the command did not generate the WAR file with my JSP
files as I wanted).

Next, under PLUTO_HOME/deploy, I use this command : 
maven deploy -Ddeploy=path/of/your/War/file/toto.war

If Pluto knows where tomcat is (PLUTO_HOME/build.properties), the deployment can
be executed with success.


build:start:

deploy:
    [java] deploying 'toto' ...
    [java] finished!
    [java] prepare web archive 'toto' ...
    [java] finished!
BUILD SUCCESSFUL


You can notice in TOMCAT_HOME/webapp/ that there is a new directory for your
project. Now, you have to configure 3 files of pluto :

TOMCAT_HOME/webapp/pluto/WEB-INF/data :

portletentityregistry.xml
portletcontext.txt
pageregistry.xml

as it is said in the installation guide of Pluto website
(http://portals.apache.org/pluto/install.html)

At last, launch tomcat with the startup file (TOMCAT_HOME/bin) and point your
browser to http://localhost:8080/pluto/portal

The link to your portlet you've defined in pageregistry.xml should now appear.

I hope this explanation could help you.

Gad






Re: deployment of a portlet

Posted by CD...@hannaford.com.
Bernhard,

I'm sorry, but I should have mentioned that the portlet (or portlets) need 
to be packaged in a valid portlet application war file with the proper 
file structure and web.xml/portlet.xml as specified in the JSR-168 spec 
before you can deploy them using the Pluto Admin Portlet App.
/Craig




"Bernhard Bauer" <ba...@aon.at> 
05/13/2005 02:01 PM
Please respond to
pluto-user@portals.apache.org


To
<pl...@portals.apache.org>
cc

Subject
Re: deployment of a portlet






hi craig!
thank you for this information!
but is there also a possibility to do the portlet deployment "by hand"? if 
i would create a portlet with 'standard webapplication directory 
structure', compile the .java file, create a portlet.xml, web.xml,... 
would this also work? and can i find somewhere in the www a detailed 
instruction?
 
thank you,
bernhard
----- Original Message ----- 
From: CDoremus@hannaford.com 
To: pluto-user@portals.apache.org 
Sent: Friday, May 13, 2005 6:05 PM
Subject: Re: deployment of a portlet


Hi Bernhard, 

I created an Admin Portlet Application that include portlets for deploying 
new portlet applications to Pluto, which is now incorporated into the 
Pluto binary distribution in the Subversion repository. I suggest you try 
to build the binary distribution from SVN using maven (command line: maven 
distribute:binary). Maven will build a zipped and tarred version of the 
distribution and place it in the target/distributions directory. Expand 
one of these files into your file system. 
After you start this new version of Pluto, click on the Admin link and use 
the Deploy War Portlet to deploy your custom portlet. 
/Craig 




"Bernhard Bauer" <ba...@aon.at> 
05/13/2005 05:08 AM 

Please respond to
pluto-user@portals.apache.org



To
<pl...@portals.apache.org> 
cc

Subject
deployment of a portlet








hi all! 
  
i'm let's say a very beginner with pluto. so i'm trying to deploy a simple 
portlet into pluto. but it drives me crazy. 
  
i use the binary distribution of pluto & java 1.5 on a windows machine. 
  
i found the example bookmark portlets on javaworld and tried to follow the 
instruction... 
first thing - my binary pluto file has no install.bat or something like 
that (i know it's not necessary because it comes with a tomcat 
distribuition and you just have to start the server with the startup file 
in the bin directory) 
  
anyway - when it comes to the deployment of the bookmark portlet in the 
javaworld article - there is mentioned a file called something like 
"portletDeploy.bat" - i've no file like this... 
  
i've tried so much including maven & ant deployment but can't manage to 
get the thing running - please help me!! is someone out the who has a 
clear instruction how to deploy a portlet in pluto - step by step! 
  
i would be very grateful! 
  
thank you, 
bernhard 

Re: deployment of a portlet

Posted by Bernhard Bauer <ba...@aon.at>.
hi craig!
thank you for this information!
but is there also a possibility to do the portlet deployment "by hand"? if i would create a portlet with 'standard webapplication directory structure', compile the .java file, create a portlet.xml, web.xml,... would this also work? and can i find somewhere in the www a detailed instruction?

thank you,
bernhard
  ----- Original Message ----- 
  From: CDoremus@hannaford.com 
  To: pluto-user@portals.apache.org 
  Sent: Friday, May 13, 2005 6:05 PM
  Subject: Re: deployment of a portlet



  Hi Bernhard, 

  I created an Admin Portlet Application that include portlets for deploying new portlet applications to Pluto, which is now incorporated into the Pluto binary distribution in the Subversion repository. I suggest you try to build the binary distribution from SVN using maven (command line: maven distribute:binary). Maven will build a zipped and tarred version of the distribution and place it in the target/distributions directory. Expand one of these files into your file system. 
  After you start this new version of Pluto, click on the Admin link and use the Deploy War Portlet to deploy your custom portlet. 
  /Craig 




        "Bernhard Bauer" <ba...@aon.at> 
        05/13/2005 05:08 AM Please respond to
              pluto-user@portals.apache.org 


       To <pl...@portals.apache.org>  
              cc  
              Subject deployment of a portlet 

              

       



  hi all! 
    
  i'm let's say a very beginner with pluto. so i'm trying to deploy a simple portlet into pluto. but it drives me crazy. 
    
  i use the binary distribution of pluto & java 1.5 on a windows machine. 
    
  i found the example bookmark portlets on javaworld and tried to follow the instruction... 
  first thing - my binary pluto file has no install.bat or something like that (i know it's not necessary because it comes with a tomcat distribuition and you just have to start the server with the startup file in the bin directory) 
    
  anyway - when it comes to the deployment of the bookmark portlet in the javaworld article - there is mentioned a file called something like "portletDeploy.bat" - i've no file like this... 
    
  i've tried so much including maven & ant deployment but can't manage to get the thing running - please help me!! is someone out the who has a clear instruction how to deploy a portlet in pluto - step by step! 
    
  i would be very grateful! 
    
  thank you, 
  bernhard 

Re: deployment of a portlet

Posted by CD...@hannaford.com.
Hi Bernhard,

I created an Admin Portlet Application that include portlets for deploying 
new portlet applications to Pluto, which is now incorporated into the 
Pluto binary distribution in the Subversion repository. I suggest you try 
to build the binary distribution from SVN using maven (command line: maven 
distribute:binary). Maven will build a zipped and tarred version of the 
distribution and place it in the target/distributions directory. Expand 
one of these files into your file system.
After you start this new version of Pluto, click on the Admin link and use 
the Deploy War Portlet to deploy your custom portlet.
/Craig





"Bernhard Bauer" <ba...@aon.at> 
05/13/2005 05:08 AM
Please respond to
pluto-user@portals.apache.org


To
<pl...@portals.apache.org>
cc

Subject
deployment of a portlet






hi all!
 
i'm let's say a very beginner with pluto. so i'm trying to deploy a simple 
portlet into pluto. but it drives me crazy.
 
i use the binary distribution of pluto & java 1.5 on a windows machine.
 
i found the example bookmark portlets on javaworld and tried to follow the 
instruction...
first thing - my binary pluto file has no install.bat or something like 
that (i know it's not necessary because it comes with a tomcat 
distribuition and you just have to start the server with the startup file 
in the bin directory)
 
anyway - when it comes to the deployment of the bookmark portlet in the 
javaworld article - there is mentioned a file called something like 
"portletDeploy.bat" - i've no file like this...
 
i've tried so much including maven & ant deployment but can't manage to 
get the thing running - please help me!! is someone out the who has a 
clear instruction how to deploy a portlet in pluto - step by step! 
 
i would be very grateful!
 
thank you,
bernhard