Expand my Community achievements bar.

SOLVED

How to start AEM 5.6 server in Eclipse Luna (Getting ConnectException)?

Avatar

Level 2

Hello all,

I am trying to setup an instance of AEM 5.6 in the servers tab in Eclipse Luna. I have added a new AEM server instance. When I start the server I receive the ConnectException exception[img]1.png[/img]. Can you please help me to understand what is wrong?

Exception:
No repository found at http://localhost:8080/
http://localhost:8080/server/-/jcr:root : java.net.ConnectException: Connection refused: connect
http://localhost:8080/crx/-/jcr:root : java.net.ConnectException: Connection refused: connect
No repository found at http://localhost:8080/
http://localhost:8080/server/-/jcr:root : java.net.ConnectException: Connection refused: connect
http://localhost:8080/crx/-/jcr:root : java.net.ConnectException: Connection refused: connect

[img]1.png[/img]

[img]2.png[/img]

[img]3.png[/img]

[img]4.png[/img]

[img]5.png[/img]

1 Accepted Solution

Avatar

Correct answer by
Level 3

Check if you are able to connect to http://localhost:4502/ in your browser using the same credentials

View solution in original post

4 Replies

Avatar

Level 3

By default AEM listening on port 4502, not 8080 (Server properties -> Connection -> Port)

Avatar

Level 2

Thank you for your assistance Jura.

I have changed the port to 4502, closed Eclipse Luna, reopened Eclipse and attempted to start server. It still throws the same error message shown below. I added screen shots that show my steps taken to setup the AEM server on localhost. Do you have any other suggestions?

Is it a firewall issue?
I am behind a corporate network. I started to wonder if it could be a firewall issue. However, I do not think so but I would like to share with you (just incase it could be). The connection is refused. I am able to run AEM quickstart on port 4502 fine. I can login and administer the Geometrixx application for example. Plus, we typically work in IBM RSA IDE. I can deploy multiple WebSphere servers without port issues.

No repository found at http://localhost:4502/
http://localhost:4502/server/-/jcr:root : java.net.ConnectException: Connection refused: connect
http://localhost:4502/crx/-/jcr:root : java.net.ConnectException: Connection refused: connect
No repository found at http://localhost:4502/
http://localhost:4502/server/-/jcr:root : java.net.ConnectException: Connection refused: connect
http://localhost:4502/crx/-/jcr:root : java.net.ConnectException: Connection refused: connect

Am I missing a step for setting up the server?

  1. I downloaded Eclipse Luna
  2. I installed new software (AEM Dev Tools - http://eclipse.adobe.com/aem/dev-tools/):
    1. AEM
    2. Sling
  3. In Eclipse, on the servers tab, I right clicked to create a new server.
    1. Server Host Name: localhost
    2. Server Name: AEM @ Localhost 2
    3. Server Runtime:

[img]9.png[/img]

[img]10.png[/img]

[img]11.png[/img]

[img]12.png[/img]

Avatar

Correct answer by
Level 3

Check if you are able to connect to http://localhost:4502/ in your browser using the same credentials

Avatar

Level 2

I had chosen not to start the AEM quickstart server because I thought Eclipse would manage server startup / shutdown. Once I started AEM quickstart manually Eclipse was able to connect to the server. Your suggestion gave me enough information to figure this out. I appreciate your help.

Thank you.
Gregg