手机版
你好,游客 登录 注册
背景:
阅读新闻

Java 8 中使用Ant的 Wsimport 任务

[日期:2014-06-01] 来源:Linux社区  作者:gavincook [字体:大 中 小]

Java 8 中使用Ant的 Wsimport 任务

    <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
      <classpath refid="metro.classpath"/>
    </taskdef>

在使用ant构建时,抛出异常:

java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: ... schema_reference:
Failed to read schema document 'xjc.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property.

解决办法: 在 path/to/jdk8/jre/lib下面添加一个jaxp.properties的文件,内容为:

javax.xml.accessExternalSchema = all

Java 8 中 HashMap 的性能提升 http://www.linuxidc.com/Linux/2014-04/100868.htm

Java 8 的 Nashorn 引擎 http://www.linuxidc.com/Linux/2014-03/98880.htm

Java 8简明教程 http://www.linuxidc.com/Linux/2014-03/98754.htm

Apache Ant 的详细介绍下载见 http://www.linuxidc.com/Linux/2013-08/88313.htm

Android 编译工具 Ant http://www.linuxidc.com/Linux/2013-05/84490.htm

Apache Ant 的详细介绍:请点这里
Apache Ant 的下载地址:请点这里

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-06/102557.htm

linux
相关资讯       Java 8  Wsimport 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款