Skip to main content
selvaganesh
Level 5
Jan 13, 2016 9:49 PM UTC
Solved

Resource resolver

I added an entry in resource resolver factory and saved it. If i access any page based on new rule i am getting below error

Caused by: org.apache.sling.scripting.sightly.SightlyException: Cannot find class apps.sling.servlet.errorhandler.ResponseStatus.
    at org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerService.getInstance(SightlyJavaCompilerService.java:126)
    at org.apache.sling.scripting.sightly.impl.engine.extension.use.JavaUseProvider.getPOJOFromRepository(JavaUseProvider.java:125)
    at org.apache.sling.scripting.sightly.impl.engine.extension.use.JavaUseProvider.provide(JavaUseProvider.java:112)
    at org.apache.sling.scripting.sightly.impl.engine.extension.use.UseRuntimeExtension.call(UseRuntimeExtension.java:87)
    ... 158 common frames omitted

 

In browser

Internal error (no Exception to report)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Jan 14, 2016 8:24 PM UTC

Hi,

ok, so you do these activities:

  1. create a mapping from /content/support to / (using the resource resolver configuration in the webconsole)
  2. now you create a /content/my/support/consumer/home, which you can access via /support/home.html
  3. Now you add a component to this page using the editmode; it it isn't placed in /content/my/support/consumer/home/jcr:content/mycomponent, but rather in /consumer/home/jcr:content/mycomponent.

Is this correct?

(Why do you create a mapping on an authoring environment?)

kind regards,
Jörg

4 replies

smacdonald2008
Level 10
Jan 13, 2016 11:02 PM UTC

Please post the code you are using so the community can view it. This will help community members providing help.   

Translate
joerghoh
Adobe Employee
Adobe Employee
Jan 14, 2016 8:10 PM UTC

Hi

can you be more specific, what entry you have added to the (OSGI config?) of the resource resolver factory?

kind regards,
Jörg

Translate
selvaganesh
Level 5
Jan 14, 2016 8:18 PM UTC

Hi

Adding some components to page crashes the page. It creates a node in resource resolver mapping path. After deleting the node it works fine

For example if i create a mapping  /content/my/support:/

Creating a page under /content/my/support/consumer/home will work fine. Adding a buggy component creates a node /consumer/home in root path of crx. After deleting it works fine

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Jan 14, 2016 8:24 PM UTC

Hi,

ok, so you do these activities:

  1. create a mapping from /content/support to / (using the resource resolver configuration in the webconsole)
  2. now you create a /content/my/support/consumer/home, which you can access via /support/home.html
  3. Now you add a component to this page using the editmode; it it isn't placed in /content/my/support/consumer/home/jcr:content/mycomponent, but rather in /consumer/home/jcr:content/mycomponent.

Is this correct?

(Why do you create a mapping on an authoring environment?)

kind regards,
Jörg

Translate