-
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
Jetty logging service file leaking to web applications #6112
Comments
Originally reported as cometd/cometd#1013. |
So the WAR / WebAppClassloader allows the resource Wonder how hard it would be to just remove the logging from CrossOriginFilter? |
Or, do we want to expose the jetty logger in the WebAppClassLoader if it's used? But what happens if someone uses CrossOriginFilter and say logback on the server? |
In Jetty 9, the jetty logger from the server side is always expose to the webapps. Perhaps we should do the same in Jetty 10+? |
That's the hypothesis, needs to be verified. |
I don't think so... I think the |
I am with Simone on that, by default should be excluded but we could certainly have a property with the mod file for logging that you can edit in your base to expose if you so desire. |
Is the Eitherway, I think if we are to expose |
I'm getting the same exception but even with a simple I'm using jetty runner 11.0.2.
Please excuse posting everything here but then this is the entirety of my setup. project structure
build.gradle.kts
web.xml
HealthCheck.java
JerseyApplication.java
Thanks. |
@andrascsibi check your built WAR file |
OK, thanks. So jetty-*:11.0.2 seem to be the culprit. So is there a workaround for using the jetty libs together with the jetty runner? Thanks. |
Those (specific) Jetty jars shouldn't be in your |
@gregw we can mostly replace all of the |
@janbartel I think we should just remove the debug. |
Signed-off-by: Jan Bartel <janb@webtide.com>
Hello, I'm facing this issue in XWiki (we're trying to upgrade to Jetty 12). In our WAR we have the
If I remove this JAR, Jetty starts without this message. Also note that we have the following JARs too (drawn by some of our 3rd party deps), but removing them doesn't change the message displayed:
Some more info on our logging setup:
Thanks a lot! |
Thanks for the link! I'm not sure I understand fully #4652 . Isn't it about jetty classes being in I would expect that a webapp having the slf4j jar in Thanks |
Jetty version
10.0.x
Description
Deploying a simple
*.war
file containingslf4j-api-2.0.0-alpha1.jar
andslf4j-simple-2.0.0-alpha1.jar
, with a class that triggers SLF4J (e.g. Jetty'sCrossOriginFilter
), the following happens:The
*.war
file does not contain at all any reference toJettyLoggingServiceProvider
, so it must be leaking from the server class-loader as a resource; trying to load it as a class fails because the class is a server class and it's hidden to applications.The text was updated successfully, but these errors were encountered: