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

Class not found exception when weld-osgi 1.2 is deployed in Apache Karaf 2.3.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • None
    • OSGi support
    • None

    Description

      2012-12-21 13:53:00,851 | ERROR | FelixStartLevel | Weld | nment.osgi.impl.integration.Weld 104 | 98 - org.jboss.weld.osgi.core.integration - 1.2.0.SNAPSHOT | Initialization of Weld instance for bundle org.apache.felix.framework [0] caused an error: java.lang.NoClassDefFoundError: org/slf4j/cal10n/LocLoggerFactory
      java.lang.NoClassDefFoundError: org/slf4j/cal10n/LocLoggerFactory
      at org.jboss.weld.logging.LoggerFactory.<init>(LoggerFactory.java:38)
      at org.jboss.weld.logging.LoggerFactory.loggerFactory(LoggerFactory.java:51)
      at org.jboss.weld.bootstrap.WeldBootstrap.<clinit>(WeldBootstrap.java:127)
      at org.jboss.weld.environment.osgi.impl.integration.Weld.initialize(Weld.java:81)
      at org.jboss.weld.environment.osgi.impl.WeldCDIContainer.initialize(WeldCDIContainer.java:111)
      at org.jboss.weld.environment.osgi.impl.integration.IntegrationActivator.startManagement(IntegrationActivator.java:219)
      at org.jboss.weld.environment.osgi.impl.integration.IntegrationActivator.startCDIOSGi(IntegrationActivator.java:115)
      at org.jboss.weld.environment.osgi.impl.integration.IntegrationActivator.serviceChanged(IntegrationActivator.java:181)
      at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
      at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
      at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4260)
      at org.apache.felix.framework.Felix.registerService(Felix.java:3275)
      at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
      at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:320)
      at org.jboss.weld.environment.osgi.impl.WeldActivator.start(WeldActivator.java:48)
      at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
      at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
      at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
      at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
      at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.ClassNotFoundException: org.slf4j.cal10n.LocLoggerFactory not found by org.jboss.weld.osgi.core.mandatory [94]
      at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
      at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
      at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      ... 22 more
      2012-12-21 13:53:00,854 | ERROR | FelixStartLevel | Weld | nment.osgi.impl.integration.Weld 104 | 98 - org.jboss.weld.osgi.core.integration - 1.2.0.SNAPSHOT | Initialization of Weld instance for bundle org.ops4j.pax.url.mvn [1] caused an error: java.lang.NoClassDefFoundError: Could not initialize class org.jboss.weld.bootstrap.WeldBootstrap
      java.lang.NoClassDefFoundError: Could not initialize class org.jboss.weld.bootstrap.WeldBootstrap
      at org.jboss.weld.environment.osgi.impl.integration.Weld.initialize(Weld.java:81)
      at org.jboss.weld.environment.osgi.impl.WeldCDIContainer.initialize(WeldCDIContainer.java:111)
      at org.jboss.weld.environment.osgi.impl.integration.IntegrationActivator.startManagement(IntegrationActivator.java:219)
      at org.jboss.weld.environment.osgi.impl.integration.IntegrationActivator.startCDIOSGi(IntegrationActivator.java:115)
      at org.jboss.weld.environment.osgi.impl.integration.IntegrationActivator.serviceChanged(IntegrationActivator.java:181)
      at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
      at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
      at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4260)
      at org.apache.felix.framework.Felix.registerService(Felix.java:3275)
      at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
      at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:320)
      at org.jboss.weld.environment.osgi.impl.WeldActivator.start(WeldActivator.java:48)
      at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
      at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
      at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
      at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
      at java.lang.Thread.run(Thread.java:680)

      Attachments

        Activity

          People

            rhn-engineering-jharting Jozef Hartinger
            cmoullia Charles Moulliard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: