严重: Error initializing XFireServlet.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.xfire.spring.ServiceBean' defined in class path resource [META-INF/xfire/services.xml]: Initialization of bean failed; nested exception is org.codehaus.xfire.XFireRuntimeException: Cannot create mapping for java.util.List, unspecified component type for return type of method SelectBook in interface lg.dao.BookDao
org.codehaus.xfire.XFireRuntimeException: Cannot create mapping for java.util.List, unspecified component type for return type of method SelectBook in interface lg.dao.BookDao
今天书webservice服务端的时候,发现提供的服务已经被使用了,但是出现这个错误,主要原因就是返回的response中对象里面有个list,而list对象在wsdl中并不识别,所以出的问题就是不要使用list,可以使用数组代替。