Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10274

examples using mvn:jetty-run do not work after log4j2 upgrade

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.18.0
    • examples
    • None
    • Unknown

    Description

      The examples such as camel-example-swagger-xml do not start with mvn jetty:run and fails with some logging stuff.

      Caused by: java.util.ServiceConfigurationError: org.apache.juli.logging.Log: Provider org.eclipse.jetty.apache.jsp.JuliLog not a subtype
             	at java.util.ServiceLoader.fail(ServiceLoader.java:239)
             	at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
             	at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
             	at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
             	at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
             	at org.apache.juli.logging.LogFactory.<init>(LogFactory.java:78)
             	at org.apache.juli.logging.LogFactory.<clinit>(LogFactory.java:66)
             	at org.apache.jasper.servlet.JasperInitializer.<clinit>(JasperInitializer.java:44)
             	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
             	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
             	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
             	at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
             	at java.lang.Class.newInstance(Class.java:438)
             	at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
             	... 50 more
      

      This problem is likely in all the examples that uses the jetty plugin.

      Attachments

        Activity

          People

            lb Luca Burgazzoli
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: