`
xp9802
  • 浏览: 1182914 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

WSDLToJava Error: Thrown by JAXB : A class

 
阅读更多
I was trying to consume a web service, creating the Java classes using Apache CXF and the command line wsdl2java tool

Introduction

I was trying to consume a web service, creating the Java classes using Apache CXF and the command line wsdl2java tool.

Error

WSDLToJava Error: Thrown by JAXB : A class/interface with the same name "*************" is already in use. Use a class customization to resolve this conflict.

org.apache.cxf.tools.common.ToolException: Thrown by JAXB : A class/interface with the same name "*************" is already in use. Use a class customization to resolve this conflict.

Solution

You can create a class customization binding to resolve this issue or just use the autoNameResolution flag:

Option A

wsdl2java -autoNameResolution http://api.yourwebservice.com/yourWebService.wsdl
分享到:
评论

相关推荐

    Java™ Puzzlers: Traps, Pitfalls, and Corner Cases.chm

    Puzzle 42: Thrown for a Loop Puzzle 43: Exceptionally Unsafe Puzzle 44: Cutting Class Puzzle 45: Exhausting Workout Chapter 6. Classy Puzzlers Puzzle 46: The Case of the Confusing Constructor Puzzle ...

    完美解决ajax跨域请求下parsererror的错误

    ajax请求报parsererror错误是很宽泛的概念,很多情况下都报这个错, 在很多时候,即使ajax提交、返回都正常 ...error:function(XMLHttpRequest, textStatus, errorThrown){ $("div").html(textStatus); $("div

    linux课件附习题讲解及试题

    linux课件附习题讲解、复习题及模拟试题

    nmflib:非负矩阵分解和 numpy 中的一些变体

    欢迎来到 NMFLIB NMFLIB 是轻量级库的早期版本,包括非负矩阵分解的不同实现和变体,使用python 、numpy、scipy 和来自 scikit learn 的一些组件构建。 该库的主要应用是集群。 目前,该库包括以下初始实现: ...

    JSP Simple Examples

    By using this method we can get more information about the error process if we print a stack trace from the exception. Runtime Errors Errors are arised when there is any logic problem with the ...

    设置默认Ajax操作cache and error

    代码如下: // 设置Ajax操作的默认设置 $.ajaxSetup({ cache: false, error: function (XMLHttpRequest, textStatus, errorThrown) { if( typeof(errorThrown) != “undefined” ) $.messager.alert(g_...

    Java解惑(谜题)CHM中英文双版本

    Puzzle 42: Thrown for a Loop Puzzle 43: Exceptionally Unsafe Puzzle 44: Cutting Class Puzzle 45: Exhausting Workout Chapter 6. Classy Puzzlers Puzzle 46: The Case of the Confusing ...

    hive建表报错.md

    今天更新hive版本的时候,把关联的数据库删掉了,重新生成,之后出现MetaException(message:An exception was thrown while adding/validating class(es) : Column length too big for column 'PARAM_VALUE' (max = ...

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

    How can we use a class Foo in a header file without access to its definition? We can declare data members of type Foo* or Foo&. We can declare (but not define) functions with arguments, and/or ...

    解决JS浮点数运算出现Bug的方法

    解决JS浮点数运算出现Bug的方法,需要的朋友可以参考一下

    Effective Java 3rd edition(Effective Java第三版英文原版)附第二版

    Item 74: Document all exceptions thrown by each method Item 75: Include failure-capture information in detail messages Item 76: Strive for failure atomicity Item 77: Don’t ignore exceptions 11 ...

    借助Ehcache缓存框架实现对页面的缓存Demo

    The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. ...

    TransformerFactoryConfigurationError.rar_Thrown

    Thrown when a problem with configuration with the Transformer Factories exists.

    upload-download-Demo.rar

    error: function (XMLHttpRequest, textStatus, errorThrown) { if (XMLHttpRequest.responseText == "") { alert("请求超时,请检查网络!", { icon: 2 }); } else { alert(XMLHttpRequest.statusText, { icon: ...

    微软内部资料-SQL性能优化3

    To support SERIALIZABLE transaction semantics, SQL Server needs to lock sets of rows specified by a predicate, such as WHERE salary BETWEEN 30000 AND 50000 SQL Server needs to lock data that does ...

    Ajax长连接项目案例

    所谓的长连接,就是不断去发送请求,把请求阻塞在服务器端,每次超过请求时间就去重新发送请求,保持连接,随时获取服务器端的响应的数据 项目案例... }, error:function(XMLHttpRequest, textStatus, errorThrown){ co

    UnsupportedAddressTypeException.rar_Thrown

    An UnsupportedAddressTypeException is thrown when connecting or binding to an unsupported address type.

    findbug 常见异常处理

    Should be a static inner class 描述:应该是静态内部类; 处理方式: 增加static修饰符使其成为静态内部类; Private method is never called 描述:私有方法没有被调用; 处理方式:考虑将其注释掉;

    Node-restrict.zip

     Exception thrown  child_process.spawn('grep', ['ssh']); } catch (e) {  //this will throw an error  //[Error: Function call spawn() is prohibited in this environment.]  console....

    Test_const_16.rar_Thrown

    An exception thrown during packaging of an APK file.

Global site tag (gtag.js) - Google Analytics