eclipse-ee4j / eclipse-ee4j/jersey
2.x/examples/osgi-helloworld-webapp does not work with Jetty 12 but with Jetty 10
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
## Background
I'm trying to migrate some legacy code from Jetty 10 to Jetty 12.
I'm using Jetty 12 ee8 and Jersey 2.x.
## Issue
https://github.com/eclipse-ee4j/jersey/tree/2.x/examples/osgi-helloworld-webapp does work with Jetty 10 but not with Jetty 12.
See https://github.com/jetty/jetty.project/issues/11315
[2024-01-30 13:07:02] [WARNING] [org.eclipse.jetty.ee8.webapp.WebAppContext] Failed startup of context oeje8w.WebAppContext@65099eb1{/helloworld,/helloworld,file:///tmp/jetty-0_0_0_0-8080-bundleFile-_helloworld-any-3729372861759542448/webapp/,false}{file:/home/gpf/cix/git/vpms-server/vsrv-deliver/server/vpms-server-data/org.eclipse.osgi/98/0/bundleFile}
[2024-01-30 13:07:02] [INFO ] [org.eclipse.jetty.server.handler.ContextHandler] Started oeje8n.ContextHandler$CoreContextHandler@13f204a3{/helloworld,/helloworld,b=file:///tmp/jetty-0_0_0_0-8080-bundleFile-_helloworld-any-3729372861759542448/webapp/,a=UNAVAILABLE,h=oeje8n.ContextHandler$CoreContextHandler$CoreToNestedHandler@705b8920{STARTED}}
Jersey throws a ResourceFinderException with this message:
org.glassfish.jersey.server.internal.scanning.ResourceFinderException: The URI scheme bundleentry of the URI bundleentry://[...] not supported. Package scanning deployment is not supported for such URIs.
Try using a different deployment mechanism such as explicitly declaring root resource and provider classes using an extension of javax.ws.rs.core.Application
Contributor guide
Assessment
This issue has not been assessed yet.