Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

No component node found at /.../.../exampleServlet WARNING

Avatar

Level 1

Hi all,

I am facing with that I getting the following Warnings in cq5.6 error.log and I have no clue why com.day.cq.wcm.core.impl.components.ComponentCacheImpl writes these logs.

com.day.cq.wcm.core.impl.components.ComponentCacheImpl No component node found at /bin/exampleServlet

But I want to eliminate these logs somehow.

 

I created Sling servlet in OSGI bundle this way.

@SlingServlet(paths = "/bin/exampleServlet", methods = "GET")
public class MyOwnServlet extends SlingAllMethodsServlet { ... }

And I used it in a jsp like this.
<cq:include path="myOwnServlet" resourceType="/bin/exampleServlet" />

 

Why do I get the following log entries? How can I resolve it?

<TIME> *WARN* [<ip>[1479989769373] GET /cheapenergyclub/register HTTP/1.1] com.day.cq.wcm.core.impl.components.ComponentCacheImpl No component node found at /bin/exampleServlet

Any response, answer or suggestion is appreciated.

Regards,
Tibor Kovacs @ EPAM

2 Replies

Avatar

Level 2

I have seen same warning message and i don't have any information about this.

Avatar

Level 3

Hi,

resourceType in AEM refers to a component. Therefore, the warn message.

cq:include is usually used to include a jsp or a component. if you want to include the servlet maybe you can try

<jsp:include page="/servletURL" />

I hope this helps.

Regards

varun mitra