简体   繁体   中英

org.apache.axis2.AxisFault: Mapping qname not fond for the package: org.hibernate.collection

I have one set(java collection) in my POJO and this POJO is mapped in hbm file. when i call my web service, it will through following error org.apache.axis2.AxisFault: Mapping qname not fond for the package: org.hibernate.collection

1) Actually, the return type of the Method of Web service should be non-generic.

it should not be Object , or just a List...

so , return a specific Person class object ..if one object of Person class need to return or if list of object is there.....use... list as List

do change....and enjoy....!!!!!

2) This exception can also be there Because of the Mapping that is been Done... Your Database table contain record that have not been mapped (just simply inserted..) delete them

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM