I/O exception (java.net.ConnectException) caught when processing request: Connection refused: | Community
Skip to main content
RamMeeran728687
July 11, 2018
Solved

I/O exception (java.net.ConnectException) caught when processing request: Connection refused:

  • July 11, 2018
  • 7 replies
  • 12250 views

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.

      
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

"connection refused" always means that the endpoint you are trying to reach is not there. Or to be more precise: The port you are trying to reach is not open (or blocked by a firewall).

In your specific case I would just assume that your AEM instance is not started. Or you defined the wrong port.

Jörg

7 replies

arunpatidar
Community Advisor
Community Advisor
July 11, 2018

Hi,

Check your AEM instance? is it started or not.

Check credentials in POM file.

Thanks
Arun

Arun Patidar
smacdonald2008
Level 10
July 11, 2018

To make it very clear how to successfully build the project (and show the the article works) - see:

RamMeeran728687
July 12, 2018

Thank you all.

My understanding may be wrong. Please correct me.

1. I have installed Eclipse luna ,java 8, Apache maven 3.5.2.

2. After then  installed AEM Developer tool in eclipse market place.

3.Copy the settings.xml from maven config to inside the m2 folder.

3. Created the AEM sample multi module project.

4. build the project "mvn clean install -P aemtuto-author"

5. Now I am getting "build success" after comment the "autoInstallPackagePublish" profile from pom.xml.

Please guide me how to start the AEM instance .

arunpatidar
Community Advisor
Community Advisor
July 12, 2018

Hi,

Your AEM instance should be started before deploying the packages from eclipse.

You can start AEM manually or from command line.

Command Line Start and Stop

Thanks

Arun

Arun Patidar
smacdonald2008
Level 10
July 13, 2018

FOr now - do not worry about using Elicpse and the dev tool. Can you build a project using Maven and the Command Line - as I showed in the above video. I have shown step by step in video how to successfully get a project built and deployed. 

Your issue is either:

1 - with the Eclipse DEV TOOL

2 - something wrong with AEM instance.

If you can build using the way I showed in the video above - use the command line - then we know its not 2.

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
July 13, 2018

"connection refused" always means that the endpoint you are trying to reach is not there. Or to be more precise: The port you are trying to reach is not open (or blocked by a firewall).

In your specific case I would just assume that your AEM instance is not started. Or you defined the wrong port.

Jörg