Comments (12)
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.
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.
Maybe this instruction could help, i will try: https://bnd.bndtools.org/instructions/jpms-multi-release.html
from jersey.
Probably related to this commit https://github.com/eclipse-ee4j/jersey/pull/5648/files#diff-c5f428df9f7559f2cbd2b51eb8af37214c2ac0dab80414c95d16a7d59b909413
from jersey.
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.
Created apache/felix-dev#322
from jersey.
You are right, Multi-Release: true
is missing in the MANIFEST.MF.
from jersey.
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.
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.
@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.
No, this looks like some other issue, osgi.cdi
module of a wrong version or missing.
from jersey.
Ok, i will investigate it further and let you know.
from jersey.
Related Issues (20)
- HttpUrlConnector to support domain fronting HOT 2
- Jersey 3.1.6 release HOT 2
- Jersey 3.0.x has no working provider that support Java 17, PATCH, and multipart attachments HOT 3
- JdkConnector does not properly cleanup ERROR state connections HOT 3
- NettyConnector does not respect timeouts HOT 7
- CVE-2023-4043 for jersey-media-json-binding dependency (parsson-1.1.1) HOT 2
- Injection error when using a `DynamicFeature` HOT 3
- Possible NPE in RequestContextFilter when other Filters prioritized
- Carrier Thread pinning on stack CommittingOutputStream.flushBuffer() HOT 9
- Jersey 3.1.7 release HOT 5
- Jersey 3.1.6 not closing request on Jetty earlyEOF HOT 3
- Connection is not stable (wrong detection if SSL context is configured) HOT 1
- Preserve whitespace in Content-Type header HOT 5
- Unexpected javax.net.ssl.SSLHandshakeException in seemingly simple usage scenario with Jersey Client 2 (>= 2.41) HOT 9
- What is the difference between jersey2.x, jersey 3.x and jersey4.x and which one is recommended? HOT 8
- Connection Leak when Circuit Breaker Hystrix Command timeout HOT 2
- "MessageBodyWriter not found for media type=application/xml" error preventing upgrade from 2.32 to 2.33 HOT 4
- KeepAlive Caching stops working in 2.41 HOT 1
- Incosistent handling of inherited @Produces annotations HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jersey.