Expand my Community achievements bar.

SOLVED

OSGi CONFIGURATION MISSING

Avatar

Level 2

Hi everyone,

I'm new to AEM, I'm trying to follow this guide  https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-manager/index.html#get...

to be able to use the Redirect Manager. I inserted the file as below:

 

config.png

 

However, when I go to the link displayed on the site, it returns me the following message:

RedirectFilter is disabled and requires an OSGi configuration to start. Please create an OSGi configuration for PID com.adobe.acs.commons.redirects.filter.RedirectFilter.

 

How should it be configured correctly?

Thanks everyone for any help

1 Accepted Solution

Avatar

Correct answer by
Level 4

Redirect Manager is a opt-in feature and requires an OSGi configuration before it gets active. To enable redirects create a configuration for PID com.adobe.acs.commons.redirects.filter.RedirectFilter. This can be done by going to the config Manager and search for ACS Commons Redirect Filter, eg.

 

/apps/my-app/config/com.adobe.acs.commons.redirects.filter.RedirectFilter

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
          jcr:primaryType="sling:OsgiConfig"
          enabled="{Boolean}true"/>

Hope that helps

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

Redirect Manager is a opt-in feature and requires an OSGi configuration before it gets active. To enable redirects create a configuration for PID com.adobe.acs.commons.redirects.filter.RedirectFilter. This can be done by going to the config Manager and search for ACS Commons Redirect Filter, eg.

 

/apps/my-app/config/com.adobe.acs.commons.redirects.filter.RedirectFilter

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
          jcr:primaryType="sling:OsgiConfig"
          enabled="{Boolean}true"/>

Hope that helps