Meera
Meera

Reputation: 31

AEM - I/O Exception Connection refused

I am new to AEM. I created sample project using maven.I have followed the below site for reference. http://www.aemcq5tutorials.com/tutorials/adobe-aem-cq5-tutorials/create-aem-multi-module-project/ But I am getting the below Error.

       [INFO] --- content-package-maven-plugin:0.5.1:install (install-custom-package) @ aemtuto.ui.apps ---
     [INFO] Installing aemtuto.ui.apps (D:\eclipse-new\aemtuto\ui.apps\target\aemtuto.ui.apps-0.0.1-SNAPSHOT.zip) to http://localhost:4502/crx/packmgr/service.jsp
     [INFO] I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
     [INFO] Retrying request
     [INFO] I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
     [INFO] Retrying request
     [INFO] I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
     [INFO] Retrying request
     [INFO] ------------------------------------------------------------------------
     [INFO] Reactor Summary:
     [INFO] 
     [INFO] aemtuto ............................................ SUCCESS [  0.624 s]
     [INFO] aemtuto - Core ..................................... SUCCESS [  3.889 s]
     [INFO] aemtuto - UI apps .................................. FAILURE [  6.254 s]
     [INFO] aemtuto - UI content ............................... SKIPPED
     [INFO] aemtuto - Integration Tests Bundles ................ SKIPPED
     [INFO] aemtuto - Integration Tests Launcher ............... SKIPPED
     [INFO] ------------------------------------------------------------------------
     [INFO] BUILD FAILURE
     [INFO] ------------------------------------------------------------------------
     [INFO] Total time: 13.524 s
     [INFO] Finished at: 2018-07-11T18:27:30+05:30
     [INFO] Final Memory: 41M/526M
     [INFO] ------------------------------------------------------------------------
     [ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.5.1:install (install-custom-package) on project aemtuto.ui.apps: Connection refused: connect -> [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.

Upvotes: 0

Views: 2539

Answers (2)

Yanting Ke
Yanting Ke

Reputation: 1

The comments under the question helped me a lot. You should:

  1. Have an AEM instance setup on localhost:4502

  2. Turn on the server

  3. Execute mvn -PautoInstallPackage install in a Terminal

Doing this I managed to upload my project into the server successfully!

Upvotes: 0

user5233919
user5233919

Reputation:

The error

Connection refused

It comes when we run the command mvn clean install -PautoInstallPackage and your instance is not running.

Also, if you have mentioned some different port in pom.xml & AEM instance with some different port is running.

Upvotes: 1

Related Questions