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那位高手指点一下。
org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean element mapping: name in namespace http://xfire.codehaus.org/config/1.0那位高手指点一下。
<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里
<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 也导入了
还是抱错.
<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>