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

解决: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了

分享到:
评论

相关推荐

    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 ...

    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 ...

    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 ...

    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 ...

    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 ...

    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 ...

    The Princeton Companion To Mathematics

    Pure Mathematics is the class of all propositions of the form “p implies q,” where p and q are propositions containing one or more variables, the same in the two propositions, and neither p nor q ...

    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 ...

    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,...

    2009 达内Unix学习笔记

    集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...

    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, ...

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

    龙芯1B:NOR Flash编程烧录PMON 龙芯1B NOR Flash编程烧录PMON是将PMON烧录到 NOR Flash芯片中,以便于龙芯1B的正常工作。本文将详细介绍龙芯1B NOR Flash编程烧录PMON的步骤和注意事项。 龙芯1B NOR Flash编程...

    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...

    .VMware.vSphere.5.x.Datacenter.Design.Cookbook.Jan.2014

    Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has...

    2021年中考英语句型知识点汇总-中考英语必考知识点.pdf

    3. Neither...nor...:既不...也不... 4. A kind of:一种... 5. Lot of/lots of:很多。 七、特殊用法及短语 1. Take a seat:请坐。 2. Home cooking:家常菜。 3. Be famous for:因...而出名。 4. On one’s ...

Global site tag (gtag.js) - Google Analytics