1 Reply Latest reply on Mar 1, 2012 3:54 AM by dako ak

    FUSE 4.4.1:  features:install camel-bean-validator crashes

    dako ak Newbie

      Hi all,

       

      I have installed a fresh version of apache-servicemix-4.4.1-fuse-02-05.

      Afterwards I started under Windows XP ServiceMix with servicemix.bat.

      And then I typed the following commands into the console:

       

      features:install webconsole  -> Webconsole works

      features:install camel-bean-validator  -> ErrorTrace:

       

      Refreshing bundles org.springframework.context (75)

      Exception in thread "Timer-1" java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext

              at java.lang.ClassLoader.defineClass1(Native Method)

              at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

              at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1979)

              at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:785)

              at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:74)

              at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1839)

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

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

              at java.lang.ClassLoader.defineClass1(Native Method)

              at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

              at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1979)

              at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:785)

              at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:74)

              at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1839)

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

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

              at java.lang.ClassLoader.defineClass1(Native Method)

              at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

              at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1979)

              at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:785)

              at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:74)

              at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1839)

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

              at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:703)

              at org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:102)

              at org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1458)

              at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:780)

              at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:74)

              at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1839)

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

              at org.ops4j.pax.logging.util.OsgiUtil.loadClass(OsgiUtil.java:99)

              at org.apache.log4j.OsgiThrowableRenderer.findClass(OsgiThrowableRenderer.java:215)

              at org.apache.log4j.OsgiThrowableRenderer.formatElement(OsgiThrowableRenderer.java:128)

              at org.apache.log4j.OsgiThrowableRenderer.doRender(OsgiThrowableRenderer.java:106)

              at org.apache.log4j.OsgiThrowableRenderer.doRender(OsgiThrowableRenderer.java:52)

              at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:89)

              at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:413)

              at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:313)

              at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:276)

              at org.apache.log4j.WriterAppender.append(WriterAppender.java:162)

              at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)

              at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)

              at org.apache.log4j.Category.callAppenders(Category.java:193)

              at org.apache.log4j.Category.forcedLog(Category.java:365)

              at org.apache.log4j.Category.log(Category.java:772)

              at org.ops4j.pax.logging.service.internal.PaxLoggerImpl.error(PaxLoggerImpl.java:157)

              at org.ops4j.pax.logging.internal.TrackingLogger.error(TrackingLogger.java:96)

              at org.apache.commons.logging.internal.JclLogger.error(JclLogger.java:174)

              at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:73)

              at java.util.TimerThread.mainLoop(Timer.java:512)

              at java.util.TimerThread.run(Timer.java:462)

      Caused by: java.lang.ClassNotFoundException: org.springframework.context.ConfigurableApplicationContext not found by org.springframework.osgi.core

              at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:845)

              at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:74)

              at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1839)

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

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

              ... 51 more

      ERROR: Bundle org.springframework.osgi.extender Error stopping bundle. (java.lang.NoClassDefFoundError: org/osgi/framework/ServiceRegistration)

      java.lang.NoClassDefFoundError: org/osgi/framework/ServiceRegistration

              at org.springframework.osgi.util.OsgiServiceUtils.unregisterService(OsgiServiceUtils.java:41)

              at org.springframework.osgi.extender.internal.support.NamespaceManager.unregisterResolverService(NamespaceManager.java:195)

              at org.springframework.osgi.extender.internal.support.NamespaceManager.destroy(NamespaceManager.java:223)

              at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.shutdown(ContextLoaderListener.java:547)

              at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.stop(ContextLoaderListener.java:431)

              at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:651)

              at org.apache.felix.framework.Felix.stopBundle(Felix.java:2236)

              at org.apache.felix.framework.Felix$RefreshHelper.stop(Felix.java:4660)

              at org.apache.felix.framework.Felix.refreshPackages(Felix.java:3601)

              at org.apache.felix.framework.PackageAdminImpl.run(PackageAdminImpl.java:365)

              at java.lang.Thread.run(Thread.java:619)

      Caused by: java.lang.ClassNotFoundException: org.osgi.framework.ServiceRegistration not found by org.springframework.osgi.core

              at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:845)

              at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:74)

              at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1839)

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

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

              ... 11 more

      ERROR Cannot use factory configuration org.apache.aries.transaction for : Configuration bound to bundle m

      vn:org.apache.aries.transaction/org.apache.aries.transaction.manager/0.2-incubating

      ERROR Configuration for org.ops4j.pax.web has already been used for service and will now also be given to [org.

      osgi.service.cm.ManagedService, id=495, bundle=159]

       

      Best regards

       

      Edited by: akunze on Mar 1, 2012 8:45 AM

       

      Edited by: akunze on Mar 1, 2012 8:45 AM

        • 1. Re: FUSE 4.4.1:  features:install camel-bean-validator crashes
          dako ak Newbie

          If I try the same in Apache-ServiceMix 4.4.0 (not the FUSE edition): I got the following output, but the camel-bean-validator feature is installed:

           

          Refreshing bundles org.springframework.context (65)

          org.springframework.osgi.extender[org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution] : Closing runnable for context OsgiBundleXmlApplicati

          onContext(bundle=org.apache.cxf.bundle, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case t

          he thread still hangs

           

          Edited by: akunze on Mar 1, 2012 8:54 AM