portals-wsrp4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schelling Bernhard" <Bernhard.Schell...@lemon42.com>
Subject RE: WSRPTestPortlet error -- Newbie Question
Date Fri, 17 Dec 2004 13:39:15 GMT
hi,

> -----Original Message-----
> From: Diego Louzán [mailto:diegolouzan@metalicana.org] 
> Sent: Friday, December 17, 2004 1:15 PM
> To: wsrp4j-user@ws.apache.org
> Subject: Re: WSRPTestPortlet error -- Newbie Question
> 
> 
>      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. 
that's it! (banging my head on the wall...)

> 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 consume.
that's exactly whati want.


> 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.

[...]
> (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"
[...]


I don't :(
I think I missed something again.  So far I edited the files

c:\tomcat5\ws-wsrp4j\provider\pluto\war\WEB-INF\data\portletentityregistry.xml
c:\tomcat5\ws-wsrp4j\portlets\proxyportlet\war\examples\pageregistry.xml
c:\tomcat5\ws-wsrp4j\portlets\proxyportlet\war\WEB-INF\persistence\producers\org.apache.wsrp4j.consumer.driver.ProducerImpl@wsrp4j-8081.xml


but i think i should copy some directories to tomcat5\webapps\directory
which, at the moment looks like:

17.12.2004  14:36       <DIR>          .
17.12.2004  14:36       <DIR>          ..
16.07.2004  15:32       <DIR>          balancer
17.12.2004  14:36                    0 files.txt
16.07.2004  15:32       <DIR>          jsp-examples
16.07.2004  15:32       <DIR>          ROOT
16.07.2004  15:32       <DIR>          servlets-examples
19.07.2004  13:51       <DIR>          slide-doc
28.04.2004  10:44            2.355.281 slide-doc.war
19.07.2004  15:38       <DIR>          soap
19.07.2004  15:38              375.487 soap.war
16.07.2004  15:33       <DIR>          tomcat-docs
16.07.2004  15:33       <DIR>          webdav
16.12.2004  17:53       <DIR>          wsrp
16.12.2004  17:53                   71 wsrp.xml
16.12.2004  17:53       <DIR>          wsrptest


--> no pluto directory here...
thanks for your patience, i really appreciate your help!

regards
bernhard









___________________________________________
lemon42 IT, Web und Software GmbH
Bernhard Schelling
Leitung Produktentwicklung

Blindengasse 3 
A-1080 Wien
Tel.:  +43 / 1 / 403 01 95 -415
Fax.: +43 / 1 / 403 01 95 -30
URL:   http://www.lemon42.com               

***************************************
technology for integration and mobility
***************************************

Hier können Sie sich zu unserem Newsletter anmelden. 
http://www.lemon42.com/evo/web/lemon42/439_DE 





> 
> --------------------------------------------------------------
> ------------------
> 
> 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"?> <portlet-entity-registry>
>      <!-- wsrp4j wsrp proxy portlet -->
> 	<application id="98">
>      	<definition-id>proxyportlet</definition-id>
>      	<portlet id="1">
>          	<definition-id>proxyportlet.ProxyPortlet</definition-id>
>              <!-- portlet -->
>          	<preferences>
>              	<pref-name>wsrp_portlet_handle</pref-name>
>              	<pref-value>99.1</pref-value>
>              	<read-only>false</read-only>
> 	        </preferences>
>              <!-- producer -->
>      	    <preferences>
>          	<pref-name>wsrp_producer_id</pref-name>
>              	<pref-value>1</pref-value>
> 	        <read-only>false</read-only>
>      	    </preferences>
> 	    </portlet>
> 	</application>
> </portlet-entity-registry>
> 
> (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"?>
> <portal>
>      <fragment name="navigation" 
> class="org.apache.pluto.portalImpl.aggregation.navigation.TabN
> avigation">
>      </fragment>
> 
>      <fragment name="ProxyTest" type="page">
>          <navigation>
>              <title>ProxyTest</title>
>              <description>This page contains wsrp4j 
> proxyportlets</description>
>          </navigation>
> 
>          <fragment name="row1" type="row">
>              <fragment name="col1" type="column">
>                  <fragment name="p1" type="portlet">
>                      <property name="portlet" value="98.1"/>
>                  </fragment>
>              </fragment>
>          </fragment>
>      </fragment>
> </portal>
> 
> (c) I then edit the producer file with the seriously long 
> file name for the
> proxyportlet:
> 
> org.apache.wsrp4j.consumer.driver.ProducerImpl@wsrp4j-8081.xml
> 
> 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">
> 
> 
> <markup-interface-url>http://localhost:8080/wsrp/wsrp4j/WSRPBa
> seService</mar
> kup-interface-url>
> 
> <service-description-interface-url>http://localhost:8080/wsrp/
> wsrp4j/WSRPSer
> viceDescriptionService</service-description-interface-url>
> 
> <registration-interface-url>http://localhost:8080/wsrp/wsrp4j/
> WSRPRegistrati
> onService</registration-interface-url>
> 
> <portlet-management-interface-url>http://localhost:8080/wsrp/w
> srp4j/WSRPPort
> letManagementService</portlet-management-interface-url>
> 
>      <registration-data>
>          <consumer-name>WSRP4J Proxy Portlet</consumer-name>
>          <consumer-agent>WSRP4J Proxy Portlet</consumer-agent>
>      </registration-data>
> </Producer>
> 
> (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"?> <portlet-entity-registry>
> 
>      <application id="99">
>          <definition-id>portlet1</definition-id>
>          <portlet id="1">
>              <definition-id>portlet1.Portlet1</definition-id>
>          </portlet>
>      </application>
> 
> </portlet-entity-registry>
> 
> (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
> England
> 
> e: warwick@icodeon.com
> w: www.icodeon.com
> 
> Registered Company in England and Wales No: 5068195
> 

Mime
View raw message