AEM 6.3 server deployment connection refused

Avatar

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
CT1012
Level 2

06-09-2017

The new maven project is pointing to localhost and throwing the below connection refused error when tried to deploy on dev server. We are using Archetype 11.

08:28:28,157 INFO - Installing XXXX.ui.apps (D:\workspacePolCIB\root\Maven\Builds\AdobeCMS\Promotions\Publish_To_Author_Instance\ui.apps\target\XXXX.ui.apps-0.0.1-SNAPSHOT.zip) to http://localhost:4502/crx/packmgr/service.jsp

08:28:29,277 INFO - I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect

08:28:29,278 INFO - java.net.ConnectException: Connection refused: connect

08:28:29,278 INFO -     at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

06-09-2017

If you use the parameters on the maven commandline, they are just valid during this call; it's not a persistent call. If you are using this POM only to deploy to this instance, it might be easier to adapt the pom.xml file.

Jörg

Answers (8)

Answers (8)

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

06-09-2017

You can also override the properties from the maven command line:

$ mvn clean install -Daem.host=dev.server -Daem.port=6302

(if your dev server has the hostname "dev.server" and AEM runs on port 6302).

Jörg

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

06-09-2017

By default the autoInstall will point to localhost if you are working on your local machine . You have to modify the pom to point it to the DEV servers.

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

484 likes

Total Posts

1,048 posts

Correct reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

06-09-2017

Was this working before ? What I see from your error logs seems like you are trying to install to your localhost:4502 and it is not up and running and throwing a connection refused.

08:28:28,157 INFO - Installing XXXX.ui.apps (D:\workspacePolCIB\root\Maven\Builds\AdobeCMS\Promotions\Publish_To_Author_Instance\ui.a pps\target\XXXX.ui.apps-0.0.1-SNAPSHOT.zip) to http://localhost:4502/crx/packmgr/service.jsp

08:28:29,277 INFO - I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect

08:28:29,278 INFO - java.net.ConnectException: Connection refused: connect

08:28:29,278 INFO -    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)

Are you sure your autoInstallPackage profile is pointing to the correct server.     

How to Build AEM Projects using Apache Maven - docs.adobe.com

1293750_pastedImage_3.png

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

06-09-2017

Does 10 work for you?

I am going to try 11 today and see if it works for me.

Avatar

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
CT1012
Level 2

06-09-2017

Sure, Thank you

Avatar

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
CT1012
Level 2

06-09-2017

Is it a permanent change, or change during deployment ?  Should i override the properties before deploying?

Avatar

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
CT1012
Level 2

06-09-2017

Is it necessary to add profiles for ui-apps pom.xml?

Avatar

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 2
CT1012
Level 2

Likes

7 likes

Total Posts

67 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
CT1012
Level 2

06-09-2017

Haven't worked on 10.