converted to 1.6 markup
|No differences found!|
Describe WSRP4J Installation Notes here.
- After downloading project from CVS, when running install-swing-consumer script, I got compile time error regarding constructor parameters in java.lang.Exception. This is because I used jdk 1.3 as specified in install instructions. Use jdk1.4 to compile cleanly.
In order for custom JSR-168 portlets to appear correctly in SwingConsumer, your WEB-INF/web.xml should mirror the WEB-INF/web.xml of the wsrptest example found in the Tomcat deploy directory. In particular, there are some Pluto specific descriptors that apparently must be retained. Until I made this modification, I received the following message, "Error occured while invoking portlet service!".
In order for your custom portlet to appear in SwingConsumer page you need to add an entry to :
/ws-wsrp4j/SwingConsumer/persistence/pages/org.apache.wsrp4j.consumer.app.driver.PageImpl@WSRP4JTestPortlets.xml <portlet-key xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:org.apache.wsrp4j.consumer.driver.PortletKeyImpl"> <portlet-handle>1.1</portlet-handle> <!-- your handle that you defined in portletentityregistry.xml --> <producer-id>1</producer-id> <!-- your producer-id that you defined in portletentityregistry.xml --> </portlet-key>
- In Pluto, be sure to add an entry in $TOMCAT_HOME/webapps/pluto/WEB-INF/data/portletcontexts.txt
On Windows if you see "No Producers Found" in Producer Registry Configuration portlet of wsrp4j-proxyportlet in pluto and there's an exception in tomcat like: org.apache.wsrp4j.commons.exception.WSRPException: Could not restore object from persistent file. [...] Caused by: java.io.FileNotFoundException: c:winappscodepluto webappswsrp4j-proxyportletWEB-INF\persistence\ProducerMapping.xml then you should change the wsrp4j.proxyportlet.persistence.xml.dir setting (use \\) in your wsrp4j-config.properties file in webapps\wsrp4j-proxyportlet\WEB-INF\classes. (see http://permalink.gmane.org/gmane.comp.jakarta.wsrp4j.user/8)