XWiki portlet cannot run in JBoss Portal without modifications.
Actually XWiki wants to access the requet URL
Since the request URL is not provided by the PortletRequest, it has an abstraction to get
the request URL by using hacks like a cast to a specific class from portal vendors.
That has not been implemented for JBoss Portal.
You should look at the source code of xwiki and see if you can recompile with the
following modification:
In the class com.xpn.xwiki.web.XWikiPortletRequest there is a getHttpServletRequest()
method. You should try to add the following code:
| if
(request.getSession().getPortletContext().getServerName().equals("JBossPortal/1.0")))
| {
| Class clazz =
Thread.currentThread().getContextClassLoader().loadClass("org.jboss.portal.bridge.JBossServletContextProvider");
| Method getHttpServletRequest = clazz.getMethod("getHttpServletRequest",
new Class[]{GenericPortlet.class,PortletRequest.class};
| return (HttpServletRequest)getHttpServletRequest.invoke(null, new
Object[]{null,portletRequest});
| }
|
That should fix that first issue you are having.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051247#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...