完整的错误:
javax.servlet.ServletException: Couldn't create type for property expList on class cn.gov.bjp.ceping.xfire.model.User: Cannot create mapping for java.util.List, unspecified component type for interface java.util.List org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:142) org.codehaus.xfire.spring.remoting.XFireServletControllerAdapter.handleRequest(XFireServletControllerAdapter.java:67) org.codehaus.xfire.spring.remoting.XFireExporter.handleRequest(XFireExporter.java:48) org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
在论坛上有人这么写:
如果是jdk1.5的话 直接public ArrayList
客户端:
MyTestServiceClient client = new MyTestServiceClient();
//create a default service endpoint
MyTestServicePortType myTestServicePortType = client
.getMyTestServiceHttpPort();
ArrayOfUserBean array = myTestServicePortType.custom( " ");
ArrayList
所以利用了jdk1.5特性,只是在Dojo中list所定义的get方法返回值写成:List《Object>,就解决了错误
标签: spring