Giter Site home page Giter Site logo

3.1.7 OSGi bundle issue about jersey HOT 12 CLOSED

paulrutter avatar paulrutter commented on June 24, 2024
3.1.7 OSGi bundle issue

from jersey.

Comments (12)

paulrutter avatar paulrutter commented on June 24, 2024 1

Ok, when upgrading bndlib to 7.0.0 i didn’t notice any build errors anymore though, so not sure what the issue would be then. I will try 3.1.7 in our application and let you know if it works properly or not.

We're running java 21, with Apache Felix as osgi container and Jetty 12 EE 10 btw.

from jersey.

paulrutter avatar paulrutter commented on June 24, 2024 1

Sorry for the confusion @jansupol, that OSGi error is indeed unrelated.
After fixing that one, the application just starts properly with Jersey 3.1.7.

from jersey.

paulrutter avatar paulrutter commented on June 24, 2024

Maybe this instruction could help, i will try: https://bnd.bndtools.org/instructions/jpms-multi-release.html

from jersey.

paulrutter avatar paulrutter commented on June 24, 2024

Probably related to this commit https://github.com/eclipse-ee4j/jersey/pull/5648/files#diff-c5f428df9f7559f2cbd2b51eb8af37214c2ac0dab80414c95d16a7d59b909413

from jersey.

paulrutter avatar paulrutter commented on June 24, 2024

There seems to be support for this, so probably not a jersey issue. See bndtools/bnd#2227

I will close it for now and try to fix it with bnd instructions in the maven bundle plugin first.

from jersey.

paulrutter avatar paulrutter commented on June 24, 2024

Created apache/felix-dev#322

from jersey.

jansupol avatar jansupol commented on June 24, 2024

You are right, Multi-Release: true is missing in the MANIFEST.MF.

from jersey.

paulrutter avatar paulrutter commented on June 24, 2024

Right, as in, it's an issue in the maven-bundle-plugin? Or right, it's an issue in Jersey (as well)?

Because using bndlib 7.0.0 seems to work, as it supports MR jars.

from jersey.

jansupol avatar jansupol commented on June 24, 2024

It may be an issue in Jersey for certain environments depending on the Multi-Release field. Your environment may be one of them.

from jersey.

paulrutter avatar paulrutter commented on June 24, 2024

@jansupol I ran the feature build containing 3.1.7 this morning and although compiling and building went fine, the application doesn't start properly due to an OSGi bundle not being able to start.

org.osgi.framework.BundleException: Unable to resolve com.abc.services.openapi [53](R 53.0): missing requirement [com.abc.services.openapi [53](R 53.0)] osgi.extender; (&(osgi.extender=osgi.cdi)(version>=1.0.0)(!(version>=2.0.0))) Unresolved requirements: [[com.abc.services.openapi [53](R 53.0)] osgi.extender; (&(osgi.extender=osgi.cdi)(version>=1.0.0)(!(version>=2.0.0)))]

I would have expected the OSGi bundle containing Jersey would fail (that one just starts properly).
Is this in line with the problems you would expect?

from jersey.

jansupol avatar jansupol commented on June 24, 2024

No, this looks like some other issue, osgi.cdi module of a wrong version or missing.

from jersey.

paulrutter avatar paulrutter commented on June 24, 2024

Ok, i will investigate it further and let you know.

from jersey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.