webservice接口返回类型为List,
相对应的aegis.xml文件要如何配置,假如List中是存放String类型的。
我客户端和服务端都是这样配的,
<?xml version="1.0" encoding="UTF-8" ?>
<mappings>
   <mapping>
       <method name="getCustomers">
           <return-type componentType="java.lang.String"/>
       </method>
   
   </mapping></mappings>但是就报错:
信息: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@102799c: defining beans [userInfoService,testService,customerDao,customerTest]; root of factory hierarchy

解决方案 »

  1.   

    Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerDao' defined in file [D:\J2EE lianxi\springxfireclt1\bin\resource\applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/jaxen/BaseXPath
    Caused by: java.lang.NoClassDefFoundError: org/jaxen/BaseXPath
    还有这个错
      

  2.   

    如果我客服端没配置aegis.xml文件,就报错如下:Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerDao' defined in file [D:\J2EE lianxi\springxfireclt1\bin\resource\applicationContext.xml]: Invocation of init method failed; nested exception is org.codehaus.xfire.XFireRuntimeException: Cannot create mapping for java.util.List, unspecified component type for return type of method getCustomers in interface com.test.service.ICustomerDao
    Caused by: org.codehaus.xfire.XFireRuntimeException: Cannot create mapping for java.util.List, unspecified component type for return type of method getCustomers in interface com.test.service.ICustomerDao
      

  3.   

    这是你spring报的错,根你的webservice都没关系!
      

  4.   

    看看你的JDK是不是1.5版本。如果是要使用泛型。