Expand my Community achievements bar.

SOLVED

Service OSGI Deployment with maven

Avatar

Level 6

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?

1 Accepted Solution

Avatar

Correct answer by
Level 9

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.

View solution in original post

3 Replies

Avatar

Level 10

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?

Avatar

Correct answer by
Level 9

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.

Avatar

Level 9

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