OSGI bundles not running in local AEM instance | Community
Skip to main content
bcg-maya-kav2
August 9, 2018

OSGI bundles not running in local AEM instance

  • August 9, 2018
  • 3 replies
  • 3290 views

Hello,

In my local environment, OSGI bundles built by my project are not running or updating in my local AEM instance.

I have checked /system/console/bundles, and I see absolutely no services running for my package.

However, the services are running on my teammates' local instances.

Is there some setting that might be preventing the OSGI services and Sling Servlets from running?

Thank you for any help.

I am running AEM 6.3.1, in case it matters.

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

3 replies

edubey
Level 10
August 10, 2018

Two things to check:

1. Delete the jcrPauseInstallation folder if you see under /system/sling/installer/jcr

2. Check for error in error.log when deploying your code.

bcg-maya-kav2
August 10, 2018

Thank you for the quick response, edubey.

I tried removing the jcrPausInstallation folder. When I deployed after that, I saw a few errors with: "Node with path /system/sling/installer/jcr/pauseInstallation does not exist". So, that change took, but it did not resolve the issue.

Looking further at the error.log, these errors seem suspect:

*ERROR* [FelixStartLevel] com.client.group.project.core Component descriptor entry 'OSGI-INF/com.client.group.project.core.filters.LoggingFilter.xml' not found

*ERROR* [FelixStartLevel] com.client.group.project.core Component descriptor entry 'OSGI-INF/com.client.group.project.core.listeners.SimpleResourceListener.xml' not found

*ERROR* [FelixStartLevel] com.client.group.project.core Component descriptor entry 'OSGI-INF/com.client.group.project.core.schedulers.SimpleScheduledTask.xml' not found

*ERROR* [FelixStartLevel] com.client.group.project.core Component descriptor entry 'OSGI-INF/com.client.group.project.core.servlets.SimpleServlet.xml' not found

*ERROR* [FelixStartLevel] com.client.group.project.core Component descriptor entry 'OSGI-INF/com.client.group.project.core.filters.LoggingFilter.xml' not found

*ERROR* [FelixStartLevel] com.client.group.project.core Component descriptor entry 'OSGI-INF/com.client.group.project.core.listeners.SimpleResourceListener.xml' not found

*ERROR* [FelixStartLevel] com.client.group.project.core Component descriptor entry 'OSGI-INF/com.client.group.project.core.schedulers.SimpleScheduledTask.xml' not found

*ERROR* [FelixStartLevel] com.client.group.project.core Component descriptor entry 'OSGI-INF/com.client.group.project.core.servlets.SimpleServlet.xml' not found

Not sure why these would be missing.

Will check with my team, but any other thoughts?

Thanks again.

bcg-maya-kav2
August 10, 2018

I was able to "solve" the problem by completely blowing away my dev environment and starting anew.

Not a satisfying result, but it works for now.

smacdonald2008
Level 10
August 10, 2018

Sometimes something becomes corrupt. This is not a bad approach when you are using a local DEV instance used for building components, etc.

joerghoh
Adobe Employee
Adobe Employee
August 10, 2018

There are many reasons, why your services are not running. Check in this order:

* is the bundle which contains therse services active?

* does the bundle list all the services in the overview?

* go to the components view and check that all your services appear (each service is also a component)

* check that each component is active

* if not, you should be able to see if a required reference within the component is not satisfied.

Have you restarted your AEM already?

bcg-maya-kav2
August 10, 2018

Thanks for the response Jörg Hoh.

So, when my local environment was having issues, the following were my responses:

* is the bundle which contains these services active? YES

* does the bundle list all the services in the overview? NO

* go to the components view and check that all your services appear (each service is also a component) None of my components are there.

* check that each component is active I cannot as there are no components.

* if not, you should be able to see if a required reference within the component is not satisfied. I cannot as there are no components.

After starting in a fresh environment, the above answers change to positives.

I suspect it has something to do with a setting I have in Eclipse when pushing updates to the local server, as I noticed that the services quit again after I hit "Publish" on my server in Eclipse. After the services stopped working the second time, I started my AEM instance fresh (deleted the crx-quickstart) and let AEM reinitialize things. Then, after re-uploading my project packages, the services ran properly again.

joerghoh
Adobe Employee
Adobe Employee
August 10, 2018

If the components are not there, I would assume that the maven-bundle-plugin did not ran properly. The components are detected by reading the xml files inside the OSGI-INF directory in the bundle. If there are no xml files (because the maven-bundle-plugin did not run), there won't be any components.

That's the only explanation I have.

Jörg