Comments (6)
note:
even if I dont use the -jaxb-facets option, I got the same error:
C:\Users\Admin\Desktop\NF\KAS2.0_wsdl>C:\Users\Admin\Desktop\jaxws-ri\bin\wsimpo
rt.bat odemeAl.wsdl -b b1.xml -encoding UTF-8 -Xendorsed -Xnocompile
parsing WSDL...
Exception in thread "main" java.util.ServiceConfigurationError: com.sun.tools.xj
c.Plugin: Provider at.ac.tuwien.infosys.jaxb.WsImportFacetsPlugin not a subtype
at java.util.ServiceLoader.fail(ServiceLoader.java:214)
at java.util.ServiceLoader.access$300(ServiceLoader.java:164)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:352)
at java.util.ServiceLoader$1.next(ServiceLoader.java:428)
at com.sun.tools.xjc.Options.findServices(Options.java:957)
at com.sun.tools.xjc.Options.getAllPlugins(Options.java:374)
at com.sun.tools.xjc.reader.AbstractExtensionBindingChecker.<init>(Abstr
actExtensionBindingChecker.java:100)
at com.sun.tools.xjc.reader.ExtensionBindingChecker.<init>(ExtensionBind
ingChecker.java:81)
at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:
264)
at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.
java:347)
at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:1
28)
at com.sun.xml.xsom.impl.parser.ParserContext.<init>(ParserContext.java:
100)
at com.sun.xml.xsom.parser.XSOMParser.<init>(XSOMParser.java:110)
at com.sun.tools.xjc.ModelLoader.createXSOMParser(ModelLoader.java:437)
at com.sun.tools.xjc.ModelLoader.createXSOMParser(ModelLoader.java:445)
at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:527)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompiler
Impl.java:269)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompiler
Impl.java:95)
at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBMod
elBuilder.java:142)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WS
DLModeler.java:2298)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildMode
l(WSDLModeler.java:198)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLMo
deler.java:141)
at com.sun.tools.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.j
ava:444)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:205)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.ws.Invoker.invoke(Invoker.java:174)
at com.sun.tools.ws.WsImport.main(WsImport.java:57)
from jaxb-facets.
Thanks for reporting. This is a wsimport classpath/classloading issue, should be fixed in commit 77c5108 . New version of jar files has been pushed.
Please update all jaxb-facets code and jars to the latest version and use the provided bin/wsimport.bat file. (Then please report back your progress here.)
from jaxb-facets.
Hi,
Thanks for quick response. I modified your wsimport.bat file just a little bit, I'm using it not from maven but from Jaxws-ri donwload folder so just modified the paths etc. and I believe it worked but then I get another error:
C:\Users\Admin\Desktop\NF\KAS2.0_wsdl>C:\Users\Admin\Desktop\jaxws-ri\bin\wsimpo
rt2.bat -B-jaxb-facets odemeAl.wsdl -b b1.xml -encoding UTF-8 -Xendorsed -Xnocom
pile
parsing WSDL...
Exception in thread "main" java.lang.NullPointerException
at at.ac.tuwien.infosys.jaxb.WsImportFacetsPlugin.addXsdFacets(WsImportF
acetsPlugin.java:93)
at at.ac.tuwien.infosys.jaxb.WsImportFacetsPlugin.run(WsImportFacetsPlug
in.java:77)
at com.sun.tools.xjc.model.Model.generateCode(Model.java:294)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompiler
Impl.java:284)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompiler
Impl.java:95)
at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBMod
elBuilder.java:142)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WS
DLModeler.java:2298)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildMode
l(WSDLModeler.java:198)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLMo
deler.java:141)
at com.sun.tools.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.j
ava:444)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:205)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183)
at com.sun.tools.ws.WsImport.doMain(WsImport.java:74)
at at.ac.tuwien.infosys.jaxb.WsImport.main(WsImport.java:11)
from jaxb-facets.
ok, in this case please send me a link to the WSDL file (e.g., paste it in here: http://pastebin.com/). (Also include all necessary imported XSD files)
from jaxb-facets.
Please download the necessary files from below:
http://www.globalbilisim.com/download/kas2.0_wsdl.zip
from jaxb-facets.
Fixed in commit bb21b1d
Please re-open or create a new issue if you experience any other problems...
from jaxb-facets.
Related Issues (20)
- AnnotationLocation missing HOT 2
- compilation fails because of testutils pom HOT 1
- Adding support for assertions HOT 3
- Support for JavaEE annotations HOT 8
- Using @Documentation annotation at field level causes @XmlSchemaType to be ignored HOT 2
- @Pattern annotation does not work nicely with @XmlID and @XmlIDREF HOT 6
- WARNING: Unable to get @MinOccurs annotation from type com.sun.xml.bind.v2.model.impl.TypeRefImpl@667de82c HOT 1
- Issue with @Facets and @XmlJavaTypeAdapter HOT 2
- mvn clean install with empty repository HOT 3
- Jaxb-Facets @MaxOccurs generated XML Schema validation not working HOT 2
- Which license HOT 4
- Spring boot 1.3.1 + jaxb-facets HOT 2
- Annotation generation HOT 4
- Any plans into getting facets into JDK's JAXB? HOT 5
- Preserve annotations during schema creation HOT 3
- Working example with cxf-xjc-plugin
- appear NullPointerException HOT 1
- java.lang.NoClassDefFoundError: com/sun/tools/javac/code/Type$ClassType HOT 3
- Pushing facets support upstream HOT 5
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 jaxb-facets.