WebService org.xml.sax.SAXParseException: Document root element "beans",must match DOCTYPE root "nul

在往项目中添加XFire时,出现如下报错:
org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".

原因:
XFire 1.2 Core Libraries中spring-1.2.6.jar与项目中的spring2冲突.

解决:
MyEclipse6.5中
Window->Preferences->MyEclipse Enterprise Workbench->Project Capabilites->Web Services - XFire
选择spring-1.2.6.jar->Remove->OK

你可能感兴趣的:(webservice)