Error when loading the AEM page

Avatar

Avatar
Validate 1
Level 1
knstechaspect
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
knstechaspect
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
knstechaspect
Level 1

09-03-2018

com.day.cq.wcm.tags.IncludeTag Error while executing script header.jsp

org.apache.sling.api.scripting.ScriptEvaluationException:

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:388)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:171)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:463)

        at com.day.cq.wcm.tags.IncludeTag.includeScript(IncludeTag.java:167)

        at com.day.cq.wcm.tags.IncludeTag.doEndTag(IncludeTag.java:87)

        at org.apache.jsp.apps.ppn.components.page.productpage.body_jsp._jspx_meth_cq_005finclude_005f0(body_jsp.java:245)

        at org.apache.jsp.apps.ppn.components.page.productpage.body_jsp._jspService(body_jsp.java:178)

        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)

        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502)

        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449)

        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:284)

        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:102)

        at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:536)

Not sure how to debug this kind of issues. Looks like there is some issue with JSP include. Any idea?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 3
Radha_Krishna_N
Level 3

Likes

15 likes

Total Posts

51 posts

Correct reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Radha_Krishna_N
Level 3

Likes

15 likes

Total Posts

51 posts

Correct reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Radha_Krishna_N
Level 3

12-03-2018

Hi,

go to http://<server:port>/system/console/fsclassloader => find apps/ppn/components/page/productpage/body.jsp => check what is on line no 245

Thanks,

Radha Krishna N

Answers (7)

Answers (7)

Avatar

Avatar
Level 1
manishaa5646486
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
manishaa5646486
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
manishaa5646486
Level 1

22-05-2019

Were you able to resolve the issue? What have you done for resolving the issue?

Avatar

Avatar
Validate 1
Level 1
knstechaspect
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
knstechaspect
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
knstechaspect
Level 1

13-03-2018

Thank you Radha Krishna

Avatar

Avatar
Validate 1
Level 1
knstechaspect
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
knstechaspect
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
knstechaspect
Level 1

13-03-2018

We are using AEM 6.1 and it's happening for all the pages.

Avatar

Avatar
Validate 10
Level 3
Radha_Krishna_N
Level 3

Likes

15 likes

Total Posts

51 posts

Correct reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 3
Radha_Krishna_N
Level 3

Likes

15 likes

Total Posts

51 posts

Correct reply

4 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
Radha_Krishna_N
Level 3

12-03-2018

If you are using HTL, look for the error in apps/ppn/components/page/productpage/body.html where you are trying to include another resource.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

12-03-2018

Using body JSP is no longer recomemend - you should use body,html that uses HTL syntax:

<div data-sly-resource="${'header' @ resourceType='summit_toys/components/structure/header'}"></div>

<div data-sly-resource="${'navigation' @ resourceType='summit_toys/components/structure/navigation'}"></div>

<div data-sly-include="content.html"></div>

<div data-sly-resource="${'footer' @ resourceType='summit_toys/components/structure/footer'}"></div>

<div data-sly-resource="${'copyright' @ resourceType='summit_toys/components/structure/copyright'}"></div>

Try to build your AEM Sites using HTL as much as possible (like We Retail uses) as opposed to using JSP.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

12-03-2018

When building an AEM site-  build it with HTL and include the HTL components - as discussed here: Adobe Experience Manager Help | Creating your First Adobe Experience Manager 6.3 website

When you build a site this way - you will not have issues opening pages. 

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

11-03-2018

Please provide more details.

  • Has this always happened?
  • What AEM version are you using?
  • Does this happen for all pages?