Closed ops4j-issues closed 7 years ago
Achim Nierbeck commented
fixed
master:
https://github.com/ops4j/org.ops4j.pax.web/commit/18e52b52415515c0b67b0128243bf0d86cc75722
6.1.x:
https://github.com/ops4j/org.ops4j.pax.web/commit/c2b2d0a65260e696f27e691578b2ee10bac65319
6.0.x:
https://github.com/ops4j/org.ops4j.pax.web/commit/319b4ac971d0e54dbb8def6637c7df8735550fa0
Amichai Rothman commented
Thanks!
But is this really a warning, i.e. something is wrong? What does it mean?
Achim Nierbeck commented
This scanner scans for ServletContainerInitializer, obviosly you defined to have such a initializer in your service conf in META-INF/services
After the check if this class is an annotation or an interface this scanner will look for that.
In your case you defined a dependency for an annotation, which you didn't "Provide" therefore the warning:
Amichai Rothman commented
I see. Well I didn't add anything myself, but I guess either karaf or one of the dependency jars has this in META-INF. I see it in jars from pax web (pax-web-jsp-6.0.7.jar) and jetty (websocket-server-9.3.15.v20161220.jar, javax-websocket-server-impl-9.3.15.v20161220.jar, javax-websocket-server-impl-9.3.14.v20161028.jar). Nothing much I can do about it, no?
Amichai Rothman created PAXWEB-1132
In Karaf 4.1.2, the following is shown in the log:
Although it's a WARN, it's not clear if or how this affects the application runtime. Showing the full stack trace makes it look serious. I would suggest either changing the log level, or removing the full stack trace, or displaying a more informative message... whatever is appropriate in this condition. As it currently is it gets users to spend time investigating it, but without any clear resolution.
Affects: 6.0.6 Fixed in: 6.1.0, 6.0.8, 7.0.0 Votes: 1, Watches: 3