1 Reply Latest reply on Nov 7, 2010 10:05 PM by Willem Jiang

    java.lang.NoClassDefFoundError: org/springframework/core/io/Resource

    Witold Zegarowski Newbie

      I sometimes recieve following exception when starting up servicemix :

       

      (version 4.2.0-fuse-02-00)

       

      INFO: locking

      2010-11-03 11:56:44,563 | INFO  |  |            | pool-2-thread-1  | SecurityUtils             | BouncyCastle not registered, using the default JCE provider

      2010-11-03 11:56:46,753 | DEBUG |  |            | Event Dispatcher | streamingvcr              | BundleEvent INSTALLED

      2010-11-03 11:56:50,933 | INFO  |  |            | Thread-4         | FeaturesServiceImpl       | Bundles to refresh:

      2010-11-03 11:56:51,024 | DEBUG |  |            | Event Dispatcher | streamingvcr              | BundleEvent RESOLVED

      2010-11-03 11:56:51,657 | DEBUG |  |            | Event Dispatcher | streamingvcr              | BundleEvent STARTED

      2010-11-03 11:56:51,897 | INFO  |  |            | Thread-4         | ContextLoaderListener     | Starting bundle v.[1.2.0]

      2010-11-03 11:56:52,050 | INFO  |  |            | Thread-4         | ContextLoaderListener     | Starting bundle v.[1.2.0]

      2010-11-03 11:56:52,178 | INFO  |  |            | Thread-4         | Activator                 | Camel activator starting

      2010-11-03 11:56:52,388 | INFO  |  |            | Thread-4         | Activator                 | Camel activator started

      2010-11-03 11:56:52,395 | ERROR |  |            | Thread-4         | FeaturesServiceImpl       | Error installing boot features

      java.lang.Exception: Could not start bundle mvn:org.springframework.osgi/spring-osgi-extender/1.2.0 in feature(s) spring-dm-1.2.0: Exception in org.springframework.osgi.extender.internal.activator.ContextLoaderListener.start() of bundle org.springframework.osgi.extender.

              at org.apache.felix.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:303)

              at org.apache.felix.karaf.features.internal.FeaturesServiceImpl$1.run(FeaturesServiceImpl.java:679)

      Caused by: org.osgi.framework.BundleException: Exception in org.springframework.osgi.extender.internal.activator.ContextLoaderListener.start() of bundle org.springframework.osgi.extender.

              at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)

              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 org.apache.felix.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:295)

              ... 1 more

      Caused by: java.lang.NoClassDefFoundError: org/springframework/core/io/Resource

              at org.springframework.beans.factory.xml.DelegatingEntityResolver.(NamespacePlugins.java:63)

              at org.springframework.osgi.extender.internal.support.NamespacePlugins.addHandler(NamespacePlugins.java:104)

              at org.springframework.osgi.extender.internal.support.NamespaceManager.addHandler(NamespaceManager.java:150)

              at org.springframework.osgi.extender.internal.support.NamespaceManager.maybeAddNamespaceHandlerFor(NamespaceManager.java:107)

              at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.maybeAddNamespaceHandlerFor(ContextLoaderListener.java:631)

              at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.start(ContextLoaderListener.java:371)

              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)

              ... 6 more

      Caused by: java.lang.ClassNotFoundException: org.springframework.core.io.Resource

              at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)

              at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)

              at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)

              at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)

              ... 17 more

       

       

       

      And then, half of my boot bundles are not loaded. This occures sometimes...

       

      Can you help ?

      Witold

       

      Edited by: witold.zegarowski on Nov 3, 2010 5:58 PM