tomcat 启动后,再IE里输入 http://127.0.0.1:8088/xfire/services 包一下错误。
org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean element mapping: name in namespace http://xfire.codehaus.org/config/1.0那位高手指点一下。

解决方案 »

  1.   

    你用的是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>标签要写到service里不是写在beans里
      

  2.   

    <?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>和
    <?xml version="1.0" encoding="UTF-8"?>
    <beans  xmlns="http://xfire.codehaus.org/config/1.0" >
        <service>
            <name>Banking</name>
            <namespace>mybank</namespace>
            <serviceClass>com.test.example.IBankingService</serviceClass> 
            <implementationClass>com.test.example.BankingService</implementationClass>
        </service>
    </beans>
    都式过了. 
    xalan.jar 也导入了
    还是抱错.
      

  3.   

    <?xml version="1.0" encoding="UTF-8"?>
    <beans>
        <service xmlns="http://xfire.codehaus.org/config/1.0"
            xmlns:s="http://www.springframework.org/schema/beans"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
           <name>Banking </name>
            <namespace>mybank </namespace>
            <serviceClass>com.test.example.IBankingService </serviceClass>
            <implementationClass>com.test.example.BankingService </implementationClass> 
        </service>
    </beans>