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
