Comments (6)
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.
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.
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.
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.
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.
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)
- Do not force jaxb-xjc to be in compile configuration HOT 2
- Add feature for adding a catalog.cat HOT 1
- Create issue for xjc failing in separate compilation for packages
- Do not enable verbose mode for XJC Ant task HOT 1
- Should be possible to use XJC plugins HOT 1
- Set the encoding name for generated sources
- Release notes
- Publish a new release? HOT 1
- Questions about the "Usage" section HOT 1
- Question (2) about the usage section
- Usage
- Cannot get plugin to work
- gradle-jaxb-plugin pulls down jaxb, I want to use JDK native jaxb integration
- Dead project HOT 2
- jaxb source sets
- This plugin is broken & hangs with JDK 1.6
- Project dead confirmation
- ear
- Change the default source directory to .../xsd
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-jaxb-plugin.