[opencms-dev] Alkacon OAMP "Module Comments" problems

Olli Aro olli_aro at yahoo.co.uk
Wed Sep 17 18:53:40 CEST 2008


Hi all,

 

I have finally faced with problem also with one of our OpenCms
installations. The cause for this problem is that for some reason command
${cms.requestContext.uri} does not work.

 

So, in order to get this working I modified the comment include as follows:

 

<!-- COMMENTS START -->

<%

CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,
response);

String currentUri = cms.getRequestContext().getUri();

%>

 

<c:set var="comments"><cms:property name="comments" file="search"/></c:set>

 

<c:if test="${!empty comments}">

 

<cms:include
file="%(link.weak:/system/modules/com.alkacon.opencms.comments/elements/comm
ent_main.jsp:a1074f4d-1205-11dd-8a3f-111d34530985)" >

 

<cms:param name="cmturi"><%= currentUri %></cms:param>

 

</cms:include>

 

</c:if>

<!-- COMMENTS END -->

 

Hope this helps for the other people with this problem as well.

 

Regards,

 

Olli

 

  _____  

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Sandrine Prousteau
Sent: 12 September 2008 14:08
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Alkacon OAMP "Module Comments" problems

 

Hi

You are the 3rd person how have this pb. You could find in mails that it
work when it’s in /system but not in /sites
.

 

  _____  

De : opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] De la part de
Alejandro.Latorre.Miguel at everis.com
Envoyé : vendredi 12 septembre 2008 15:03
À : opencms-dev at opencms.org
Objet : [opencms-dev] Alkacon OAMP "Module Comments" problems

 


Hi, 

I installed the "alkacon comments module"  and I have some problems, when I
try to see the page with the comments  -> appears an error message with the
next stacktrace: 

java.lang.NullPointerException
                at
com.alkacon.opencms.comments.CmsCommentsAccess.getPages(CmsCommentsAccess..ja
va:574)
                at
com.alkacon.opencms.comments.CmsCommentsAccess.init(CmsCommentsAccess.java:6
84)
                at
org.opencms.jsp.CmsJspLoginBean.<init>(CmsJspLoginBean.java:95)
                at
com.alkacon.opencms.comments.CmsCommentsAccess.<init>(CmsCommentsAccess.java
:184)
                at
com.ibm._jsp._comment_5F_main._jspService(_comment_5F_main.java:82)
                at
com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
                at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1
075)
                at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.
java:550)
                at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrappe
r.java:478)
                at
com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(Gener
icServletWrapper.java:122)
                at
com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequ
est(AbstractJSPExtensionServletWrapper.java:226)
                at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequest
Dispatcher.java:639)
                at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDisp
atcher.java:194)
                at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava:169)
                at
org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1193)
                at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRe
questDispatcher.java:423)
                at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava:173)
                at
org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.jav
a:364)
                at
org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:241)
                at
org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:472)
                at
com.ibm._jsp._main._jspx_meth_cms_include_9(_main.java:1546)
                at com.ibm._jsp._main._jspx_meth_c_if_7(_main.java:1576)
                at
com.ibm._jsp._main._jspx_meth_cms_template_2(_main.java:1670)
                at com.ibm._jsp._main._jspService(_main.java:190)
                etc... 

I install before the required modules (webforms) for to run the comment
module. 
I use WebSphere and mi version of OpenCms is 7.0.5 

I need solutions or suggestions. 

thanks... 







AVISO DE CONFIDENCIALIDAD.
Este correo y la información contenida o adjunta al mismo es privada y
confidencial y va dirigida exclusivamente a su destinatario. everis informa
a quien pueda haber recibido este correo por error que contiene información
confidencial cuyo uso, copia, reproducción o distribución está expresamente
prohibida. Si no es Vd. el destinatario del mismo y recibe este correo por
error, le rogamos lo ponga en conocimiento del emisor y proceda a su
eliminación sin copiarlo, imprimirlo o utilizarlo de ningún modo.

CONFIDENTIALITY WARNING.This message and the information contained in or
attached to it are private and confidential and intended exclusively for the
addressee. everis informs to whom it may receive it in error that it
contains privileged information and its use, copy, reproduction or
distribution is prohibited. If you are not an intended recipient of this
E-mail, please notify the sender, delete it and do not read, act upon,
print, disclose, copy, retain or redistribute any portion of this E-mail. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080917/483a5454/attachment.htm>


More information about the opencms-dev mailing list