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

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

  • May 30, 2023
  • 7 replies
  • 27440 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
Level 2
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
Level 2
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
Level 2
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
Level 3
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.


April 8, 2024

Hi there,
That doesn't work for us, like anything else mentioned elsewhere in this forum.
This issue is really frustrating, every time you restart the PC you have to re-install everything, it becomes a bit difficult to do some development on local environments.
Could anyone kindly shed some proper light on the issue?

Here is the console, in attachment the error log
Thanks

Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 16316 MB, meets our expectation of 1024 MB +/- 20
No console, will fork to get enough memory
Preparing to fork JVM, OS name=Windows 11, isWindows=true
Forking JVM: [C:\Program Files\Java\jdk-11\bin\java.exe, -Xmx1024m, -XX:MaxPermSize=256m, -jar, C:/Website Projects/AEMcloud/author/aem-author-p4502.jar, -nofork, -pt, CHILD]
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 1024 MB, meets our expectation of 1024 MB +/- 20
No console, will fork to get enough memory
Not forking JVM as -nofork option is set
Setting properties from filename 'C:/Website Projects/AEMcloud/author/aem-author-p4502.jar'
Option '-quickstart.server.port' set to '4502' from filename aem-author-p4502.jar
Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to C:\Website Projects\AEMcloud\author\crx-quickstart\logs\stdout.log
Redirecting stderr to C:\Website Projects\AEMcloud\author\crx-quickstart\logs\stderr.log
Press CTRL-C to shutdown the Quickstart server...
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.sling.commons.threads.impl.ThreadLocalCleaner (launchpad:resources/install/15/org.apache.sling.commons.threads-3.2.22.jar) to field java.lang.Thread.threadLocals
WARNING: Please consider reporting this to the maintainers of org.apache.sling.commons.threads.impl.ThreadLocalCleaner
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Forked JVM process exited with exit code 1
Main JVM process exiting
MAIN process: shutdown hook
MAIN process: exiting
PS C:\Website Projects\AEMcloud\author>

Level 2
April 24, 2024

This solution worked for me - 
Delete the following files - 

/crx-quickstart/repository/segmentstore/repo.lock
/crx-quickstart/launchpad/felix/cache.lock

And this one folder -
/crx-quickstart/launchpad/config/org/apache/sling/jcr/repoinit


This solution has worked for me. 
Thanks for sharing!

October 4, 2024

Hi Pavan, 

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

Level 1
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.