Downloaded jpetstore 1.5 version doesn't work with my Jahia 5.02 installation
Clemens Düpmeier <[email protected]> Mon, 08 Oct 2007 14:13:52 +0200
| Newsgroups | gmane.comp.cms.jahia.devel |
|---|---|
| Organization | Forschungszentrum Karlsruhe |
| Message-ID | <[email protected]> |
Hi,
I am trying to migrate some struts application into Jahia portlets using
the struts portlet bridge approach.
In a first step I tried to install the jpetstore example because the
mailings in this mailing list say that this will be a good example for
such a project.
So, the installation of the portlet went well but when I try to
incorporate the portlet into a Jahia web page the following error
message is shown:
-------
Portlet is Not Available: jpetstore_1.5::JPetstorePortlet
Reason: org.apache.jetspeed.container.JetspeedPortletContext cannot be
cast to org.apache.pluto.core.impl.PortletContextImpl
-------
This seems to be related to a class PortalServletContextProvider which
is implemented in the jpetstore example which return an
PortletContextImpl as return value of the "getServletContext()" method.
--------
public class PortalServletContextProvider implements
ServletContextProvider {
public ServletContext getServletContext(GenericPortlet portlet) {
return ((PortletContextImpl)
portlet.getPortletContext()).getServletContext();
}
....
}
------
This seems to be written for integration of jpetstore with the uPortal
and apparently doesn't work with Jahia. What do I have to use as
ServletContextProvider for Jahia? Is there another jpetstore version
which is compatible with Jahia?
Thanks in advance
Clemens Düpmeier
_______________________________________________
dev_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list