Hi, You can try by create a config file in the etc/ directory :
etc/org.apache.cxf.osgi.cfg : with this content : org.apache.cxf.servlet.context=/cxf regards, François Papon fpa...@apache.org Le 02/08/2018 à 18:33, Jacob Kurian a écrit : > Hello, > I am using servicemix for one of my project. I am getting the following > error. Anyone know how to fix it. > > 10:26:43,034 | ERROR | ExtenderThread-7 | ContextLoaderListener > | 76 - org.springframework.osgi.extender - 1.2.1 | Application > context refresh failed (OsgiBundleXmlApplicationContext(bundle=ads, > config=osgibundle:/META-INF/spring/*.xml)) > org.springframework.beans.factory.BeanDefinitionStoreException: > Invalid bean definition with name > 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0' > defined in null: Could not resolve placeholder > 'org.apache.cxf.servlet.context' > at > org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:287)[66:org.springframework.beans:3.0.6.RELEASE] > at > org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)[66:org.springframework.beans:3.0.6.RELEASE] > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479)[73:org.springframework.osgi.core:1.2.1] > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:450)[73:org.springframework.osgi.core:1.2.1] > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395)[73:org.springframework.osgi.core:1.2.1] > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:281)[73:org.springframework.osgi.core:1.2.1] > at > org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[73:org.springframework.osgi.core:1.2.1] > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[73:org.springframework.osgi.core:1.2.1] > at > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[76:org.springframework.osgi.extender:1.2.1] > at > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[76:org.springframework.osgi.extender:1.2.1] > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[73:org.springframework.osgi.core:1.2.1] > at > org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[76:org.springframework.osgi.extender:1.2.1] > at java.lang.Thread.run(Thread.java:619)[:1.6.0_06] > > Features:list > > [installed ] [2.2.4 ] karaf-framework > karaf-2.2.4[Done] > [installed ] [3.0.6.RELEASE ] spring > karaf-2.2.4[Done] > [installed ] [1.2.1 ] spring-dm > karaf-2.2.4[Done] > [installed ] [3.0.6.RELEASE ] spring-jms > karaf-2.2.4[Done] > [installed ] [3.0.6.RELEASE ] spring-tx > karaf-2.2.4[Done] > [installed ] [3.0.6.RELEASE ] spring-web > karaf-2.2.4[Done] > [installed ] [2.2.4 ] wrapper > karaf-2.2.4[Done] > [installed ] [2.2.4 ] config > karaf-2.2.4[Done] > [installed ] [7.4.5.v20110725] jetty > karaf-2.2.4[Done] > [installed ] [2.2.4 ] http > karaf-2.2.4[Done] > [installed ] [2.2.4 ] war > karaf-2.2.4[Done] > [installed ] [4.4.2 ] camel-activemq > servicemix-4.4.2[Done] > [installed ] [4.4.2 ] activemq-broker > servicemix-4.4.2[Done] > [installed ] [5.5.1 ] activemq > activemq-5.5.1[Done] > [installed ] [5.5.1 ] activemq-spring > activemq-5.5.1[Done] > [installed ] [5.5.1 ] activemq-blueprint > activemq-5.5.1[Done] > [installed ] [1.9.0 ] xml-specs-api > camel-2.8.5[Done] > [installed ] [2.8.5 ] camel > camel-2.8.5[Done] > [installed ] [2.8.5 ] camel-core > camel-2.8.5[Done] > [installed ] [2.8.5 ] camel-spring > camel-2.8.5[Done] > [installed ] [2.8.5 ] camel-blueprint > camel-2.8.5[Done] > [installed ] [2.8.5 ] camel-cxf > camel-2.8.5[Done] > [installed ] [2.8.5 ] camel-jms > camel-2.8.5[Done] > [installed ] [2.8.5 ] camel-mail > camel-2.8.5 > [installed ] [2.8.5 ] camel-quartz > camel-2.8.5 > [installed ] [2.4.6 ] cxf-specs > cxf-2.4.6 [Done] > [installed ] [2.4.6 ] cxf-jaxb > cxf-2.4.6 [Done] > [installed ] [2.4.6 ] cxf-abdera > cxf-2.4.6 [Done] > [installed ] [2.5.1_1 ] opensaml > cxf-2.4.6 [Done] > [installed ] [1.6.4 ] wss4j > cxf-2.4.6 [Done] > [installed ] [2.4.6 ] cxf-saaj-impl > cxf-2.4.6 [Done] > [installed ] [2.4.6 ] cxf-war-java5 > cxf-2.4.6 [Done] > [installed ] [2.4.6 ] cxf > cxf-2.4.6 [Done] > > OSGI: List > [ 44] [Active ] [ ] [ ] [ 60] kahadb (5.5.1) > [ 45] [Active ] [ ] [ ] [ 60] activemq-pool (5.5.1) > [ 46] [Active ] [ ] [ ] [ 60] activemq-console > (5.5.1) > [ 47] [Active ] [ ] [ ] [ 60] Apache Aries > Transaction Manager > (0.2.0.incubating) > [ 48] [Active ] [ ] [ ] [ 60] activemq-ra (5.5.1) > [ 49] [Active ] [Created ] [ ] [ 60] activemq-core (5.5.1) > Fragments: 60 > [ 50] [Active ] [Created ] [ ] [ 60] activemq-karaf (5.5.1) > [ 51] [Active ] [ ] [ ] [ 60] > geronimo-j2ee-management_1.1_spec (1.0.1) > [ 52] [Active ] [ ] [ ] [ 60] Commons Pool (1.5.4) > [ 53] [Active ] [ ] [ ] [ 60] geronimo-jms_1.1_spec > (1.1.1) > [ 54] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: commons-codec > (1.3.0.3) > [ 55] [Active ] [ ] [ ] [ 60] Commons Collections > (3.2.1) > [ 56] [Active ] [ ] [ ] [ 60] Apache ServiceMix > Bundles: velocity-1.6.2 > (1.6.2.3) > [ 57] [Active ] [ ] [ ] [ 60] Apache ServiceMix > Bundles: oro-2.0.8 (2.0.8.3) > [ 58] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: jasypt (1.6.0.1) > [ 59] [Active ] [ ] [ ] [ 60] Apache ServiceMix > Bundles: commons-lang-2.4 > (2.4.0.3) > [ 60] [Resolved ] [ ] [ ] [ 60] activemq-blueprint > (5.5.1) > Hosts: 49 > [ 61] [Active ] [Created ] [ ] [ 60] Apache XBean :: OSGI > Blueprint Namespace Handler > (3.7) > [ 62] [Active ] [ ] [ ] [ 60] Commons JEXL (2.0.1) > [ 63] [Active ] [ ] [ ] [ 60] Apache ServiceMix > Specs :: Scripting API 1.0 > (1.5.0) > [ 64] [Active ] [Created ] [ ] [ 50] activemq-broker.xml > (0.0.0) > [ 77] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: cglib > (2.1.0.3_7) > [ 78] [Active ] [ ] [ ] [ 60] activemq-spring > (5.5.1) > [ 79] [Active ] [ ] [ ] [ 60] Apache XBean :: > Spring (3.7) > [ 90] [Active ] [Created ] [ ] [ 50] camel-karaf-commands > (2.8.5) > [ 91] [Active ] [ ] [ ] [ 50] camel-core (2.8.5) > [ 92] [Active ] [ ] [ ] [ 50] Commons Management > (1.0) > [ 94] [Active ] [ ] [ ] [ 50] camel-spring (2.8.5) > [ 95] [Active ] [ ] [ ] [ 60] Jetty :: Asynchronous > HTTP Client > (7.4.5.v20110725) > [ 96] [Active ] [ ] [ ] [ 60] Jetty :: Server Core > (7.4.5.v20110725) > [ 97] [Active ] [ ] [ ] [ 60] Jetty :: Servlet > Handling (7.4.5.v20110725) > [ 98] [Active ] [ ] [ ] [ 60] Jetty :: IO Utility > (7.4.5.v20110725) > [ 99] [Active ] [ ] [ ] [ 60] Jetty :: Security > (7.4.5.v20110725) > [ 100] [Active ] [ ] [ ] [ 60] Jetty :: Http Utility > (7.4.5.v20110725) > [ 101] [Active ] [ ] [ ] [ 60] Jetty :: Continuation > (7.4.5.v20110725) > [ 102] [Active ] [ ] [ ] [ 60] Jetty :: JNDI Naming > (7.4.5.v20110725) > [ 103] [Active ] [ ] [ ] [ 60] Jetty :: Webapp > Application Support > (7.4.5.v20110725) > [ 104] [Active ] [ ] [ ] [ 60] Jetty :: Utility > Servlets and Filters > (7.4.5.v20110725) > [ 105] [Active ] [ ] [ ] [ 60] Jetty :: Plus > (7.4.5.v20110725) > [ 106] [Active ] [ ] [ ] [ 60] Jetty :: JMX > Management (7.4.5.v20110725) > [ 107] [Active ] [ ] [ ] [ 60] Jetty :: XML > utilities (7.4.5.v20110725) > [ 108] [Active ] [ ] [ ] [ 60] Jetty :: Utilities > (7.4.5.v20110725) > [ 109] [Active ] [ ] [ ] [ 60] > geronimo-servlet_2.5_spec (1.1.2) > [ 110] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > Service SPI (1.0.7) > [ 111] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - Jetty > (1.0.7) > [ 112] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - API > (1.0.7) > [ 113] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > Runtime (1.0.7) > [ 118] [Active ] [ ] [ ] [ 50] camel-jms (2.8.5) > [ 119] [Active ] [ ] [ ] [ 50] activemq-camel (5.5.1) > [ 122] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > Extender - WAR (1.0.7) > [ 123] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > FileInstall Deployer (1.0.7) > [ 124] [Active ] [ ] [ ] [ 60] OPS4J Pax Url - war > (1.2.8) > [ 125] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - > Extender - Whiteboard (1.0.7) > [ 126] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: opensaml > (2.5.1.1) > [ 127] [Active ] [ ] [ ] [ 60] Joda-Time (1.6.2) > [ 128] [Active ] [ ] [ ] [ 60] WSS4J (1.6.4) > [ 129] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: xmlsec (1.4.5.1) > [ 130] [Active ] [ ] [ ] [ 60] Axiom API (1.2.10) > [ 131] [Active ] [ ] [ ] [ 60] Abdera Parser (1.1.2) > [ 132] [Active ] [ ] [ ] [ 60] Axiom Impl (1.2.10) > [ 133] [Active ] [ ] [ ] [ 60] Abdera Extensions - > Main (1.1.2) > [ 134] [Active ] [ ] [ ] [ 60] I18N Libraries (1.1.2) > [ 135] [Active ] [ ] [ ] [ 60] Abdera Core (1.1.2) > [ 137] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: js (1.0.0.7R2_1) > [ 138] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: xmlbeans > (2.4.0.4) > [ 139] [Active ] [ ] [ ] [ 60] jettison (1.3.1) > [ 142] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: xmlresolver > (1.2.0.3) > [ 144] [Active ] [ ] [ ] [ 60] Commons Lang (2.6) > [ 146] [Active ] [ ] [ ] [ 60] Apache Neethi (3.0.1) > [ 147] [Active ] [ ] [ ] [ 60] XmlSchema Core (2.0.1) > [ 148] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: wsdl4j (1.6.2.3) > [ 149] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: jdom (1.1.0.3) > [ 150] [Active ] [Created ] [ ] [ 50] camel-cxf (2.8.5) > [ 151] [Active ] [ ] [ ] [ 50] camel-cxf-transport > (2.8.5) > [ 152] [Active ] [Created ] [ ] [ 50] camel-blueprint > (2.8.5) > [ 153] [Active ] [ ] [ ] [ 60] OPS4J Pax Web - Jsp > Support (1.0.7) > [ 156] [Active ] [Created ] [ ] [ 60] Apache Karaf :: Shell > :: Service Wrapper (2.2.4) > [ 157] [Active ] [ ] [ ] [ 60] camel-ftp (2.8.5) > [ 161] [Active ] [ ] [ ] [ 60] camel-velocity (2.8.5) > [ 162] [Active ] [ ] [ ] [ 60] camel-jaxb (2.8.5) > [ 167] [Active ] [ ] [ ] [ 60] camel-sql (2.8.5) > [ 169] [Active ] [ ] [ ] [ 60] > geronimo-j2ee-connector_1.5_spec (2.0.0) > [ 214] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: jsch (0.1.48.1) > [ 227] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: bcel (5.2.0.4) > [ 228] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: xalan (2.7.1.6) > [ 229] [Active ] [ ] [ ] [ 60] Spring JDBC > (3.0.6.RELEASE) > [ 230] [Active ] [ ] [ ] [ 60] > commons-net-2.2.0-osgi (2.2.0) > [ 231] [Active ] [ ] [ ] [ 60] Sqljdbc4-osgi (1.0.0) > [ 232] [Active ] [ ] [ ] [ 60] IBM MQ Series client > 6.0.0 OSGi bundle (1.0.0) > [ 233] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: > commons-httpclient (3.1.0.7) > [ 234] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: > commons-collections (3.2.1.3) > [ 235] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: commons-io > (1.4.0.3) > [ 236] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: commons-dbcp > (1.4.0.3) > [ 237] [Active ] [ ] [ ] [ 60] Apache ServiceMix :: > Bundles :: quartz (1.8.6.1) > [ 238] [Active ] [ ] [ ] [ 60]Hello Guide > (1.1.6) > [ 239] [Active ] [ ] [ ] [ 60] Data On-Air > (1.0.11) > [ 240] [Active ] [ ] [ ] [ 60] BC-SU (1.0.1) > [ 265] [Active ] [ ] [ ] [ 50] camel-quartz (2.8.5) > [ 269] [Active ] [ ] [ ] [ 50] camel-mail (2.8.5) > [ 279] [Active ] [ ] [ ] [ 60] Ads (1.0.31) > [ 280] [Active ] [ ] [ ] [ 60] myHealth (1.0.1) >