Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 649273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:55:34+00:00 2026-05-13T21:55:34+00:00

I’m running a java webapp with a simple mvn jetty:run , using the latest

  • 0

I’m running a java webapp with a simple mvn jetty:run, using the latest jetty plugin, but I can’t seem to find a way to tell jetty to output DEBUG messages to console (for the embedded jetty instance, not the plugin itself). It’s currently outputting only WARN and INFO messages. I’ve tried setting -DDEBUG and -DVERBOSE, but they don’t do anything. I’ve already had a look at the documentation, but it doesn’t seem to cover this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:55:35+00:00Added an answer on May 13, 2026 at 9:55 pm

    Update: OK, I finally got things working and here is what I did.

    My understanding is that Jetty 7 doesn’t have any dependencies on a particular logging framework, even for the JSP engine since Jetty 7 uses the JSP 2.1 engine. So you can use any logging framework. Here I will use logback.

    First add logback-classic as dependency in the plugin and set the logback.configurationFile system property to point on a configuration file:

    <project>
      ...
      <build>
        ...
        <plugins>
          <plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <version>7.0.0.pre5</version>
            <configuration>
              <systemProperties>
                <systemProperty>
                  <name>logback.configurationFile</name>
                  <value>./src/etc/logback.xml</value>
                </systemProperty>
              </systemProperties>
            </configuration>
            <dependencies>
              <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>0.9.15</version>
              </dependency>
            </dependencies>
          </plugin>
          ...
        </plugins>
      </build>
      ...
    </project>
    

    Then add a src/etc/logback.xml configuration file. Below a minimal configuration:

    <configuration>
      <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <layout class="ch.qos.logback.classic.PatternLayout">
          <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern>
        </layout>
      </appender>
    
      <root level="debug">
        <appender-ref ref="STDOUT"/>
      </root>
    </configuration>
    

    With this setup, jetty will output DEBUG messages:

    $ mvn jetty:run
    ...
    00:31:33.089 [main] DEBUG org.mortbay.log - starting DefaultHandler@145e5a6
    00:31:33.089 [main] DEBUG org.mortbay.log - started DefaultHandler@145e5a6
    00:31:33.105 [main] DEBUG org.mortbay.log - starting RequestLogHandler@1e80761
    00:31:33.106 [main] DEBUG org.mortbay.log - started RequestLogHandler@1e80761
    00:31:33.106 [main] DEBUG org.mortbay.log - starting HandlerCollection@1485542
    00:31:33.106 [main] DEBUG org.mortbay.log - started HandlerCollection@1485542
    00:31:33.106 [main] DEBUG org.mortbay.log - starting org.mortbay.jetty.Server@a010ba
    00:31:33.174 [main] DEBUG org.mortbay.log - started org.mortbay.jetty.nio.SelectChannelConnector$1@ee21f5
    00:31:33.216 [main] INFO  org.mortbay.log - Started SelectChannelConnector@0.0.0.0:8080
    00:31:33.217 [main] DEBUG org.mortbay.log - started SelectChannelConnector@0.0.0.0:8080
    00:31:33.217 [main] DEBUG org.mortbay.log - started org.mortbay.jetty.Server@a010ba
    [INFO] Started Jetty Server
    

    Resources:

    • The Maven Jetty Plugin page
    • The [m2] jetty6 plugin & log4j message/thread
    • The Chapter 3: Logback configuration from the Logback documentation
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 444k
  • Answers 444k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer $("#BMFNP").change(function() { if($(this).is(":checked") { if( $("#INTEF").is(":checked")) { alert("bar"); } else… May 15, 2026 at 6:37 pm
  • Editorial Team
    Editorial Team added an answer While the features used are not uncommon, I'll admit is… May 15, 2026 at 6:37 pm
  • Editorial Team
    Editorial Team added an answer Delegates are a design pattern in object-oriented languages that allow… May 15, 2026 at 6:37 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.