Unrecognized xbean element mapping: services in namespace http://xfire.codehaus.org/config/1.0

啓動服務:

Unrecognized xbean element mapping: services in namespace : http://xfire.codehaus.org/config/1.0

 

原來是這樣:

 

<beans xmlns="http://xfire.codehaus.org/config/1.0">
 <service >
  <name>smsservice</name>
  <serviceClass>com.smsweb.www.webservice.ISmsService</serviceClass>
  <implementationClass>com.smsweb.www.webservice.impl.SmsServiceImpl</implementationClass>
  <style>wrapped</style>
  <use>literal</use>
  <scope>application</scope>
 </service>

 

改成這樣:就可以了

<beans>

 <service  xmlns="http://xfire.codehaus.org/config/1.0">
  <name>smsservice</name>
  <serviceClass>com.smsweb.www.webservice.ISmsService</serviceClass>
  <implementationClass>com.smsweb.www.webservice.impl.SmsServiceImpl</implementationClass>
  <style>wrapped</style>
  <use>literal</use>
  <scope>application</scope>
 </service>

 

因爲當前用的sprint的,不認得這個標註方式。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章