参考了官方的解决方法。来源:
https://issues.apache.org/activemq/browse/SMXCOMP-331
原来是xbean.xml的命名空间问题
I can confirm this bug on Windows too.
But I have found two workarounds:
1) Remove from declaration xmlns="http://www.springframework.org/schema/beans"
2) Declare Spring Beans namespace as xmlns:beans="http://www.springframework.org/schema/beans"
and use it like this;
<beans:bean
name="senderFileMarshaler"
class="org.apache.servicemix.components.util.SimpleFlatFileMarshaler">
<property name="fileName" ref="fileNameExpression" />
</beans:bean>