webservice 不能返回泛型接口集合List(五)

用一上午的时间验证了 webservice不能返回List类型的问题。。。关键是最开始的报错不是提示我

“该项目 is lock”  就是

找不到“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]: ”

报错:

org.codehaus.xfire.XFireRuntimeException: Cannot create mapping for java.util.List, unspecified component type for return type of method checkNdc in interface webservice.HelloWorld
 at org.codehaus.xfire.aegis.type.DefaultTypeCreator.createCollectionType(DefaultTypeCreator.java:43)
 at org.codehaus.xfire.aegis.type.java5.Java5TypeCreator.createCollectionType(Java5TypeCreator.java:139)
 at org.codehaus.xfire.aegis.type.XMLTypeCreator.createCollectionType(XMLTypeCreator.java:116)
 at org.codehaus.xfire.aegis.type.AbstractTypeCreator.createTypeForClass(AbstractTypeCreator.java:113)
 at org.codehaus.xfire.aegis.type.AbstractTypeCreator.createType(AbstractTypeCreator.java:356)
 Truncated. see log file for complete stacktrace

请阅读,转载:https://www.cnblogs.com/nyth/archive/2013/11/14/3423458.html

 

你可能感兴趣的:(Java学习框架指引,实践的那些事)