web service: org.springframework.beans.factory.BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean element mapping: name in namespace http://xfire.codehaus.org/config/1.0    

    用的是SPRING2.X的,所以不认得这个标注方式,services.xml要改成:

<?xml version="1.0" encoding="UTF-8"?>
<beans>
    <service xmlns="http://xfire.codehaus.org/config/1.0">
        <name>Banking</name>
        <namespace>mybank</namespace>
        <serviceClass>com.test.example.IBankingService</serviceClass>
        <implementationClass>com.test.example.BankingService</implementationClass>
    </service>
</beans>

你可能感兴趣的:(Web,xml)