-
1. Re: Portletbridge not usable on a per portlet base
kenfinni Nov 15, 2011 9:33 AM (in response to maggus)Markus,
PortletBridge is meant to be included within the WEB-INF/lib of a Portlet WAR, and this has been tested on GateIn.
I don't believe it would be the ClassLoader of the Portal, but rather the Portlet Container, which should be the same as the Servlet Container.
Ken
-
2. Re: Portletbridge not usable on a per portlet base
wesleyhales Nov 15, 2011 9:49 AM (in response to maggus)Also, org.jboss.portletbridge.richfaces.RichFacesStrategy will not be loaded if the RichFaces jars are not included in the war as well. Same goes for Seam.
-
3. Re: Portletbridge not usable on a per portlet base
maggus Nov 15, 2011 10:16 AM (in response to wesleyhales)Thank you for your reply!
enclosed you can find the information which the debugger gave me.
it looks like the classloader which is used is based on the folder C:\DevelopTools\Liferay\liferay-apache-tomcat-6.0.18\webapps\portal\WEB-INF\classes.
this folder is the place where the portal itself resides. the classloader will not find the portlet-bridge (and it's strategy) on this path... I wonder why this is not the webapp classloader of the portlet webapp...
I get a class-not-found exception from the portlet bridge... the error only happens when having more than one portlet on the portlet page.
the portlet WAR contains the portlet bridge and richfaces in its WEB-INF/lib dir.
Markus
-
4. Re: Portletbridge not usable on a per portlet base
kenfinni Nov 15, 2011 10:30 AM (in response to maggus)That folder is simply a path that is accessible to the ClassLoader.
What would be more interesting is the list of jarFiles that it has available to search for the class.
-
5. Re: Portletbridge not usable on a per portlet base
maggus Nov 15, 2011 10:40 AM (in response to kenfinni)after restarting the server several times, it seems to work now. don't know why...