AEM jar 6.5: [ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized

Avatar

Avatar

jkiel1091

Avatar

jkiel1091

jkiel1091

06-04-2021

Hello, I have been trying to setup an AEM project from the WKND tutorial:
https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-devel...

 

I've also followed the steps in the link below to setup the server instances especially author running:

https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/development/set-up-a-loc...

 

Everything got going with build success until I got stuck when it came to Step 3 of Project deployment with this command:

 

 

$ mvn clean install -PautoInstallSinglePackage

 

 

 

Here is the error log

 

 

[INFO] 
[INFO] --- content-package-maven-plugin:1.0.2:install (install-package) @ aem-guides-wknd.all ---
[INFO] Installing aem-guides-wknd.all (/Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip) to http://localhost:4502/crx/packmgr/service.jsp
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] Looks like the /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package was not installed, checking the list...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package not installed, re-uploading it...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] Looks like the /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package was not installed, checking the list...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package not installed, re-uploading it...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] Looks like the /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package was not installed, checking the list...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package not installed, re-uploading it...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] Looks like the /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package was not installed, checking the list...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package not installed, re-uploading it...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] Looks like the /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package was not installed, checking the list...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package not installed, re-uploading it...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] Looks like the /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package was not installed, checking the list...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package not installed, re-uploading it...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] Looks like the /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package was not installed, checking the list...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package not installed, re-uploading it...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] Looks like the /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package was not installed, checking the list...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package not installed, re-uploading it...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] Looks like the /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package was not installed, checking the list...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package not installed, re-uploading it...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] Looks like the /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package was not installed, checking the list...
[INFO] basic authentication scheme selected
[INFO] Failure authenticating with BASIC 'Sling (Development)'@localhost:4502
[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
[INFO] /Users/mmi/Documents/Projects/AEM/Sample project/aem-guides-wknd/all/target/aem-guides-wknd.all-0.0.1-SNAPSHOT.zip package not installed, re-uploading it...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for aem-guides-wknd 0.0.1-SNAPSHOT:
[INFO] 
[INFO] aem-guides-wknd .................................... SUCCESS [  0.444 s]
[INFO] WKND Sites Project - Core .......................... SUCCESS [ 12.132 s]
[INFO] WKND Sites Project - UI Frontend ................... SUCCESS [ 26.288 s]
[INFO] WKND Sites Project - Repository Structure Package .. SUCCESS [  1.077 s]
[INFO] WKND Sites Project - UI apps ....................... SUCCESS [  7.259 s]
[INFO] WKND Sites Project - UI content .................... SUCCESS [  5.626 s]
[INFO] WKND Sites Project - UI config ..................... SUCCESS [  0.202 s]
[INFO] WKND Sites Project - All ........................... FAILURE [ 30.765 s]
[INFO] WKND Sites Project - Integration Tests ............. SKIPPED
[INFO] WKND Sites Project - Dispatcher .................... SKIPPED
[INFO] WKND Sites Project - UI Tests ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:26 min
[INFO] Finished at: 2021-04-06T16:58:29+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:1.0.2:install (install-package) on project aem-guides-wknd.all: Error while installing package. Check log for details. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :aem-guides-wknd.all​

 

 

I'm using a Mac system (Big Sur v11.2.3) and already tried first with Windows but also the same.
Have also researched this issue with fixes from similar forums here (including adding <useProxy> tag to pom.xml) yet no luck 😞
Here are other details of the software requirements I'm using:
Java v1.8.0_281
Maven v3.6.3
AEM Quickstart JAR v6.5 
 
UPDATE:

BTW when the author instance runs or when I visit http://localhost:4502/crx/packmgr/service.jsp, it redirects here with a register form.

Do I have to fill this up since my company hasn't provided a license key to me yet?

Screen Shot 2021-04-06 at 6.05.45 PM.png

AEM 6.5 build build failure wknd

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K
kautuk_sahni
Community Manager

06-04-2021

You need a license file for the AEM to be registered otherwise it won't work. 

Answers (3)

Answers (3)

Avatar

Avatar

Anudeep_Garnepudi

MVP

Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
MVP

06-04-2021

Avatar

Avatar

jkiel1091

Avatar

jkiel1091

jkiel1091

06-04-2021

BTW when the author instance runs or when I visit http://localhost:4502/crx/packmgr/service.jsp, it redirects here with a register form.

Do I have to fill this up since my company hasn't provided a license key to me yet?

Screen Shot 2021-04-06 at 6.05.45 PM.png

Avatar

Avatar

Rohit_Utreja

Avatar

Rohit_Utreja

Rohit_Utreja

06-04-2021