You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Dan Powell <da...@abakas.com> on 2011/02/05 23:07:31 UTC

Schema Location for CXF SE Beans

I'm getting the following exception when adding an inInterceptors element to my CXF SE beans. Has the schema location for 2010.02 components changed?

org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
       xsi:schemaLocation="
         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
         http://servicemix.apache.org/cxfse/1.0 http://servicemix.apache.org/cxfse/1.0/servicemix-cxf-se.xsd">
  <cxfse:endpoint>
    <cxfse:pojo>
      <bean class="com.abakas.sample.SampleServiceImpl"/>
    </cxfse:pojo>
    <cxfse:inInterceptors>
      <bean class="com.abakas.sample.cxf.interceptor.SampleInterceptor"/>
    </cxfse:inInterceptors>
  </cxfse:endpoint>
  <bean class="org.apache.servicemix.common.osgi.EndpointExporter"/>
</beans>

Full stack trace:

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 17 in XML document from URL [bundle://186.0:0/META-INF/spring/beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)[61:org.springframework.beans:3.0.4.RELEASE]
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[61:org.springframework.beans:3.0.4.RELEASE]
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[61:org.springframework.beans:3.0.4.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[61:org.springframework.beans:3.0.4.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[61:org.springframework.beans:3.0.4.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[61:org.springframework.beans:3.0.4.RELEASE]
	at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)[73:org.springframework.osgi.core:1.2.0]
	at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)[73:org.springframework.osgi.core:1.2.0]
	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[63:org.springframework.context:3.0.4.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[63:org.springframework.context:3.0.4.RELEASE]
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[73:org.springframework.osgi.core:1.2.0]
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[73:org.springframework.osgi.core:1.2.0]
	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[73:org.springframework.osgi.core:1.2.0]
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[73:org.springframework.osgi.core:1.2.0]
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)[74:org.springframework.osgi.extender:1.2.0]
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)[74:org.springframework.osgi.extender:1.2.0]
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[73:org.springframework.osgi.core:1.2.0]
	at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)[74:org.springframework.osgi.extender:1.2.0]
	at java.lang.Thread.run(Thread.java:680)[:1.6.0_22]
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:233)[:]
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:169)[:]
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:420)[:]
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:354)[:]
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:455)[:]
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3220)[:]
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1844)[:]
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:743)[:]
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:414)[:]
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2769)[:]
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:662)[:]
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:154)[:]
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:525)[:]
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:853)[:]
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:782)[:]
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:157)[:]
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:273)[:]
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:322)[:]
	at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[61:org.springframework.beans:3.0.4.RELEASE]
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[61:org.springframework.beans:3.0.4.RELEASE]
	... 18 more


Re: Schema Location for CXF SE Beans

Posted by Gert Vanthienen <ge...@gmail.com>.
Dan,

Please ignore the {{ and }} before and after the XML elements -- I'm
also entering bits and pieces into JIRA and the wiki markup syntax
used there using these things to mark things as monospace font --
sorry about the confusion...

Regards,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



On Mon, Feb 7, 2011 at 3:21 AM, Gert Vanthienen
<ge...@gmail.com> wrote:
> Dan,
>
> This is caused by switching to Spring 3, which is a bit more strict in
> validating XML files than its predecessors.  In your case, I expect
> the issue can be solved by moving the {{<cxfse:inInterceptors/>}}
> element before the {{<cxf:pojo/>}} element.
>
> In the schema for this namespace, there's a sequence that lists all
> the properties known in alphabetical order (cfr.
> http://repo2.maven.org/maven2/org/apache/servicemix/servicemix-cxf-se/2011.01/servicemix-cxf-se-2011.01.xsd),
> which means that after the {{<cxfse:pojo/>}} element only
> {{<cxfse:properties/>}} or elements from a different namespace are
> being allowed.
>
> Regards,
>
> Gert Vanthienen
> ------------------------
> FuseSource
> Web: http://fusesource.com
> Blog: http://gertvanthienen.blogspot.com/
>
>
>
> On Mon, Feb 7, 2011 at 1:12 AM, Dan Powell <da...@abakas.com> wrote:
>> I've reproduced this with the cxf-wsdl-first-osgi-package example from http://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package by only adding the cxfse:inInterceptors elements to the cxfse:endpoint.  I've attached the full package to reproduce the issue here.
>>
>> Thanks!
>>
>> Dan
>>
>>
>>
>>
>> On Feb 5, 2011, at 5:07 PM, Dan Powell wrote:
>>
>>> I'm getting the following exception when adding an inInterceptors element to my CXF SE beans. Has the schema location for 2010.02 components changed?
>>>
>>> org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <beans xmlns="http://www.springframework.org/schema/beans"
>>>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>       xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>       xsi:schemaLocation="
>>>         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
>>>         http://servicemix.apache.org/cxfse/1.0 http://servicemix.apache.org/cxfse/1.0/servicemix-cxf-se.xsd">
>>>  <cxfse:endpoint>
>>>    <cxfse:pojo>
>>>      <bean class="com.abakas.sample.SampleServiceImpl"/>
>>>    </cxfse:pojo>
>>>    <cxfse:inInterceptors>
>>>      <bean class="com.abakas.sample.cxf.interceptor.SampleInterceptor"/>
>>>    </cxfse:inInterceptors>
>>>  </cxfse:endpoint>
>>>  <bean class="org.apache.servicemix.common.osgi.EndpointExporter"/>
>>> </beans>
>>>
>>> Full stack trace:
>>>
>>> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 17 in XML document from URL [bundle://186.0:0/META-INF/spring/beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
>>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[63:org.springframework.context:3.0.4.RELEASE]
>>>       at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[63:org.springframework.context:3.0.4.RELEASE]
>>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)[74:org.springframework.osgi.extender:1.2.0]
>>>       at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)[74:org.springframework.osgi.extender:1.2.0]
>>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)[74:org.springframework.osgi.extender:1.2.0]
>>>       at java.lang.Thread.run(Thread.java:680)[:1.6.0_22]
>>> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
>>>       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:233)[:]
>>>       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:169)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:420)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:354)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:455)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3220)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1844)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:743)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:414)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2769)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:662)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:154)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:525)[:]
>>>       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:853)[:]
>>>       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:782)[:]
>>>       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:157)[:]
>>>       at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:273)[:]
>>>       at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:322)[:]
>>>       at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       ... 18 more
>>>
>>
>>
>>
>

Re: Schema Location for CXF SE Beans

Posted by Gert Vanthienen <ge...@gmail.com>.
Dan,

Glad to hear it's fixed for you -- I've updated
https://cwiki.apache.org/confluence/display/SM/servicemix-cxf-se and
this change should get propagated to the main site in an hour or two.

Thanks,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



On Mon, Feb 7, 2011 at 3:35 AM, Dan Powell <da...@abakas.com> wrote:
> Perfect, thank you so much - I've confirmed this fix.
>
> You probably want to update the configuration example at the bottom of http://servicemix.apache.org/servicemix-cxf-se.html as well.
>
> Dan
>
> On Feb 6, 2011, at 9:21 PM, Gert Vanthienen wrote:
>
>> Dan,
>>
>> This is caused by switching to Spring 3, which is a bit more strict in
>> validating XML files than its predecessors.  In your case, I expect
>> the issue can be solved by moving the {{<cxfse:inInterceptors/>}}
>> element before the {{<cxf:pojo/>}} element.
>>
>> In the schema for this namespace, there's a sequence that lists all
>> the properties known in alphabetical order (cfr.
>> http://repo2.maven.org/maven2/org/apache/servicemix/servicemix-cxf-se/2011.01/servicemix-cxf-se-2011.01.xsd),
>> which means that after the {{<cxfse:pojo/>}} element only
>> {{<cxfse:properties/>}} or elements from a different namespace are
>> being allowed.
>>
>> Regards,
>>
>> Gert Vanthienen
>> ------------------------
>> FuseSource
>> Web: http://fusesource.com
>> Blog: http://gertvanthienen.blogspot.com/
>>
>>
>>
>> On Mon, Feb 7, 2011 at 1:12 AM, Dan Powell <da...@abakas.com> wrote:
>>> I've reproduced this with the cxf-wsdl-first-osgi-package example from http://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package by only adding the cxfse:inInterceptors elements to the cxfse:endpoint.  I've attached the full package to reproduce the issue here.
>>>
>>> Thanks!
>>>
>>> Dan
>>>
>>>
>>>
>>>
>>> On Feb 5, 2011, at 5:07 PM, Dan Powell wrote:
>>>
>>>> I'm getting the following exception when adding an inInterceptors element to my CXF SE beans. Has the schema location for 2010.02 components changed?
>>>>
>>>> org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <beans xmlns="http://www.springframework.org/schema/beans"
>>>>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>       xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>>       xsi:schemaLocation="
>>>>         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
>>>>         http://servicemix.apache.org/cxfse/1.0 http://servicemix.apache.org/cxfse/1.0/servicemix-cxf-se.xsd">
>>>>  <cxfse:endpoint>
>>>>    <cxfse:pojo>
>>>>      <bean class="com.abakas.sample.SampleServiceImpl"/>
>>>>    </cxfse:pojo>
>>>>    <cxfse:inInterceptors>
>>>>      <bean class="com.abakas.sample.cxf.interceptor.SampleInterceptor"/>
>>>>    </cxfse:inInterceptors>
>>>>  </cxfse:endpoint>
>>>>  <bean class="org.apache.servicemix.common.osgi.EndpointExporter"/>
>>>> </beans>
>>>>
>>>> Full stack trace:
>>>>
>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 17 in XML document from URL [bundle://186.0:0/META-INF/spring/beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
>>>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)[61:org.springframework.beans:3.0.4.RELEASE]
>>>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[61:org.springframework.beans:3.0.4.RELEASE]
>>>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[61:org.springframework.beans:3.0.4.RELEASE]
>>>>       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[61:org.springframework.beans:3.0.4.RELEASE]
>>>>       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[61:org.springframework.beans:3.0.4.RELEASE]
>>>>       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[61:org.springframework.beans:3.0.4.RELEASE]
>>>>       at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)[73:org.springframework.osgi.core:1.2.0]
>>>>       at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)[73:org.springframework.osgi.core:1.2.0]
>>>>       at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[63:org.springframework.context:3.0.4.RELEASE]
>>>>       at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[63:org.springframework.context:3.0.4.RELEASE]
>>>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[73:org.springframework.osgi.core:1.2.0]
>>>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[73:org.springframework.osgi.core:1.2.0]
>>>>       at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[73:org.springframework.osgi.core:1.2.0]
>>>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[73:org.springframework.osgi.core:1.2.0]
>>>>       at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)[74:org.springframework.osgi.extender:1.2.0]
>>>>       at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)[74:org.springframework.osgi.extender:1.2.0]
>>>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[73:org.springframework.osgi.core:1.2.0]
>>>>       at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)[74:org.springframework.osgi.extender:1.2.0]
>>>>       at java.lang.Thread.run(Thread.java:680)[:1.6.0_22]
>>>> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
>>>>       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:233)[:]
>>>>       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:169)[:]
>>>>       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:420)[:]
>>>>       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:354)[:]
>>>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:455)[:]
>>>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3220)[:]
>>>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1844)[:]
>>>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:743)[:]
>>>>       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:414)[:]
>>>>       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2769)[:]
>>>>       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:662)[:]
>>>>       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:154)[:]
>>>>       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:525)[:]
>>>>       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:853)[:]
>>>>       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:782)[:]
>>>>       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:157)[:]
>>>>       at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:273)[:]
>>>>       at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:322)[:]
>>>>       at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[61:org.springframework.beans:3.0.4.RELEASE]
>>>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[61:org.springframework.beans:3.0.4.RELEASE]
>>>>       ... 18 more
>>>>
>>>
>>>
>>>
>
>

Re: Schema Location for CXF SE Beans

Posted by Dan Powell <da...@abakas.com>.
Perfect, thank you so much - I've confirmed this fix.

You probably want to update the configuration example at the bottom of http://servicemix.apache.org/servicemix-cxf-se.html as well.

Dan

On Feb 6, 2011, at 9:21 PM, Gert Vanthienen wrote:

> Dan,
> 
> This is caused by switching to Spring 3, which is a bit more strict in
> validating XML files than its predecessors.  In your case, I expect
> the issue can be solved by moving the {{<cxfse:inInterceptors/>}}
> element before the {{<cxf:pojo/>}} element.
> 
> In the schema for this namespace, there's a sequence that lists all
> the properties known in alphabetical order (cfr.
> http://repo2.maven.org/maven2/org/apache/servicemix/servicemix-cxf-se/2011.01/servicemix-cxf-se-2011.01.xsd),
> which means that after the {{<cxfse:pojo/>}} element only
> {{<cxfse:properties/>}} or elements from a different namespace are
> being allowed.
> 
> Regards,
> 
> Gert Vanthienen
> ------------------------
> FuseSource
> Web: http://fusesource.com
> Blog: http://gertvanthienen.blogspot.com/
> 
> 
> 
> On Mon, Feb 7, 2011 at 1:12 AM, Dan Powell <da...@abakas.com> wrote:
>> I've reproduced this with the cxf-wsdl-first-osgi-package example from http://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package by only adding the cxfse:inInterceptors elements to the cxfse:endpoint.  I've attached the full package to reproduce the issue here.
>> 
>> Thanks!
>> 
>> Dan
>> 
>> 
>> 
>> 
>> On Feb 5, 2011, at 5:07 PM, Dan Powell wrote:
>> 
>>> I'm getting the following exception when adding an inInterceptors element to my CXF SE beans. Has the schema location for 2010.02 components changed?
>>> 
>>> org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <beans xmlns="http://www.springframework.org/schema/beans"
>>>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>       xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>>       xsi:schemaLocation="
>>>         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
>>>         http://servicemix.apache.org/cxfse/1.0 http://servicemix.apache.org/cxfse/1.0/servicemix-cxf-se.xsd">
>>>  <cxfse:endpoint>
>>>    <cxfse:pojo>
>>>      <bean class="com.abakas.sample.SampleServiceImpl"/>
>>>    </cxfse:pojo>
>>>    <cxfse:inInterceptors>
>>>      <bean class="com.abakas.sample.cxf.interceptor.SampleInterceptor"/>
>>>    </cxfse:inInterceptors>
>>>  </cxfse:endpoint>
>>>  <bean class="org.apache.servicemix.common.osgi.EndpointExporter"/>
>>> </beans>
>>> 
>>> Full stack trace:
>>> 
>>> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 17 in XML document from URL [bundle://186.0:0/META-INF/spring/beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
>>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[63:org.springframework.context:3.0.4.RELEASE]
>>>       at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[63:org.springframework.context:3.0.4.RELEASE]
>>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)[74:org.springframework.osgi.extender:1.2.0]
>>>       at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)[74:org.springframework.osgi.extender:1.2.0]
>>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[73:org.springframework.osgi.core:1.2.0]
>>>       at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)[74:org.springframework.osgi.extender:1.2.0]
>>>       at java.lang.Thread.run(Thread.java:680)[:1.6.0_22]
>>> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
>>>       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:233)[:]
>>>       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:169)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:420)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:354)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:455)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3220)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1844)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:743)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:414)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2769)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:662)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:154)[:]
>>>       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:525)[:]
>>>       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:853)[:]
>>>       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:782)[:]
>>>       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:157)[:]
>>>       at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:273)[:]
>>>       at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:322)[:]
>>>       at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[61:org.springframework.beans:3.0.4.RELEASE]
>>>       ... 18 more
>>> 
>> 
>> 
>> 


Re: Schema Location for CXF SE Beans

Posted by Gert Vanthienen <ge...@gmail.com>.
Dan,

This is caused by switching to Spring 3, which is a bit more strict in
validating XML files than its predecessors.  In your case, I expect
the issue can be solved by moving the {{<cxfse:inInterceptors/>}}
element before the {{<cxf:pojo/>}} element.

In the schema for this namespace, there's a sequence that lists all
the properties known in alphabetical order (cfr.
http://repo2.maven.org/maven2/org/apache/servicemix/servicemix-cxf-se/2011.01/servicemix-cxf-se-2011.01.xsd),
which means that after the {{<cxfse:pojo/>}} element only
{{<cxfse:properties/>}} or elements from a different namespace are
being allowed.

Regards,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



On Mon, Feb 7, 2011 at 1:12 AM, Dan Powell <da...@abakas.com> wrote:
> I've reproduced this with the cxf-wsdl-first-osgi-package example from http://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package by only adding the cxfse:inInterceptors elements to the cxfse:endpoint.  I've attached the full package to reproduce the issue here.
>
> Thanks!
>
> Dan
>
>
>
>
> On Feb 5, 2011, at 5:07 PM, Dan Powell wrote:
>
>> I'm getting the following exception when adding an inInterceptors element to my CXF SE beans. Has the schema location for 2010.02 components changed?
>>
>> org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans xmlns="http://www.springframework.org/schema/beans"
>>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>       xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0"
>>       xsi:schemaLocation="
>>         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
>>         http://servicemix.apache.org/cxfse/1.0 http://servicemix.apache.org/cxfse/1.0/servicemix-cxf-se.xsd">
>>  <cxfse:endpoint>
>>    <cxfse:pojo>
>>      <bean class="com.abakas.sample.SampleServiceImpl"/>
>>    </cxfse:pojo>
>>    <cxfse:inInterceptors>
>>      <bean class="com.abakas.sample.cxf.interceptor.SampleInterceptor"/>
>>    </cxfse:inInterceptors>
>>  </cxfse:endpoint>
>>  <bean class="org.apache.servicemix.common.osgi.EndpointExporter"/>
>> </beans>
>>
>> Full stack trace:
>>
>> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 17 in XML document from URL [bundle://186.0:0/META-INF/spring/beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)[61:org.springframework.beans:3.0.4.RELEASE]
>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[61:org.springframework.beans:3.0.4.RELEASE]
>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[61:org.springframework.beans:3.0.4.RELEASE]
>>       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[61:org.springframework.beans:3.0.4.RELEASE]
>>       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[61:org.springframework.beans:3.0.4.RELEASE]
>>       at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[61:org.springframework.beans:3.0.4.RELEASE]
>>       at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176)[73:org.springframework.osgi.core:1.2.0]
>>       at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142)[73:org.springframework.osgi.core:1.2.0]
>>       at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[63:org.springframework.context:3.0.4.RELEASE]
>>       at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[63:org.springframework.context:3.0.4.RELEASE]
>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[73:org.springframework.osgi.core:1.2.0]
>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[73:org.springframework.osgi.core:1.2.0]
>>       at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[73:org.springframework.osgi.core:1.2.0]
>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[73:org.springframework.osgi.core:1.2.0]
>>       at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)[74:org.springframework.osgi.extender:1.2.0]
>>       at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)[74:org.springframework.osgi.extender:1.2.0]
>>       at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[73:org.springframework.osgi.core:1.2.0]
>>       at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)[74:org.springframework.osgi.extender:1.2.0]
>>       at java.lang.Thread.run(Thread.java:680)[:1.6.0_22]
>> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cxfse:inInterceptors'. One of '{"http://servicemix.apache.org/cxfse/1.0":properties, WC[##other:"http://servicemix.apache.org/cxfse/1.0"]}' is expected.
>>       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:233)[:]
>>       at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:169)[:]
>>       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:420)[:]
>>       at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:354)[:]
>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:455)[:]
>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3220)[:]
>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1844)[:]
>>       at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:743)[:]
>>       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:414)[:]
>>       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2769)[:]
>>       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:662)[:]
>>       at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:154)[:]
>>       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:525)[:]
>>       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:853)[:]
>>       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:782)[:]
>>       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:157)[:]
>>       at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:273)[:]
>>       at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:322)[:]
>>       at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[61:org.springframework.beans:3.0.4.RELEASE]
>>       at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[61:org.springframework.beans:3.0.4.RELEASE]
>>       ... 18 more
>>
>
>
>

Re: Schema Location for CXF SE Beans

Posted by Dan Powell <da...@abakas.com>.
I've reproduced this with the cxf-wsdl-first-osgi-package example from http://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package by only adding the cxfse:inInterceptors elements to the cxfse:endpoint.  I've attached the full package to reproduce the issue here.

Thanks!

Dan