Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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

 

pavan4_0-1685469010638.png

 

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

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

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.


View solution in original post

27 Replies

Avatar

Correct answer by
Level 4

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.


Avatar

Level 1

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>

Avatar

Level 1

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

Avatar

Level 1

Thanks for your reply.
At the moment we are being really careful to always close the Quickstart from the command prompt we launched it from.
We'll try what you are suggesting next time we forget to close it.