`
Sev7en_jun
  • 浏览: 1213385 次
  • 性别: Icon_minigender_1
  • 来自: 广州
博客专栏
84184fc0-d0b6-3f7f-a3f0-4202acb3caf5
Apache CXF使用s...
浏览量:109940
社区版块
存档分类
最新评论

解决:nor any of its super class is known to this context.

 
阅读更多

可以参考http://blog.csdn.net/chen_yu_ting/article/details/6606494

或者 http://learning.iteye.com/admin/blogs/1216342


一,遇到此问题是因为我直接把自定义对象放到ArrayList里面,然后返回这个ArrayList出的问题,提示说

class com.test.xxx nor any of its super class is known to this context. 按照上面连接里描述的 多创建了一个辅助类,把ArrayList封装在这个类中 返回这个封装类即可


上面是使用jdk自带的webservice api出的问题

 

二,如果是用CXF出现 nor any of its super class is known to this context,你需要指明集合里面存放的具体类型

比如说你调用webservice传的是List

1,

List list =new ArrayList();

list.add(对象A);

如果直接把list传过去就会出现以上问题

 

2,List<对象A> list =new ArrayList<对象A>();

list.add(对象A);

这样就OK了

分享到:
评论

相关推荐

    Springer Mathematical Aspects of Computer and Information Sciences

    material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    The goal of this guide is to manage this complexity by describing in detail the dos and don'ts of writing C++ code. These rules exist to keep the code base manageable while still allowing coders to ...

    A Guide to the Project Management Body of Knowledge

    In publishing and making this document available, PMI is not undertaking to render professional or other services for or on behalf of any person or entity, nor is PMI undertaking to perform any duty ...

    elliot-ANTENNA THEORY AND DESIGN Revised Edition

    This book was previously published by: Pearson Education Inc., formerly known as Prentice-Hall. Inc. No part of this publication may be reproduced. stored in a retrieval system or transmitted in any ...

    SSD7 选择题。Multiple-Choice

    (a) filling in skeleton tables of the database with examples of what is to be retrieved (b) placing SQL keywords, such as select, under the column names they want to retrieve (c) typing a ...

    a project model for the FreeBSD Project.7z

    This is synonymous with deliverable, that is defined as “any measurable, tangible, verifiable outcome, result or item that must be produced to complete a project or part of a project. Often used ...

    OOP_EN_V3_0.pdf

    Neither Schneider Electric nor any of its affiliated or subsidiary com‐ panies are responsible or liable for a misuse of the information contained herein. If you have any suggestions for ...

    BlueToolInstall

    Apart from the license rights expressly set forth in this Agreement, Broadcom does not grant and Licensee does not receive any ownership right, title or interest nor any security interest or other ...

    Supervised Descent Method and its Applications to Face Alignment

    apparent by having a quick look into any major conference in computer vision, where a significant number of papers use optimization techniques. Many important problems in computer vision such as ...

    C++_tutorial.pdf

    Any redistribution or reproduction of part or all of the content in any form is prohibited other than to print a personal copy of the entire document or download it to a local hard disk, without ...

    polycom宝利通视频会议软件3.9 2018

    The SOFTWARE PRODUCT is licensed (not sold) to you, and its use is subject to the terms of this Agreement. This is NOT a sale contract. DEFINITIONS “SOFTWARE PRODUCT” means computer software,...

    龙芯1B:NOR Flash编程烧录PMON

    龙芯1B:NOR Flash编程烧录PMON

    SMBIOS Spec 3. 2 2018

    27 party implementing such standard, whether such implementation is foreseeable or not, nor to any patent 28 owner or claimant, and shall have no liability or responsibility for costs or losses ...

    高通名詞解釋

    Not to be used, copied, reproduced in whole or in part, nor its contents revealed in any manner to others without the express written permission of Qualcomm. Qualcomm reserves the right to make ...

    piriform碎片整理大师

    - If any part of this License is found to be void and unenforceable it will not affect the validity of the remainder of this License, which shall remain valid and enforceable according to its terms. ...

    NIST SP800-51.pdf

    This document has been developed by NIST in furtherance of its statutory responsibilities (under the Computer Security Act of 1987 and the Information Technology Management Reform Act of 1996, ...

    An Introduction to Statistical Learning with Applications in R

    While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor theeditors nor the publisher can accept any legal responsibility...

    Life Cycle Assessment of Coal-fired Power Production

    Neither the United States government nor any agency thereof, nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, ...

    AWS_Security_Best_Practices

    The responsibilities and liabilities of AWS to its customers are controlled by AWS agreements, and this document is not part of, nor does it modify, any agreement between AWS and its customers.

Global site tag (gtag.js) - Google Analytics