Giter VIP home page Giter VIP logo

Comments (6)

vhariprakash avatar vhariprakash commented on August 17, 2024 10

solved : ref : http://stackoverflow.com/questions/23011547/webservice-client-generation-error-with-jdk8
Create a file named jaxp.properties (if it doesn't exist) under /path/to/jdk1.8.0/jre/lib and then write this line in it:

javax.xml.accessExternalSchema = all

That's all. Enjoy JDK 8.

from gradle-jaxb-plugin.

Endron avatar Endron commented on August 17, 2024 1

I am not using this plugin but ran into the same problem when using the xjc ant task with gradle.
Your comment makes me believe that this plugin somehow also uses the ant task.

I fixed the problem by passing the "-disableXmlSecurity" argument.

ant.taskdef(name:'xjc', classname:'com.sun.tools.xjc.XJC2Task', classpath:configurations.generateSources.asPath)
ant.xjc(schema:'some.xsd", destdir:generatedSources, encoding:encoding, catalog:catalogFile) {
                arg(value:"-disableXmlSecurity")
            }

I hope this helps with fixing the issue.

from gradle-jaxb-plugin.

estan avatar estan commented on August 17, 2024

If somehow ANT_OPTS could be passed to the Ant task, it could probably be worked around by passing -Djavax.xml.accessExternalSchema=file, but so far I haven't found a way to do this :(

I tried both hacking the plugin to do ant.properties['env.ANT_OPTS'] = '-Djavax.xml.accessExternalSchema=file' and systemProp.javax.xml.accessExternalSchema=file in my gradle.properties.

from gradle-jaxb-plugin.

highsource avatar highsource commented on August 17, 2024

Author of the maven-jaxb2-plugin.
https://java.net/jira/browse/MAVEN_JAXB2_PLUGIN-80 is now resolved in 0.9.0. So relevant JAXP properties accessExternalSchema and accessExternalDTD can be controlled now. Further properties are out of the scope.
accessExternalSchema and accessExternalDTD can be controlled and set to "all" by default.

from gradle-jaxb-plugin.

stigkj avatar stigkj commented on August 17, 2024

Sorry for taking this long to answer, but we are not maintaining this plugin anymore. You should look at jacobono's alternative instead.

from gradle-jaxb-plugin.

estan avatar estan commented on August 17, 2024

Ah. Thanks. Right now I'm actually working on the very same product I was working on when I had this problem, almost exactly a year ago :) I'll look into jacobono's plugin. Though right now I'm not having any trouble with this one.

from gradle-jaxb-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.