-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[org.eclipse.jetty.ee8.webapp.Configurations] Unable to get known Configuration #12614
Comments
You need add the ServiceLoader support to your OSGi environment. OSGi, by default, doesn't support ServiceLoader for some odd reason. https://docs.osgi.org/specification/osgi.enterprise/7.0.0/service.loader.html Aries Spy-Fly is a popular ServiceLoader support jar for OSGi.
Most of jetty-ee8 tree is generated at build time from the jetty-ee9 tree. |
I'm already using this form Aries: org.apache.aries.spifly.dynamic.bundle-1.3.7.jar |
I have reduced my OSGi based service, so that it contains only one simple 'Hello World' Servlet. I still get this warning, but the servlet works. Attached you will find the log with log level FINEST. Here is the relevant part: |
@gpfeifer it is very likely that you do not have all the necessary bundles deployed. You can also maybe have a look at the |
Jetty version(s)
Jetty 12.0.15
Jetty Environment
ee8
Java version/vendor
(use: java -version)
openjdk version "21.0.5" 2024-10-15
OpenJDK Runtime Environment (build 21.0.5+11-Ubuntu-1ubuntu122.04)
OpenJDK 64-Bit Server VM (build 21.0.5+11-Ubuntu-1ubuntu122.04, mixed mode, sharing)
OS type/version
22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2
Description
I'm running this JARs inside an OSGI container:
I get this warning at startup: [org.eclipse.jetty.ee8.webapp.Configurations] Unable to get known Configuration
How to reproduce?
Run the bundles in an OSGi container
Questions
What is the reason for this warning? How can I avoid this warning?
Where can I find the sources for org.eclipse.jetty.ee8.webapp.Configurations? No sources here:
https://github.com/jetty/jetty.project/tree/jetty-12.0.x/jetty-ee8/jetty-ee8-webapp/src/main
The text was updated successfully, but these errors were encountered: