This install assumes you have followed similar instructions for Glassfish from [here]
* assumes Glassfish v2B39 nightly
* assumes Java 1.6
Easy Evaluation Option ( for suits...again )
(1) Download Milestone 1 build:
copy file from here: https://portlet-container.dev.java.net/public/Download_jar.html?url=https://portlet-container.dev.java.net/files/documents/5463/51302/portlet-container-configurator.jar
(2) Install Portlet Container
Run jar file:
> java -jar portlet-container-configurator.jar d:\dev\glassfish d:\dev\glassfish\domains\domain1
-OR-
> java -jar portlet-container-configurator.jar
(which gives you this eye candy below)
(3) Restart Glassfish
> asadmin stop-domain domain1
> asadmin start-domain domain1
(4) Go to URL
http://localhost:8080/portletdriver
(5) Install Sample Portlets
I used the following samples from the portlet-repository [here]
- flickr
- georss
- youtube
- iframe
Just a click off the Admin tab and you have a screen like this...
(6) Voila!
Click the Portlets tab and you have the view of the implemented portlets
Geeks Evaluation Option ( PG - programmer guidance recommended )
Latest CVS Build Option
(1) Create project directory ( eg portlet-container-dir )
> md portlet-container-dir
> cd portlet-container-dir
(2) Subversion is your friend
- get & install svn from http://subversion.tigris.org/project_packages.html
> set PATH=%PATH%;<SVN_INSTALL>/bin
(3) Checkout source
> svn checkout https://portlet-container.dev.java.net/svn/portlet-container/trunk portlet-container --username guest
(4) Maven should also be your friend
get & install maven from http://maven.apache.org/download.html
> set PATH=%PATH%;<MVN_INSTALL>/bin
(5) Compile & Build sources
> cd portlet-container-dir
> mvn package
> mvn verify
(6) Install portlet-container package
> cd portlet-container-dir/dist
> java -jar portlet-container-configurator.jar d:\dev\glassfish d:\dev\glassfish\domains\domain1
(7) Restart Glassfish
> asadmin stop-domain domain1
> asadmin start-domain domain1
Fine!
Resources:
Posted by Manish Gupta on March 16, 2007 at 05:14 PM EST #
Posted by Deepak on March 16, 2007 at 08:15 PM EST #