Not able to access AEM http://localhost:4502/ getting Error 404 Not Found | Community
Skip to main content
May 30, 2023
Solved

Not able to access AEM http://localhost:4502/ getting Error 404 Not Found

  • May 30, 2023
  • 7 replies
  • 27434 views

I restarted my mac book and started AEM from terminal getting this error after AEM is started 

HTTP ERROR 404 Not Found

URI: /

STATUS:404

MESSAGE:Not FoundSERVLET:org.apache.felix.http.base.internal.dispatch.DispatcherServlet-e31d7b5

 

 

Please help me resolving this issue, it is working fine morning , after my mac restart it I am getting this issue 

 

Best answer by krishna_garikapati

Had same issue and fixed by following the below steps.

Try to access 
http://localhost:4502/libs/granite/core/content/login.html if it works just login and rest should also work.

If not delete below two files.

/author/crx-quickstart/repository/segmentstore/repo.lock

/author/crx-quickstart/launchpad/felix/cache.lock

Once done. Restart the instance and try to access crx/de and package manager
http://localhost:4502/crx/packmgr/index.jsp
http://localhost:4502/crx/de/index.jsp

This would take you to http://localhost:4502/libs/granite/core/content/login.html and let you login to access the instance.


7 replies

Saravanan_Dharmaraj
Community Advisor
Community Advisor
May 30, 2023

@pavan4 AEM also would have stopped. Are you sure the AEM instance is running in the mac? If its not , please restart the AEM

pavan4Author
May 30, 2023

@saravanan_dharmaraj AEM instance is still running in the mac , restart the AEM also didn't fix the issue.

Saravanan_Dharmaraj
Community Advisor
Community Advisor
May 30, 2023

Tail the error.log which is under crx-quickstart/logs/error.log and see what error you are getting when restarting the instance.

Fanindra_Surat
Community Advisor
Community Advisor
May 30, 2023

Hi @pavan4 ,

 

Is that a vanilla instance or the one with some custom code in it. If later, it might have broken as a result of some code or configuration change/installation prior to system restart. Either way, you should find some evidence in the error.log file. Restart the AEM instance, grab the logs from the time of start and can share it here for further debugging.

 

Thanks,

Fani

pavan4Author
May 31, 2023

Hi @fanindra_surat , prior to restart of mac I installed aem-service-pkg-6.5.17.0.zip (Service package )for using AEM Forms adobe-aemfd-osx-pkg-6.0.914.zip in http://localhost:4502/crx/packmgr/index.jsp

 

and after the restart of mac , and starting the AEM instance I am getting

HTTP ERROR 404 Not Found

URI: /

STATUS:404

MESSAGE:Not Found

SERVLET:org.apache.felix.http.base.internal.dispatch.DispatcherServlet-e31d7b5

Please find my tail of error.log file on start of AEM instance 

 

at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1566)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)

at java.base/java.lang.Thread.run(Thread.java:829)

31.05.2023 09:20:13.066 *ERROR* [FelixLogListener] Events.Framework.adobe-lc-forms-xmlform-bmc FrameworkEvent ERROR (org.apache.felix.log.LogException: org.osgi.framework.BundleException: Unable to resolve adobe-lc-forms-xmlform-bmc [672](R 672.0): missing requirement [adobe-lc-forms-xmlform-bmc [672](R 672.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.service.ManagerPackage)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve adobe-aemds-core-bmc [598](R 598.0): missing requirement [adobe-aemds-core-bmc [598](R 598.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.aemds.connector.repository)(version>=1.9.0)(!(version>=2.0.0))) [caused by: Unable to resolve adobe-aemds-core-common [601](R 601.0): missing requirement [adobe-aemds-core-common [601](R 601.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.idp)(version>=10.0.0)(!(version>=11.0.0)))]] Unresolved requirements: [[adobe-lc-forms-xmlform-bmc [672](R 672.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.service.ManagerPackage)(version>=1.0.0)(!(version>=2.0.0)))])

org.apache.felix.log.LogException: org.osgi.framework.BundleException: Unable to resolve adobe-lc-forms-xmlform-bmc [672](R 672.0): missing requirement [adobe-lc-forms-xmlform-bmc [672](R 672.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.service.ManagerPackage)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve adobe-aemds-core-bmc [598](R 598.0): missing requirement [adobe-aemds-core-bmc [598](R 598.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.aemds.connector.repository)(version>=1.9.0)(!(version>=2.0.0))) [caused by: Unable to resolve adobe-aemds-core-common [601](R 601.0): missing requirement [adobe-aemds-core-common [601](R 601.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.idp)(version>=10.0.0)(!(version>=11.0.0)))]] Unresolved requirements: [[adobe-lc-forms-xmlform-bmc [672](R 672.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.service.ManagerPackage)(version>=1.0.0)(!(version>=2.0.0)))]

at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)

at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1566)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)

at java.base/java.lang.Thread.run(Thread.java:829)

31.05.2023 09:20:13.066 *INFO* [FelixLogListener] Events.Bundle.com.adobe.forms.common.adobe-xfaforms-common BundleEvent RESOLVED

31.05.2023 09:20:13.099 *INFO* [FelixLogListener] Events.Bundle.com.adobe.forms.common.adobe-xfaforms-common BundleEvent STARTED

31.05.2023 09:20:13.099 *INFO* [FelixLogListener] Events.Bundle.com.adobe.livecycle.scala-lang BundleEvent RESOLVED

31.05.2023 09:20:13.103 *INFO* [FelixLogListener] Events.Bundle.com.adobe.livecycle.scala-lang BundleEvent STARTED

31.05.2023 09:20:13.103 *INFO* [FelixLogListener] Events.Bundle.org.apache.sling.startupfilter.disabler BundleEvent RESOLVED

31.05.2023 09:20:13.134 *INFO* [FelixLogListener] Events.Bundle.org.apache.sling.startupfilter.disabler BundleEvent STARTED

31.05.2023 09:20:13.134 *INFO* [FelixLogListener] Events.Bundle.org.apache.felix.framework BundleEvent STARTED

31.05.2023 09:20:13.167 *INFO* [FelixLogListener] Events.Framework.org.apache.felix.framework FrameworkEvent STARTED

31.05.2023 09:20:13.169 *INFO* [FelixLogListener] Events.Service.org.apache.felix.framework Service [org.apache.sling.feature.apiregions.impl,3419, [org.osgi.service.cm.ManagedService]] ServiceEvent REGISTERED

31.05.2023 09:20:13.171 *INFO* [FelixLogListener] Events.Service.org.apache.felix.framework Service [Apache Sling Startup Service,3420, [org.apache.sling.launchpad.api.StartupService]] ServiceEvent REGISTERED

31.05.2023 09:20:13.177 *INFO* [FelixLogListener] Events.Service.com.adobe.granite.startup Service [55, [org.osgi.service.event.EventHandler]] ServiceEvent UNREGISTERING

31.05.2023 09:21:01.932 *WARN* [sling-default-3-health-com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck] com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck Could not retrieve QueryEngineSettings MBean.

31.05.2023 09:21:01.933 *INFO* [sling-default-6-health-com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck] com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck Could not retrieve QueryStats MBean.

31.05.2023 09:22:01.933 *WARN* [sling-default-1-health-com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck] com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck Could not retrieve QueryEngineSettings MBean.

31.05.2023 09:22:01.933 *INFO* [sling-default-9-health-com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck] com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck Could not retrieve QueryStats MBean.

31.05.2023 09:23:01.935 *WARN* [sling-default-4-health-com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck] com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck Could not retrieve QueryEngineSettings MBean.

31.05.2023 09:23:01.935 *INFO* [sling-default-9-health-com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck] com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck Could not retrieve QueryStats MBean.

31.05.2023 09:24:01.934 *INFO* [sling-default-5-health-com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck] com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck Could not retrieve QueryStats MBean.

31.05.2023 09:24:01.934 *WARN* [sling-default-3-health-com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck] com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck Could not retrieve QueryEngineSettings MBean.

 



DPrakashRaj
Community Advisor
Community Advisor
May 31, 2023

Check error.log what’s showing there. Meanwhile you can check for other urls like http://localhost:4502/crx/de.

if it still shows 404 then your instance might be corrupted or you might have different have version.

Check all those things and if it still doesn’t start then try stop and start the aem and if all doesn’t work then you need to setup it again

pavan4Author
May 31, 2023

Hi @dprakashraj ,

 

this is been shown on opening of http://localhost:4502/crx/de.
Please find my error.log tail after restarting the AEM instanse 

at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1566)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)

at java.base/java.lang.Thread.run(Thread.java:829)

31.05.2023 09:20:13.066 *ERROR* [FelixLogListener] Events.Framework.adobe-lc-forms-xmlform-bmc FrameworkEvent ERROR (org.apache.felix.log.LogException: org.osgi.framework.BundleException: Unable to resolve adobe-lc-forms-xmlform-bmc [672](R 672.0): missing requirement [adobe-lc-forms-xmlform-bmc [672](R 672.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.service.ManagerPackage)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve adobe-aemds-core-bmc [598](R 598.0): missing requirement [adobe-aemds-core-bmc [598](R 598.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.aemds.connector.repository)(version>=1.9.0)(!(version>=2.0.0))) [caused by: Unable to resolve adobe-aemds-core-common [601](R 601.0): missing requirement [adobe-aemds-core-common [601](R 601.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.idp)(version>=10.0.0)(!(version>=11.0.0)))]] Unresolved requirements: [[adobe-lc-forms-xmlform-bmc [672](R 672.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.service.ManagerPackage)(version>=1.0.0)(!(version>=2.0.0)))])

org.apache.felix.log.LogException: org.osgi.framework.BundleException: Unable to resolve adobe-lc-forms-xmlform-bmc [672](R 672.0): missing requirement [adobe-lc-forms-xmlform-bmc [672](R 672.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.service.ManagerPackage)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve adobe-aemds-core-bmc [598](R 598.0): missing requirement [adobe-aemds-core-bmc [598](R 598.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.aemds.connector.repository)(version>=1.9.0)(!(version>=2.0.0))) [caused by: Unable to resolve adobe-aemds-core-common [601](R 601.0): missing requirement [adobe-aemds-core-common [601](R 601.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.idp)(version>=10.0.0)(!(version>=11.0.0)))]] Unresolved requirements: [[adobe-lc-forms-xmlform-bmc [672](R 672.0)] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.service.ManagerPackage)(version>=1.0.0)(!(version>=2.0.0)))]

at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)

at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)

at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1566)

at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)

at java.base/java.lang.Thread.run(Thread.java:829)

31.05.2023 09:20:13.066 *INFO* [FelixLogListener] Events.Bundle.com.adobe.forms.common.adobe-xfaforms-common BundleEvent RESOLVED

31.05.2023 09:20:13.099 *INFO* [FelixLogListener] Events.Bundle.com.adobe.forms.common.adobe-xfaforms-common BundleEvent STARTED

31.05.2023 09:20:13.099 *INFO* [FelixLogListener] Events.Bundle.com.adobe.livecycle.scala-lang BundleEvent RESOLVED

31.05.2023 09:20:13.103 *INFO* [FelixLogListener] Events.Bundle.com.adobe.livecycle.scala-lang BundleEvent STARTED

31.05.2023 09:20:13.103 *INFO* [FelixLogListener] Events.Bundle.org.apache.sling.startupfilter.disabler BundleEvent RESOLVED

31.05.2023 09:20:13.134 *INFO* [FelixLogListener] Events.Bundle.org.apache.sling.startupfilter.disabler BundleEvent STARTED

31.05.2023 09:20:13.134 *INFO* [FelixLogListener] Events.Bundle.org.apache.felix.framework BundleEvent STARTED

31.05.2023 09:20:13.167 *INFO* [FelixLogListener] Events.Framework.org.apache.felix.framework FrameworkEvent STARTED

31.05.2023 09:20:13.169 *INFO* [FelixLogListener] Events.Service.org.apache.felix.framework Service [org.apache.sling.feature.apiregions.impl,3419, [org.osgi.service.cm.ManagedService]] ServiceEvent REGISTERED

31.05.2023 09:20:13.171 *INFO* [FelixLogListener] Events.Service.org.apache.felix.framework Service [Apache Sling Startup Service,3420, [org.apache.sling.launchpad.api.StartupService]] ServiceEvent REGISTERED

31.05.2023 09:20:13.177 *INFO* [FelixLogListener] Events.Service.com.adobe.granite.startup Service [55, [org.osgi.service.event.EventHandler]] ServiceEvent UNREGISTERING

31.05.2023 09:21:01.932 *WARN* [sling-default-3-health-com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck] com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck Could not retrieve QueryEngineSettings MBean.

31.05.2023 09:21:01.933 *INFO* [sling-default-6-health-com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck] com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck Could not retrieve QueryStats MBean.

31.05.2023 09:22:01.933 *WARN* [sling-default-1-health-com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck] com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck Could not retrieve QueryEngineSettings MBean.

31.05.2023 09:22:01.933 *INFO* [sling-default-9-health-com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck] com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck Could not retrieve QueryStats MBean.

31.05.2023 09:23:01.935 *WARN* [sling-default-4-health-com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck] com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck Could not retrieve QueryEngineSettings MBean.

31.05.2023 09:23:01.935 *INFO* [sling-default-9-health-com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck] com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck Could not retrieve QueryStats MBean.

31.05.2023 09:24:01.934 *INFO* [sling-default-5-health-com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck] com.adobe.granite.queries.impl.hc.QueriesStatusHealthCheck Could not retrieve QueryStats MBean.

31.05.2023 09:24:01.934 *WARN* [sling-default-3-health-com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck] com.adobe.granite.queries.impl.hc.QueryLimitsHealthCheck Could not retrieve QueryEngineSettings MBean.

SivakumarKanoori
Community Advisor
Community Advisor
May 31, 2023

@pavan4 : Try to access localhost:4502/system/admin. if yes check all the bundles status.

 

Can try to run the following curl command to connect .

 

curl -u admin:admin http://localhost:4502/crx/de/index.jsp

 

you can uninstall the package using below query 

 

curl -u <user>:<password> -F cmd=uninstall http://localhost:4502/crx/packmgr/service/.json/etc/packages/my_packages/test.zip

 

as you said , it was working prior installing the forms package, try to uninstall and the same package and check once.

Thanks,Siva
November 14, 2023

Did you manage to sort this out?

This also happens to me every time i restart my mac, then i need to install everything again, its crazy and it makes no sense.

Adobe Employee
November 29, 2023

Any resolution found. same happens to me

 

krishna_garikapati
krishna_garikapatiAccepted solution
January 17, 2024

Had same issue and fixed by following the below steps.

Try to access 
http://localhost:4502/libs/granite/core/content/login.html if it works just login and rest should also work.

If not delete below two files.

/author/crx-quickstart/repository/segmentstore/repo.lock

/author/crx-quickstart/launchpad/felix/cache.lock

Once done. Restart the instance and try to access crx/de and package manager
http://localhost:4502/crx/packmgr/index.jsp
http://localhost:4502/crx/de/index.jsp

This would take you to http://localhost:4502/libs/granite/core/content/login.html and let you login to access the instance.


February 21, 2024

thanks for sharing this solution, it worked for me as well.

October 4, 2024

Hi Pavan, 

I hope you renamed your executable jar file as aem-author-p4502 without explicitly adding .jar at the end.

April 15, 2025
  • Stop your AEM instance.
  • Navigate to local file system.
  • Delete file /author/crx-quickstart/repository/segmentstore/repo.lock.
    Note:- Usually this solves the issue.
  • If deleting repo.lock file along doesn’t fix the issue. Delete /author/crx-quickstart/launchpad/felix/cache.lock file as well.
  • Once done, start the AEM instance and try accessing crx/de http://localhost:4502/crx/de/index.jsp or AEM login page http://localhost:4502/libs/granite/core/content/login.html.
  • [Optional] If the issue is not resolved by above two steps, then In few instance repoinit file or Index file is the culprit along with the lock. Delete /crx-quickstart/launchpad/config/org/apache/sling/jcr/repoinit and delete index folder available at /crx-quickstart/repository/index also and then try restarting AEM instance.