Expand my Community achievements bar.

SOLVED

Not able to connect to AEM from project created by using Eclipse Plugin

Avatar

Level 9

Hello All,

I have created a project of type "AEM Sample Multi-Module Project" using Eclipse ,project is created but i am not able to connect to my local AEM instance.

Help me in configuring AEM project and please see attached screenshot for error details.

Thanks,

Kishore

1 Accepted Solution

Avatar

Correct answer by
Level 2

Luna 4.4.2 is fine, so now question is, did you install the AEM plugin from Eclipse market place.
If yes, then it downloads the plugin from some place where the buggy plugin is available.

Follow the below steps.

1. GO to eclipse market place, un-install AEM plugin.

2.restart eclipse

3. go to  help > install new software 
in eclipse and provide 
http://eclipse.adobe.com/aem/dev-tools/  to install aem Plugin.

4. While creating new project, provide port and server name correctly and the AEM server should be up and running.

View solution in original post

16 Replies

Avatar

Level 2

I faced this issue in eclipse Version: Luna Service Release 1 (4.4.1)  some time back.

The issue was, I have installed the AEM multi-module plugin from eclipse market place. So I uninstalled the plugin and installed this through help > install new software from below URL.

http://eclipse.adobe.com/aem/dev-tools/ 

Try this,, may work out for you.

Avatar

Level 9

Satya_adobe wrote...

I faced this issue in eclipse Version: Luna Service Release 1 (4.4.1)  some time back.

The issue was, I have installed the AEM multi-module plugin from eclipse market place. So I uninstalled the plugin and installed this through help > install new software from below URL.

http://eclipse.adobe.com/aem/dev-tools/ 

Try this,, may work out for you.

 

 

Currently i have installed Eclipse Luna 4.4.2 and to make it work which version i have to install

Avatar

Correct answer by
Level 2

Luna 4.4.2 is fine, so now question is, did you install the AEM plugin from Eclipse market place.
If yes, then it downloads the plugin from some place where the buggy plugin is available.

Follow the below steps.

1. GO to eclipse market place, un-install AEM plugin.

2.restart eclipse

3. go to  help > install new software 
in eclipse and provide 
http://eclipse.adobe.com/aem/dev-tools/  to install aem Plugin.

4. While creating new project, provide port and server name correctly and the AEM server should be up and running.

Avatar

Level 9

i have followed above steps and now am not able to create project and getting below error.

Unable to create project from archetype [com.adobe.granite.archetypes:aem-project-archetype:10 -> https://repo.adobe.com/nexus/content/groups/public]

Even if i select artifact 7 also i am getting the same error.

What will be the issue now??

Avatar

Level 10

is your local AEM instance up and running when you are trying to connect it with Eclipse ?

Also, please check the logs in AEM and see the error if any

Avatar

Level 9

bsloki wrote...

is your local AEM instance up and running when you are trying to connect it with Eclipse ?

Also, please check the logs in AEM and see the error if any

 


It's up and running.I could able to access the instance from browser.

Avatar

Level 10

Can you share your server configuration ?

Avatar

Level 9

bsloki wrote...

Can you share your server configuration ?

 


Where can i get this information in ecipse??

Avatar

Level 4

Did you create project using maven provided archetype??

If not please share the POM.xml file.

Avatar

Level 9

Please error message below and parent pom.xml

An internal error occurred during: "Starting Adobe Experience Manager at localhost".
Service is null

Avatar

Level 9

Please see the error screen shot

Avatar

Level 10

How are you trying to install it to local AEM instance ?

Avatar

Level 9

bsloki wrote...

How are you trying to install it to local AEM instance ?

 

i have installed my AEM local instance by just extracting the quick start jar and then trying to configure instance and connecting to it.

Thanks,

Kishore

Avatar

Level 10

Can you try to install your code from command prompt,

goto your project folder and exec [1] and see if it installs your project in localhost

mvn clean install -PautoinstallPackage and see if it installs all your content and bundles

Avatar

Level 9

bsloki wrote...

Can you try to install your code from command prompt,

goto your project folder and exec [1] and see if it installs your project in localhost

mvn clean install -PautoinstallPackage and see if it installs all your content and bundles

 

Build is succeeded for all the modules but i don't see the bundles in Felix console.

Avatar

Level 1

I faced the same issue in Eclipse Oxygen 4.7.1.

When I created the project for the first time, AEM plugin actually created the project on the file system but it gave the error

"Unable to create project from archetype [com.adobe.granite.archetypes:aem-project-archetype:11 -> https://repo.adobe.com/nexus/content/groups/public]"

I went to the workspace and i can see the project structure created there. Since the project creation was successful, Eclipse was not able to create the project with the same name. I found the error details in Eclipse log file located at <<Eclipse-Workspace>>/.metadata/.plugins/org.eclipse.ui.workbench/log.

!MESSAGE Unable to create project from archetype [com.adobe.granite.archetypes:aem-project-archetype:11 -> https://repo.adobe.com/nexus/content/groups/public]

!STACK 0

org.apache.maven.archetype.exception.ProjectDirectoryExists: A Maven 2 project already exists in the directory