Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-941

Log stacktrace following "WELD-000119 Not generating any bean definitions" at TRACE level.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.1.2.Final
    • 1.1.1.Final
    • None
    • None

      Currently, the stack trace is logged at DEBUG level, which makes it hard to filter (see below).
      I suggest to log it with TRACE for that reason.

      08:32:33.999 DEBUG [main] org.jboss.weld.Bootstrap  WELD-000119 Not generating any bean definitions from org.jboss.logging.JBossLogManagerProvider because of underlying class loading error
      08:32:34.001 DEBUG [main] org.jboss.weld.Bootstrap  catching
      org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.NoClassDefFoundError: Lorg/jboss/logmanager/Logger$AttachmentKey;
      	at org.jboss.weld.environment.se.discovery.url.WeldSEResourceLoader.classForName(WeldSEResourceLoader.java:70)
      	at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:83)
      	at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:133)
      	at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:192)
      	at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:370)
      	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:87)
      	at org.jboss.jawabot.JawaBotApp.main(JawaBotApp.java:64)
      Caused by: java.lang.NoClassDefFoundError: Lorg/jboss/logmanager/Logger$AttachmentKey;
      	at java.lang.Class.getDeclaredFields0(Native Method)
      	at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
      	at java.lang.Class.getDeclaredFields(Class.java:1743)
      	at org.jboss.weld.environment.se.discovery.url.WeldSEResourceLoader.classForName(WeldSEResourceLoader.java:58)
      	... 6 more
      Caused by: java.lang.ClassNotFoundException: org.jboss.logmanager.Logger$AttachmentKey
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      	... 10 more
      

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              ozizka_jira Ondrej Zizka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: