Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326749

Summary: Jetty debug turned on by default
Product: [RT] Jetty Reporter: Felis Cattus <feles>
Component: osgiAssignee: Hugues Malphettes <hmalphettes>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: gregw, jetty-inbox
Version: unspecified   
Target Milestone: 7.1.x   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Felis Cattus CLA 2010-10-01 04:50:25 EDT
Build Identifier: I20100921-1024

When an eclipse application is launched that uses the Jetty bundle, a verbouse debug is printed on the console. Couldn't find a way to turn it off. Example:

10:55:41.531 [Start Level Event Dispatcher] INFO  org.mortbay.log - Logging to Logger[org.mortbay.log] via org.mortbay.log.Slf4jLog
10:55:41.578 [Start Level Event Dispatcher] DEBUG org.mortbay.log - Container Server@1ec3c6d + SelectChannelConnector@0.0.0.0:80 as connector
10:55:41.625 [Start Level Event Dispatcher] DEBUG org.mortbay.log - filterNameMap=null
10:55:41.625 [Start Level Event Dispatcher] DEBUG org.mortbay.log - pathFilters=null
10:55:41.625 [Start Level Event Dispatcher] DEBUG org.mortbay.log - servletFilterMap=null

Reproducible: Always

Steps to Reproduce:
1. Create an eclipse application that uses Jetty as HTTP server 
2. Run the application
3. Make a request to Jetty HTTP server
Comment 1 Felis Cattus CLA 2010-10-03 09:26:21 EDT
Probably related to the issue:
When "Validate Plug-ins" is invoked on the run configuration for the application, the following problem is displayed:

org.slf4j.api
Missing Constraint: Require-Capability: generic; filter="(&(generic=org.slf4j.impl.StaticLoggerBinder)(&(generic=org.slf4j.impl.StaticLoggerBinder)(&(generic=org.slf4j.impl.StaticLoggerBinder)(&(version>=1.5.5)(!(version>=1.5.12))))))"
Comment 2 Greg Wilkins CLA 2010-10-04 18:14:05 EDT
I'm not sure the first line can be turned off without setting up the logger specially - but the debugs should not be there unless debug is turned on
Comment 3 Jesse McConnell CLA 2011-05-10 17:58:31 EDT
switching this to osgi component
Comment 4 Hugues Malphettes CLA 2011-05-10 19:25:06 EDT
This is affecting the jetty-6 version with the packaging of jetty made by equinox.
Also comment #2 shows an installation specific issue:
equinox uses commons-logging I beleive and when jetty is used within a set of equinox features, I think the logging framework is correctly setup.

Felis do you still have the issue?
We can help you with some general knowledge about commons-logging, slf4j in equinox, equinox and and how jetty-6 is packaged there.
Comment 5 Felis Cattus CLA 2011-06-11 13:41:34 EDT
I don't see these debugs any more, thank you.