Service OSGI Deployment with maven | Community
Skip to main content
selvaganesh
New Participant
April 18, 2016
Solved

Service OSGI Deployment with maven

  • April 18, 2016
  • 3 replies
  • 872 views

Whenever I deploy the bundle module (OSGI code - service and components) with maven(mvn -PautoInstallPackage install clean) , the Service is not recognized in jsp . I am getting Service not found error. When I checked in the system/console, the bundle is in installed state and I am not able to start it. So I delete that bundle and manually uploaded the bundle. Even after manually uploading the bundle the Service is not recognized. Then I need to modify the JSP to make it recognized. Is there anyway to solve this problem?

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 Hemant_arora

Can you click on the bundle and check if there is some error that you can see ? 

Also as edubey mentioned, check the error logs,and exported packages value in pom.xml

Also check your code if you are using correct annotations and parameters.

3 replies

Hemant_arora
New Participant
April 18, 2016

You can also try clicking on the bundle and then click on refresh packages button on top right and see if you bundle state changes 

Hemant_arora
Hemant_aroraAccepted solution
New Participant
April 18, 2016

Can you click on the bundle and check if there is some error that you can see ? 

Also as edubey mentioned, check the error logs,and exported packages value in pom.xml

Also check your code if you are using correct annotations and parameters.

edubey
New Participant
April 18, 2016

Hi,

Your question looks too high level but this is what I recommend:-

1 Make sure service is present in export package in pom.xml

2 Check error.log when deploying bundle

What you modify in JSP to make it work?