SAXException thrown when loading Spring application context

239 views
Skip to first unread message

Nils Edstrom

unread,
Dec 9, 2015, 7:46:55 AM12/9/15
to ddf-users
I am getting a strange exception on starting ddf-2.8.0 from a couple of my bundles. This is the exception:

2015-12-08 09:13:19,245 | ERROR | ExtenderThread-7 | ContextLoaderListener            | BundleApplicationContextListener   50 | 100 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=gdes-oad-vm-bundlet-osgi, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 49 in XML document from URL [bundleentry://294.fwk1558712965/META-INF/spring/applicationContext.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)[93:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[93:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[93:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[93:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]

One of the bundles has been tested and is working in ddf-2.2.2. The bundle's application context includes "xmlns:cxf="http://camel.apache.org/schema/cxf", but has no direct reference to "cxf-beans".

Another of my bundles also references the "cxf" name space without any problem.

Any advice would be greatly appreciated.

Nils

Nils Edstrom

unread,
Dec 9, 2015, 8:12:39 AM12/9/15
to ddf-users
I dropped my jar files in the deploy directory of a clean install of ddf-2.8.0 and I am now getting a slightly different behavior. On starting ddf, I am getting no exceptions. However, two modules do not start as expected. If I attempt to start them from the ddf command line, I am getting the following exception:

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 103 in XML document from URL [bundleentry://383.fwk836514715/META-INF/spring/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'cxf:cxfEndpoint'.

        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)[93:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[93:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[93:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[93:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[93:org.apache.servicemix.bundles.spring-beans:3.2.11.RELEASE_1]

I have searched on the web for solutions but am not able to find anything that appears to be relevant for this case.

Any help would be greatly appreciated.

Nils

Michael Menousek

unread,
Dec 9, 2015, 10:39:31 AM12/9/15
to Nils Edstrom, ddf-users
Nils,

This indicates you have a problem with Spring DM not understanding the element "cxf:cxfEndpoint"

This appears to be an issue with Spring DM and CXF.  There may be some people in this group that have used that cxf component, but it's somewhat against the design principles of DDF since it starts a new HTTP container outside the "main" container that DDF uses (and secures).

Thanks,
Michael

--
You received this message because you are subscribed to the Google Groups "ddf-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ddf-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages