Возникла проблема при попытке загрузить контейнер чертежа в Karaf. У меня появляется следующее исключение
Невозможно инициализировать bean-компонент cxf org.osgi.service.blueprint.container.ComponentDefinitionException: Невозможно инициализироватьbean cxf в org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit (BeanRecipe.java:593) в org.apache.aries.blueprint.container.BeanRecipe.internalCreate2 (BeanRecipe.java:703) в org..blueprint.container.BeanRecipe.internalCreate (BeanRecipe.java:666) в org.apache.aries.blueprint.di.AbstractRecipe $ 1.call (AbstractRecipe.java:81) в java.util.concurrent.FutureTask.run (FutureTask.Java: 266) в org.apache.aries.blueprint.di.AbstractRecipe.create (AbstractRecipe.java:90) в org.apache.aries.blueprint.container.BlueprintRepository.createInstances (BlueprintRepository.java:360) в org.apache.aries.blueprint.container.BlueprintRepository.createAll (BlueprintRepository.java:190) в org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents (BlueprintContainerImpl.java:716) в org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun (BlueprintContainerImpl.java:413) в org.apache.aries.blueprint.container.BlueprintjtainII (278) в org.apache.aries.blueprint.container.BlueprintExtender.createContainer (BlueprintExtender.java:299) в org.apache.aries.blueprint.container.BlueprintExtender.createContainer (BlueprintExtender.java:268) в org.apache.aries.blueprint.container.BlueprintExtender.createContainer (BlueprintExtender.java:264) в org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle (BlueprintExtender.java:254) в org.apache.aries.util.tracker.hookBundleHle$ Tracked.customizerModified (BundleHookBundleTracker.java:500) на сайте org.apache.aries.util.tracker.hook.BundleHookBundleTracker $ Tracked.customizerModified (BundleHookBundleTracker.java:433) на сайте org.apache.aries.uokleleTracker$ AbstractTracked.track (BundleHookBundleTracker.java:725) в org.apache.aries.util.tracker.hook.BundleHookBundleTracker $ Tracked.bundleChanged (BundleHookBundleTracker.java:463) в org.apache.aries.util.tracker.hookleleTraHHсобытие (BundleHookBundleTracker.java:422) по адресу org.apache.felix.framework.util.SecureAction.invokeBundleEventHook (SecureAction.java:1179) по адресу org.apache.felix.framework.EventDispatcher.createWhitelistDefis0: at0Hook.apache.felix.framework.EventDispatcher.fireBundleEvent (EventDispatcher.java:485) в org.apache.felix.framework.Felix.fireBundleEvent (Felix.java:4579) в org.apache.felix.framework.Felix.startBundle (.java: 2174) в org.apache.felix.framework.BundleImpl.start (BundleImpl.java:998) в org.apache.felix.framework.BundleImpl.start (BundleImpl.java:984) в org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle (BundleInstallSupportImpl.java:161) в org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle (FeaturesServiceImpl.java:1116) в org.apache.karaf.features.internal.service.Deployer.deploy (Deployer.java:997) в org.apache.karaf.features.internal.service.FeaturesServiceImpldo (FeaturesServiceImpl.java:1025) в org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda $ doProvisionInThread $ 13 (FeaturesServiceImpl.java:964) в java.util.concurrent.FutureTask.2jj) (будущее) (будущее)java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) в java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:624)at java.lang.Thread.run (Thread.java:748) Причина: org.apache.cxf.bus.extension.ExtensionException: не удалось создать
объект класса расширения org.apache.cxf.ws.policy.PolicyEngineImpl.
в org.apache.cxf.bus.extension.Extension.load (Extension.java:241)
в org.apache.cxf.bus.osgi.CXFExtensionBundleListener $ OSGiExtension.load (CXFExtensionBundleListener.java:145)
в org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister (ExtensionManagerImpl.java:208)
в org.apache.cxf.bus.extension.ExtensionManagerImpl.initialize (ExtensionManagerImpl.java:116)
в org.apache.cxf.bus.extension.ExtensionManagerBus.doInitializeInternal (ExtensionManagerBus.java:264)
в org.apache.cxf.bus.extension.ExtensionManagerBus.initialize (ExtensionManagerBus.java:254)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (собственный метод)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
в java.lang.reflect.Method.invoke (Method.java:498)
в org.apache.aries.blueprint.utils.ReflectionUtils.invoke (ReflectionUtils.java:331)
в org.apache.aries.blueprint.container.BeanRecipe.invoke (BeanRecipe.java:838)
в org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit (BeanRecipe.java:591)
... еще 35 Причина: java.lang.ClassCastException: Невозможно привести org.apache.cxf.service.factory.FactoryBeanListenerManager к
org.apache.cxf.service.factory.FactoryBeanListenerManager
at java.lang.Class.cast (Class.java:3369)
в org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeanOfType (ExtensionManagerImpl.java:317)
в org.apache.cxf.bus.blueprint.BlueprintBeanLocator.getBeanOfType (BlueprintBeanLocator.java:99)
в org.apache.cxf.bus.extension.ExtensionManagerBus.getExtension (ExtensionManagerBus.java:185)
в org.apache.cxf.ws.policy.PolicyEngineImpl.setBus (PolicyEngineImpl.java:109)
в org.apache.cxf.ws.policy.PolicyEngineImpl. (PolicyEngineImpl.java:92)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (собственный метод)
at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45)
в java.lang.reflect.Constructor.newInstance (Constructor.java:423)
в org.apache.cxf.bus.extension.Extension.load (Extension.java:217)
... еще 47
Я обновляю версию cxf с 2.6.0 до 3.1.11
blueprint.xml
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
xmlns:camel-cxf="http://camel.apache.org/schema/blueprint/cxf"
xmlns:cxfcore="http://cxf.apache.org/blueprint/core"
xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0"
xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<jaxws:endpoint id="translationManager" implementor="com.aaa.xxx.translation.ws.service.TranslationManagerImpl" address="/translationManager"/>
</blueprint>