Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

commentsystem is not have setPath

Avatar

Level 3

It is about customization for the blog comments .

So the comments.jsp from the path "/libs/collab/commons/components/comments/comments.jsp" from crxde was copied to eclipse  to "/apps/collab/commons/components/comments/comments.jsp".

It is throwing an error for the method setPath() .

In the pom.xml of the project I have already included the dependencies .

<dependency>

                                                <groupId>com.day.cq.collab</groupId>

                                                <artifactId>cq-collab-commons</artifactId>

                                                <version>5.5.2</version>

                                    </dependency>

                                    <dependency>

                                                <groupId>com.day.cq.collab</groupId>

                                                <artifactId>cq-collab-blog</artifactId>

                                                <version>5.5.2</version>

                                    </dependency>

                                    <dependency>

                                                <groupId>com.day.cq.collab</groupId>

                                                <artifactId>cq-collab-core</artifactId>

                                                <version>5.5.0</version>

                                    </dependency>

 

Please let me know if I have missed out anything 

1 Accepted Solution

Avatar

Correct answer by
Level 10

I heard back from the Eng team about this. This is their advice:

If you're using CQ 5.5, you should consider upgrading to AEM 6.0, which better supports extensibility.

For AEM 6.0 communities client side customization, there is a tutorial :

  http://docs.adobe.com/docs/en/aem/6-0/develop/social-communities/tutorials/extend-comments.html

For AEM 6.0 communities server side customization, there is a github sample :

   https://github.com/Adobe-Marketing-Cloud/aem-scf-sample-components-customize

If you continue with CQ 5.5, then more information is needed, including the error log message.

View solution in original post

4 Replies

Avatar

Level 10

What version of CQ are you using? 

Avatar

Correct answer by
Level 10

I heard back from the Eng team about this. This is their advice:

If you're using CQ 5.5, you should consider upgrading to AEM 6.0, which better supports extensibility.

For AEM 6.0 communities client side customization, there is a tutorial :

  http://docs.adobe.com/docs/en/aem/6-0/develop/social-communities/tutorials/extend-comments.html

For AEM 6.0 communities server side customization, there is a github sample :

   https://github.com/Adobe-Marketing-Cloud/aem-scf-sample-components-customize

If you continue with CQ 5.5, then more information is needed, including the error log message.

Avatar

Level 3

Thanks for the input.

we are using CQ 5.6.1 and will not upgrading as off now.

The error that i see will building in ecllipse. Please let me know I could solve it

[ERROR] Failed to execute goal org.apache.sling:maven-jspc-plugin:2.0.4-incubator:jspc (compile-jsp) on project connect-app: Unable to compile class for JSP:
[ERROR] 
[ERROR] An error occurred at line: 63 in the jsp file: /apps/collab/commons/components/comments/comments.jsp
[ERROR] The method setPath(String) is undefined for the type CommentSystem
[ERROR] 60:
[ERROR] 61:     if(isRenderByForm ){
[ERROR] 62:
[ERROR] 63:         cs.setPath(CollabUtil.getPagePath(editComment));
[ERROR] 64:         request.setAttribute("isRenderByForm", isRenderByForm);
[ERROR] 65:         request.setAttribute("commentsRoot", childComment.getPath());
[ERROR] 66:     }

Avatar

Level 3

added the same  versions from felix console the problem was solved. Thanks for looking into this.