Combination View Flat View Tree View
Threads [ Previous | Next ]
Robin S.
Integrating confluence wiki portlet
June 4, 2009 5:05 AM
Answer

Robin S.

Rank: Regular Member

Posts: 118

Join Date: September 16, 2008

Recent Posts

Hi guys,

I'm trying to integrate the confluence wiki portlet into liferay.

The manual is very old though(2007) and links to the files attached there, don't work any more.

Now I go some problems deploying this portlet.
First error message was that the liferay-portlet.xml is missing so I created one and filled it with similar data, I got from other portlets.
Problem is I don't know too much about that portlet.xml-stuff. I attached my portlet.xml and liferay-portlet.xml from this portlet.

Tomcat prints this errormessage on deploy:

09:42:45,686 INFO [PortletHotDeployListener:219] Registering portlets for confluence-port
let
09:42:45,796 ERROR [HotDeployUtil:111] com.liferay.portal.kernel.deploy.hot.HotDeployExcep
tion: Error registering portlets for confluence-portlet
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for co
nfluence-portlet
at com.liferay.portal.deploy.hot.BaseHotDeployListener.throwHotDeployException(Bas
eHotDeployListener.java:47)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotD
eployListener.java:124)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeploy
Util.java:108)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUt
il.java:153)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUti
l.java:43)
at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(PortletCont
extListener.java:113)
at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:
48)
at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(Por
tletContextListener.java:109)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:376
4)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1218)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.j
ava:120)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:130
6)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChil
dren(ContainerBase.java:1570)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChil
dren(ContainerBase.java:1579)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Contain
erBase.java:1559)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at com.atlassian.confluence.portlets.RecentlyUpdatedPortlet.<init>(Unknown Source)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor
Impl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor
AccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(PortletHotDe
ployListener.java:395)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHo
tDeployListener.java:242)
at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotD
eployListener.java:121)
... 22 more
09:42:46,499 INFO [PortletAutoDeployListener:87] Portlets for C:\Programme\Liferay 5.2.2\
deploy\confluence-portlet.war copied successfully. Deployment will start in a few seconds.

09:43:25,044 ERROR [PortletContextFactory:86] Portlet RecentlyUpdatedPortlet_WAR_confluenc
eportlet has a null portlet bag
09:43:25,044 ERROR [:711] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at com.liferay.portlet.PortletContextFactory._create(PortletContextFactory.java:93
)
at com.liferay.portlet.PortletContextFactory.create(PortletContextFactory.java:52)

at com.liferay.portlet.PortletConfigFactory._create(PortletConfigFactory.java:73)
at com.liferay.portlet.PortletConfigFactory.create(PortletConfigFactory.java:46)
at org.apache.jsp.html.portlet.layout_005fconfiguration.view_005fcategory_jsp._jsp
Service(view_005fcategory_jsp.java:853)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.jav
a:679)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.
java:584)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.ja
va:497)
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:67)
at org.apache.jsp.html.portlet.layout_005fconfiguration.view_jsp._jspx_meth_lifera
y_002dutil_005finclude_005f0(view_jsp.java:1183)
at org.apache.jsp.html.portlet.layout_005fconfiguration.view_jsp._jspService(view_
jsp.java:957)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.jav
a:679)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.
java:584)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.ja
va:497)
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:67)
at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:1696
)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.jav
a:679)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.
java:584)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.ja
va:497)
at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatc
herImpl.java:302)
at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatch
erImpl.java:115)
at com.liferay.portal.struts.PortletRequestProcessor.doInclude(PortletRequestProce
ssor.java:284)
at com.liferay.portal.struts.PortletRequestProcessor.doForward(PortletRequestProce
ssor.java:255)
at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesReque
stProcessor.java:239)
at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(Til
esRequestProcessor.java:341)
at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:
572)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcess
or.java:235)
at com.liferay.portlet.StrutsPortlet.include(StrutsPortlet.java:261)
at com.liferay.portlet.StrutsPortlet.doView(StrutsPortlet.java:156)
at com.liferay.portal.kernel.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java
:149)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(Filte
rChainImpl.java:126)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.
java:69)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:630)
at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:698
)
at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:417)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportle
t_jsp.java:1409)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.jav
a:679)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.
java:584)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.ja
va:497)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:2839)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:2761)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:846)
at com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAction.java:
96)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor
.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor
.java:159)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:505)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:732)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)

at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.
java:142)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)

at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.jav
a:140)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)

at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilt
er.java:282)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)

at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(Auto
LoginFilter.java:244)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)

at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.j
ava:193)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)

at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(Virtu
alHostFilter.java:188)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)

at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.ja
va:738)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
172)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja
va:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10
8)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn
ection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5
28)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorke
rThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:6
89)
at java.lang.Thread.run(Thread.java:595)
09:43:25,044 ERROR [IncludeTag:79] Current URL /c/portal/render_portlet generates exceptio
n: null
09:43:25,044 ERROR [IncludeTag:165] java.lang.NullPointerException
at com.liferay.portlet.PortletContextFactory._create(PortletContextFactory.java:93
)
at com.liferay.portlet.PortletContextFactory.create(PortletContextFactory.java:52)

at com.liferay.portlet.PortletConfigFactory._create(PortletConfigFactory.java:73)
at com.liferay.portlet.PortletConfigFactory.create(PortletConfigFactory.java:46)
at org.apache.jsp.html.portlet.layout_005fconfiguration.view_005fcategory_jsp._jsp
Service(view_005fcategory_jsp.java:853)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.jav
a:679)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.
java:584)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.ja
va:497)
at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:67)
at org.apache.jsp.html.portlet.layout_005fconfiguration.view_jsp._jspx_meth_lifera
y_002dutil_005finclude_005f0(view_jsp.java:1183)
at org.apache.jsp.html.portlet.layout_005fconfiguration.view_jsp._jspService(view_
jsp.java:957)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)


Anybody notices a mistake I made or knows if this portlet is even compatible with later liferay versions?

thanks in advance
regards
Attachments: liferay-portlet.xml (0.6k), portlet.xml (1.5k)