Starting a server in debug mode from eclipse

Avatar

Avatar

jorgefdez205

Avatar

jorgefdez205

jorgefdez205

02-08-2016

Hi

I just created a new project using Eclipse Mars and the archetype 10 in order to deploy it to AEM 6.2 instance.

I'm using the "AEM Developer Tools for Eclipse"  and until 6.1 everything was great, but once I tried (with 6.2) to add a new server in eclipse and start it in debug mode I had this:

org.apache.commons.httpclient.HttpException: Got status code 404 for call to http://localhost:4502/system/sling/tooling/sourceReferences.json
org.apache.commons.httpclient.HttpException: Got status code 404 for call to http://localhost:4502/system/sling/tooling/sourceReferences.json

I can start the server using "Start" mode and deploy all the project (default project in a clean instance) but I can not even start the server in debug mode ....

Can someone Help me on this???

 

Thanks!!

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

02-08-2016

There may be a bug with 6.2. If you have it working on 6.1, then it should work the same.  

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

02-08-2016

I am checking with some users that i know that use the plug-in. I personally prefer Maven and Command line to compile projects

Avatar

Avatar

bsloki

MVP

Avatar

bsloki

MVP

bsloki
MVP

02-08-2016

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.7K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.7K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

03-08-2016

Hi 

I would ask you to please verify the PORT and Debug PORT.

Make sure that AEM running in debug mode before you connect with eclipse and has the same debug port configured.

Also try the link provided by Lokesh :- http://stackoverflow.com/questions/38388879/setup-aem-in-eclipse-and-create-a-project

I hope this would help you.

 

~kautuk

Avatar

Avatar

vyan024

Avatar

vyan024

vyan024

10-08-2016

Any luck? I am facing the same issue on 6.2

Avatar

Avatar

zapts

Avatar

zapts

zapts

15-08-2016

I'm having virtually the same problem with Eclipse Neon and AEM 6.2.  Getting 500 error trying to access sourceReferences.json when starting AEM (via Eclipse) in Debug mode.

 

- Jason

Avatar

Avatar

vaibhavs7024655

Avatar

vaibhavs7024655

vaibhavs7024655

15-07-2017

- Double click the server instance in eclipse

- Expand the Debug section

- Uncheck the option Resolve sources when connecting

​- Save and restart the Server and it should work

Avatar

Avatar

rajnishkaushik

Avatar

rajnishkaushik

rajnishkaushik

02-08-2017

This works with AEM 6.3 as well. Unchecking the "Resolve sources..." Fixes the issue as Vaibhav suggested. Thanks

Avatar

Avatar

jainj31253984

Avatar

jainj31253984

jainj31253984

25-09-2017

Uncheck the option Resolve sources when connecting - this step did the magic. Thanks Vaibhav