Expand my Community achievements bar.

SOLVED

Unable to start AEM instance

Avatar

Level 3

When trying to open my AEM instance I get the following URL response:

http://localhost:4502/libs/granite/core/content/login.html?resource=%2Fcrx%2Fde%2Findex.jsp&$$login$...

When trying to build and deploy my maven project I get an internal server error on http://localhost:4502/crx/packmgr/service.jsp when trying to install the package.

My error log throws the following errors:

25.10.2018 11:52:33.607 *ERROR* [127.0.0.1 [1540504353564] POST /crx/packmgr/service.jsp HTTP/1.1] org.apache.jackrabbit.oak.spi.security.authentication.external.impl.ExternalLoginModule No IDP found with name 0654f74c177ec80b60f7922a9a6195cf. Will not be used for login.

25.10.2018 11:52:33.607 *ERROR* [127.0.0.1 [1540504353564] POST /crx/packmgr/service.jsp HTTP/1.1] org.apache.jackrabbit.oak.spi.security.authentication.external.impl.ExternalLoginModule No IDP found with name a9dea3b044e912071cbffd4839016d2e. Will not be used for login.

25.10.2018 12:00:30.005 *INFO* [sling-default-2-Registered Service.1079] com.adobe.granite.taskmanagement.impl.jcr.TaskArchiveService archiving tasks at: 'Thu Oct 25 12:00:30 HST 2018'

25.10.2018 12:00:58.610 *ERROR* [127.0.0.1 [1540504858546] POST /crx/packmgr/service.jsp HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException

java.io.IOException: Unable to get component of class 'interface org.apache.sling.rewriter.Generator' with type 'htmlparser'.

Please help!

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

That's the problem:

> 25.10.2018 12:00:58.610 *ERROR* [127.0.0.1 [1540504858546] POST /crx/packmgr/service.jsp HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException

java.io.IOException: Unable to get component of class 'interface org.apache.sling.rewriter.Generator' with type 'htmlparser'.

You have configured a custom rewriter with the property "generatorType=htmlparser". During load this class is not available. Please check the OSGI console if all bundles are active.

(You can still try to access your instance using the CRX Explorer :$ HOST/crx/explorer/index.jsp)

View solution in original post

4 Replies

Avatar

Community Advisor

Hi,

Can you try to login in AEM then do maven deploy. Make sure you define same credentials in pom.xml which have access to login in AEM.



Arun Patidar

Avatar

Level 3

I wish I could. That’s the problem, I can’t even get to the login page because it throws a 500 error.

Avatar

Administrator

Did you check this:-cq5 - AEM Error with ExternalLoginModule - Stack Overflow

Or it could be that The LDAPIdentityProvider and ExternalLoginModule configurations haven't been linked properly using the "LDAP Provider Name".

To solve this issue, we need to update the ExternalLoginModuleFactory configuration so it is linked with the LDAPIdentityProvider by the "LDAP Provider Name" value:

1. Go to http://aem-host:port/system/console/configMgr and log in as admin

2. Search for "LdapIdentityProvider" and click on it to open the configuration

3. Note the value in the field "LDAP Provider Name"

4. Search for "ExternalLoginModuleFactory"

5. Make sure the value for "Identity Provider Name" matches the value from step 3.  If it doesn't match then replace the value of "Identity Provider Name" with the value noted in step 3.

6. Save



Kautuk Sahni

Avatar

Correct answer by
Employee Advisor

That's the problem:

> 25.10.2018 12:00:58.610 *ERROR* [127.0.0.1 [1540504858546] POST /crx/packmgr/service.jsp HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException

java.io.IOException: Unable to get component of class 'interface org.apache.sling.rewriter.Generator' with type 'htmlparser'.

You have configured a custom rewriter with the property "generatorType=htmlparser". During load this class is not available. Please check the OSGI console if all bundles are active.

(You can still try to access your instance using the CRX Explorer :$ HOST/crx/explorer/index.jsp)