Could not get service from ref [javax.servlet.Servlet, javax.servlet.ServletConfig, java.io.Serializable] | Community
Skip to main content
jond1978
Level 2
October 16, 2015
Solved

Could not get service from ref [javax.servlet.Servlet, javax.servlet.ServletConfig, java.io.Serializable]

  • October 16, 2015
  • 2 replies
  • 2571 views

Hi,

While deploying our  application we are getting a WARN which says:

*WARN* [FelixFrameworkWiring] org.apache.sling.servlets.resolver [org.apache.sling.servlets.resolver.SlingServletResolver(593)] Could not get service from ref [javax.servlet.Servlet, javax.servlet.ServletConfig, java.io.Serializable]

Is this an expected behavior from OSGi bundles (Services may appear/disappear at any time).
Any pointers to solve this issue would be helpful.

 

Thanks

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

Hi jond1978

 

Agreeing with Scoots post, Service do not behave randomly.

Just for the reference, i would like you to go through the below mentioned article and gauge if you can find some ambiguity in the way you are doing the OSGi deployment. 

It is covering creation of OSGi service and how to deploy it.

Link:- https://helpx.adobe.com/experience-manager/using/first-osgi.html

 

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni

2 replies

smacdonald2008
Level 10
October 16, 2015

In AEM - services do not randomly appear and disappear. Are you seeing any strange behaviour in your application. Is your servlet working properly? 

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
October 16, 2015

Hi jond1978

 

Agreeing with Scoots post, Service do not behave randomly.

Just for the reference, i would like you to go through the below mentioned article and gauge if you can find some ambiguity in the way you are doing the OSGi deployment. 

It is covering creation of OSGi service and how to deploy it.

Link:- https://helpx.adobe.com/experience-manager/using/first-osgi.html

 

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
January 11, 2023

Hi @kautuk_sahni 
The link you have shared, takes to me some page. Attached is the screenshot of the page. Could you please tell me where is the right page that shows the solution? 

Thank you