portals-wsrp4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diego Louzán <diegolou...@metalicana.org>
Subject Re: WSRPTestPortlet error -- Newbie Question
Date Fri, 17 Dec 2004 12:14:34 GMT
     I think you are running incorrectly the examples. If you use the 
SwingConsumer, you do not access the portlets of the producer through a 
browser, but only with the swing interface. If you want to use a consumer 
portal (accessible through a browser) to use the wsrp portlets exposed by the 
producer, you have to deploy the ProxyPortlet portlet bundled with wsrp4j into 
the consumer portal and configure the access to the portlets you are going to 
     There is another thread in this list in which it's explained how to set up 
Pluto Portal to consume WSRP4J Producer portlets. I've attached it below.

     If I'm wrong please be more specific on your error and environment.



Diego, Matthew

Thanks for all your hints and advice - I finally have the proxyportlet
working. Here is what I did...

(a) In the Pluto Portlet Container I have edited the
portletentityregistry.xml for a single portlet:

<?xml version="1.0" encoding="UTF-8"?>
     <!-- wsrp4j wsrp proxy portlet -->
	<application id="98">
     	<portlet id="1">
             <!-- portlet -->
             <!-- producer -->

(b) I then edit the page registry pageregistry.xml for a single portlet too,
with a valid portlet application ID and valid portlet ID, so 98.1:

<?xml version="1.0" encoding="UTF-8"?>
     <fragment name="navigation"

     <fragment name="ProxyTest" type="page">
             <description>This page contains wsrp4j

         <fragment name="row1" type="row">
             <fragment name="col1" type="column">
                 <fragment name="p1" type="portlet">
                     <property name="portlet" value="98.1"/>

(c) I then edit the producer file with the seriously long file name for the


and change all the references to port 8081 to port 8080

I also make sure that the producer ID is the same as the one that I set in
the as the wsrp_producer_id preference, in my case this is "1":

<?xml version="1.0"?>
<Producer id="1">





         <consumer-name>WSRP4J Proxy Portlet</consumer-name>
         <consumer-agent>WSRP4J Proxy Portlet</consumer-agent>

(d) I then modify the portletentityregistry.xml file in the /wsrp webapp
under Tomcat/webapps to register a single portlet with the same references
that I set in wsrp_portlet_handle preference, in my case this is 99.1:

<?xml version="1.0" encoding="UTF-8"?>

     <application id="99">
         <portlet id="1">


(e) I then restart Tomcat and go to http://localhost:8080/pluto/portal. All
is working so far and I see a link to "proxyportlet"

(f) Hurray! The proxy portlet is working.

Thanks guys - your advice and experience has been very helpful indeed.

Wishing you every success in your projects.

Warwick R Bailey MRSC CChem

Icodeon Ltd
Studio 471
48 Regent Street
Cambridge CB2 1FD

e: warwick@icodeon.com
w: www.icodeon.com

Registered Company in England and Wales No: 5068195

View raw message