Giter Club home page Giter Club logo

Comments (6)

gokhanoner avatar gokhanoner commented on July 3, 2024

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.

whummer avatar whummer commented on July 3, 2024

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.

gokhanoner avatar gokhanoner commented on July 3, 2024

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.

whummer avatar whummer commented on July 3, 2024

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.

gokhanoner avatar gokhanoner commented on July 3, 2024

Please download the necessary files from below:
http://www.globalbilisim.com/download/kas2.0_wsdl.zip

from jaxb-facets.

whummer avatar whummer commented on July 3, 2024

Fixed in commit bb21b1d

Please re-open or create a new issue if you experience any other problems...

from jaxb-facets.

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.