Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

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

Avatar

Level 1

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6.5
1 Accepted Solution

Avatar

Correct answer by
Administrator

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



Kautuk Sahni

View solution in original post

9 Replies

Avatar

Level 1
@Rohit_Utreja Yes already tried this fix too yet no luck. You can refer to my reply or my updated post for more context. Thanks btw!

Avatar

Community Advisor

@jkiel1091,

 

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

Avatar

Level 1

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

Level 1
Further info updated in my replies

Avatar

Correct answer by
Administrator

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



Kautuk Sahni

Avatar

Level 1
Ok just registered the creds. BTW my feedback on this issue is this wasn't part in the tutorial so it was a an obscure process to diagnose. Overall thanks for this!

Avatar

Level 2

This can be due to if you are using different passwords for AEM author instance 
You need to change your pom.xml file and replace the default password with your password that you are using for the Author instance

 

    <properties>
        <aem.host>localhost</aem.host>
        <aem.port>4502</aem.port>
        <aem.publish.host>localhost</aem.publish.host>
        <aem.publish.port>4503</aem.publish.port>
        <sling.user>admin</sling.user>
        <sling.password>your_password</sling.password>
        <vault.user>admin</vault.user>
        <vault.password>your_password</vault.password>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>