Issue
After upgrading from CQ5.2.X to CQ5.3 we get 404 Not Found
responses are returned for all pages.
or
After installing our CQ5.2.X application code package to a CQ5.3 instance 404 Not Found
responses are returned for all pages.
Cause
If you have defined a custom OSGi configuration for JcrResourceResolver
in CQ5.2.1 under /apps/<appname>/config/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl
then if you install this same configuration in your 5.3 instance then it will cause all of the pages in the 5.3 instance to return 404 statuses.
Resolution
- Log into
http://<host>:<port>/crxde
as admin user - Browse to
/libs/sling/config/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl
- Copy or correct each of the entries from the
String[]
propertyresource.resolver.searchpath
to the one in your custom configuration under/apps/<appname>/config*/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl
Your final org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl/resource.resolver.searchpath property should have the following values: /apps
,/libs
,/apps/foundation/components/primary
,/libs/foundation/components/primary
Applies to
CQ5.2.X to CQ5.3 Upgrade