com.springsource.osgi.medic.log.impl.logback.LoggerContextConfigurationFailedException: Configuration failed with the following problems: [Could not find URL of file to scan.]

SpringSource Issue Tracker | Daniël van 't Ooster | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    LogBack is very powerful, but it seems some of its features cannot be used by default. To mention a few: I am able to enable the jmx configuration bean, but most of the exported methods cannot be used an give an exception (tested with jconsole) There is also a feature to enable a reload of the configuration file each x seconds, but this doesn't work, dm server does not start and gives the following stack trace: com.springsource.osgi.medic.log.impl.logback.LoggerContextConfigurationFailedException: Configuration failed with the following problems: [Could not find URL of file to scan.] at com.springsource.osgi.medic.log.impl.logback.JoranLoggerContextConfigurer.reportFailureIfNecessary(JoranLoggerContextConfigurer.java:55) at com.springsource.osgi.medic.log.impl.logback.JoranLoggerContextConfigurer.applyConfiguration(JoranLoggerContextConfigurer.java:47) at com.springsource.osgi.medic.log.impl.logback.StandardContextSelectorDelegate.configureDefaultContext(StandardContextSelectorDelegate.java:138) at com.springsource.osgi.medic.log.impl.logback.DelegatingContextSelector.configureDefaultContextIfNecessary(DelegatingContextSelector.java:46) at com.springsource.osgi.medic.log.impl.logback.DelegatingContextSelector.setDefaultLoggerContext(DelegatingContextSelector.java:39) at com.springsource.osgi.medic.log.impl.logback.DelegatingContextSelector.<init>(DelegatingContextSelector.java:34) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.slf4j.impl.StaticLoggerBinder.dynamicalContextSelector(StaticLoggerBinder.java:139) at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:105) at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:60) at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:230) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:112) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:275) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248) at com.springsource.osgi.medic.log.impl.LoggingPrintStreamWrapper.<init>(LoggingPrintStreamWrapper.java:73) at com.springsource.osgi.medic.impl.MedicActivator.wrapPrintStream(MedicActivator.java:190) at com.springsource.osgi.medic.impl.MedicActivator.logStart(MedicActivator.java:178) at com.springsource.osgi.medic.impl.MedicActivator.start(MedicActivator.java:112) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) at com.springsource.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:178) at com.springsource.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:160) at com.springsource.osgi.launcher.Launcher.main(Launcher.java:58) com.springsource.osgi.medic.log.impl.logback.LoggerContextConfigurationFailedException: Configuration failed with the following problems: [Could not find URL of file to scan.] at com.springsource.osgi.medic.log.impl.logback.JoranLoggerContextConfigurer.reportFailureIfNecessary(JoranLoggerContextConfigurer.java:55) at com.springsource.osgi.medic.log.impl.logback.JoranLoggerContextConfigurer.applyConfiguration(JoranLoggerContextConfigurer.java:47) at com.springsource.osgi.medic.log.impl.logback.StandardContextSelectorDelegate.createConfiguredContext(StandardContextSelectorDelegate.java:118) at com.springsource.osgi.medic.log.impl.logback.StandardContextSelectorDelegate.getLoggerContext(StandardContextSelectorDelegate.java:99) at com.springsource.osgi.medic.log.impl.logback.DelegatingContextSelector.getLoggerContext(DelegatingContextSelector.java:74) at org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:151) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:280) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248) at com.springsource.osgi.medic.log.impl.LoggingPrintStreamWrapper.<init>(LoggingPrintStreamWrapper.java:73) at com.springsource.osgi.medic.impl.MedicActivator.wrapPrintStream(MedicActivator.java:190) at com.springsource.osgi.medic.impl.MedicActivator.logStart(MedicActivator.java:178) at com.springsource.osgi.medic.impl.MedicActivator.start(MedicActivator.java:112) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) at com.springsource.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:178) at com.springsource.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:160) at com.springsource.osgi.launcher.Launcher.main(Launcher.java:58) Another feature I would like to use is to add a filter+expression for some known problems, but the class ch.qos.logback.classic.boolex.JaninoEventEvaluator cannot be found. Environment, DM Server 2.0.1

    SpringSource Issue Tracker | 7 years ago | Daniël van 't Ooster
    com.springsource.osgi.medic.log.impl.logback.LoggerContextConfigurationFailedException: Configuration failed with the following problems: [Could not find URL of file to scan.]
  2. 0

    LogBack is very powerful, but it seems some of its features cannot be used by default. To mention a few: I am able to enable the jmx configuration bean, but most of the exported methods cannot be used an give an exception (tested with jconsole) There is also a feature to enable a reload of the configuration file each x seconds, but this doesn't work, dm server does not start and gives the following stack trace: com.springsource.osgi.medic.log.impl.logback.LoggerContextConfigurationFailedException: Configuration failed with the following problems: [Could not find URL of file to scan.] at com.springsource.osgi.medic.log.impl.logback.JoranLoggerContextConfigurer.reportFailureIfNecessary(JoranLoggerContextConfigurer.java:55) at com.springsource.osgi.medic.log.impl.logback.JoranLoggerContextConfigurer.applyConfiguration(JoranLoggerContextConfigurer.java:47) at com.springsource.osgi.medic.log.impl.logback.StandardContextSelectorDelegate.configureDefaultContext(StandardContextSelectorDelegate.java:138) at com.springsource.osgi.medic.log.impl.logback.DelegatingContextSelector.configureDefaultContextIfNecessary(DelegatingContextSelector.java:46) at com.springsource.osgi.medic.log.impl.logback.DelegatingContextSelector.setDefaultLoggerContext(DelegatingContextSelector.java:39) at com.springsource.osgi.medic.log.impl.logback.DelegatingContextSelector.<init>(DelegatingContextSelector.java:34) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.slf4j.impl.StaticLoggerBinder.dynamicalContextSelector(StaticLoggerBinder.java:139) at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:105) at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:60) at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:230) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:112) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:275) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248) at com.springsource.osgi.medic.log.impl.LoggingPrintStreamWrapper.<init>(LoggingPrintStreamWrapper.java:73) at com.springsource.osgi.medic.impl.MedicActivator.wrapPrintStream(MedicActivator.java:190) at com.springsource.osgi.medic.impl.MedicActivator.logStart(MedicActivator.java:178) at com.springsource.osgi.medic.impl.MedicActivator.start(MedicActivator.java:112) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) at com.springsource.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:178) at com.springsource.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:160) at com.springsource.osgi.launcher.Launcher.main(Launcher.java:58) com.springsource.osgi.medic.log.impl.logback.LoggerContextConfigurationFailedException: Configuration failed with the following problems: [Could not find URL of file to scan.] at com.springsource.osgi.medic.log.impl.logback.JoranLoggerContextConfigurer.reportFailureIfNecessary(JoranLoggerContextConfigurer.java:55) at com.springsource.osgi.medic.log.impl.logback.JoranLoggerContextConfigurer.applyConfiguration(JoranLoggerContextConfigurer.java:47) at com.springsource.osgi.medic.log.impl.logback.StandardContextSelectorDelegate.createConfiguredContext(StandardContextSelectorDelegate.java:118) at com.springsource.osgi.medic.log.impl.logback.StandardContextSelectorDelegate.getLoggerContext(StandardContextSelectorDelegate.java:99) at com.springsource.osgi.medic.log.impl.logback.DelegatingContextSelector.getLoggerContext(DelegatingContextSelector.java:74) at org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:151) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:280) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248) at com.springsource.osgi.medic.log.impl.LoggingPrintStreamWrapper.<init>(LoggingPrintStreamWrapper.java:73) at com.springsource.osgi.medic.impl.MedicActivator.wrapPrintStream(MedicActivator.java:190) at com.springsource.osgi.medic.impl.MedicActivator.logStart(MedicActivator.java:178) at com.springsource.osgi.medic.impl.MedicActivator.start(MedicActivator.java:112) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) at com.springsource.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:178) at com.springsource.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:160) at com.springsource.osgi.launcher.Launcher.main(Launcher.java:58) Another feature I would like to use is to add a filter+expression for some known problems, but the class ch.qos.logback.classic.boolex.JaninoEventEvaluator cannot be found. Environment, DM Server 2.0.1

    SpringSource Issue Tracker | 7 years ago | Daniël van 't Ooster
    com.springsource.osgi.medic.log.impl.logback.LoggerContextConfigurationFailedException: Configuration failed with the following problems: [Could not find URL of file to scan.]
  3. 0

    ch.qos.logback.classic.net.SMTPAppender - Spring Forum

    spring.io | 1 year ago
    com.springsource.osgi.medic.log.impl.logback.LoggerContextConfigurationFailedException: Configuration failed with the following problems: [Could not create an Appender of type [ch.qos.logback.classic.net.SMTPAppender]., ActionException in Action for tag [appender], Could not find an appender named [EMAILER]. Did you define it below in the config file?, See http://logback.qos.ch/codes.html#appender_order for more details.]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.springsource.osgi.medic.log.impl.logback.LoggerContextConfigurationFailedException

      Configuration failed with the following problems: [Could not find URL of file to scan.]

      at com.springsource.osgi.medic.log.impl.logback.JoranLoggerContextConfigurer.reportFailureIfNecessary()
    2. com.springsource.osgi
      DelegatingContextSelector.getLoggerContext
      1. com.springsource.osgi.medic.log.impl.logback.JoranLoggerContextConfigurer.reportFailureIfNecessary(JoranLoggerContextConfigurer.java:55)
      2. com.springsource.osgi.medic.log.impl.logback.JoranLoggerContextConfigurer.applyConfiguration(JoranLoggerContextConfigurer.java:47)
      3. com.springsource.osgi.medic.log.impl.logback.StandardContextSelectorDelegate.createConfiguredContext(StandardContextSelectorDelegate.java:118)
      4. com.springsource.osgi.medic.log.impl.logback.StandardContextSelectorDelegate.getLoggerContext(StandardContextSelectorDelegate.java:99)
      5. com.springsource.osgi.medic.log.impl.logback.DelegatingContextSelector.getLoggerContext(DelegatingContextSelector.java:74)
      5 frames
    3. SLF4J LOG4J-12 Binding
      StaticLoggerBinder.getLoggerFactory
      1. org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:151)
      1 frame
    4. SLF4J API Module
      LoggerFactory.getLogger
      1. org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:280)
      2. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248)
      2 frames
    5. com.springsource.osgi
      MedicActivator.start
      1. com.springsource.osgi.medic.log.impl.LoggingPrintStreamWrapper.<init>(LoggingPrintStreamWrapper.java:73)
      2. com.springsource.osgi.medic.impl.MedicActivator.wrapPrintStream(MedicActivator.java:190)
      3. com.springsource.osgi.medic.impl.MedicActivator.logStart(MedicActivator.java:178)
      4. com.springsource.osgi.medic.impl.MedicActivator.start(MedicActivator.java:112)
      4 frames
    6. Eclipse OSGi
      BundleContextImpl$1.run
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
      1 frame
    7. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    8. Eclipse OSGi
      AbstractBundle.start
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
      2. org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
      3. org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
      4. org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
      5. org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272)
      5 frames
    9. com.springsource.osgi
      Launcher.main
      1. com.springsource.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:178)
      2. com.springsource.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:160)
      3. com.springsource.osgi.launcher.Launcher.main(Launcher.java:58)
      3 frames