I searched a looooot and Im not able to find the solution for my problem.
Im using osgi, karaf and java 8.
I have some modules, for example:
WEBSERVICE-SOMETHING inside this module lets say API, PERSISTENCE, ADAPTER
persistence and api starts fine, but adapter gives that error:
Uses constraint violation. Unable to resolve resource adapter [adapter [288](R 288.2)]
because it is exposed to package 'javax.xml.bind.annotation' from resources
org.apache.felix.framework [org.apache.felix.framework [0](R 0)] and
jakarta.xml.bind-api [jakarta.xml.bind-api [79](R 79.0)] via two dependency
chains.
the chains are in the adapter and the api.
but what does that mean?
I can install it as feature and they will all start, but another bundle of mine will be put at GracePeriod and if i do DIAG on karaf it says:
Status: GracePeriod
Declarative Services
Blueprint
01/09/19 19:00
Missing dependencies:
(&(osgi.unit.name=example_db)(objectClass=javax.persistence.EntityManager))
Take note that I have other webservice modules and some of them work fine, I checked the pom's and they have same dependecies and same versions
the datasource is fine as well and I already tried adding some features like hibernate.entityManager and it does not work.