Hi, Does those separate spring files have dependency relationship? If so, does you import basic one from the one which depend on it? ------------- Freeman Fang
Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: http://weibo.com/u/1473905042 On 2012-9-26, at 下午11:47, anton_dak wrote: > Hi all, > > I have a project with several modules and it works fine if I hot deploy my > bundles every time. > But if I restart ServiceMix on my Linux server I run into exceptions which > belongs to my module with the cxf bean endpoints. After restart, the bundle > is "active" but my cxf-bean routes are not deployed. The web services are > not invokable. If I refresh my project bundles the web services are running > again. > I stop with osgi:shutdown and start over the console with "./servicemix > server &'" > > On my local windows machine I have no problems with restarting. > > The Exception is: > > 16:47:01,313 | ERROR | ExtenderThread-2 | ContextLoaderListener | > 76 - org.springframework.osgi.extender - 1.2.1 | Application context refresh > failed (OsgiBundleXmlApplicationContext(bundle=myapp-consumer-layer, > config=osgibundle:/META-INF/spring/*.xml)) > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line > 49 in XML document from URL > [bundle://290.0:0/META-INF/spring/consumer-test-routes.xml] is invalid; > nested exception is org.xml.sax.SAXParseException: src-resolve: Cannot > resolve the name 'cxf-beans:beanAttributes' to a(n) 'attribute group' > component. > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)[66:org.springframework.beans:3.0.6.RELEASE] > > > I have found out that if I configure all my cxf endpoints in one file the > exception disappers and everything works fine. But If I confige the cxf > endpoints in two files within the same module I get the errors described > above. > > Best regards > > > > > > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/SMX-4-4-0-Exception-for-cxf-bean-routes-after-smx-restart-tp5714526.html > Sent from the ServiceMix - User mailing list archive at Nabble.com.
