Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1716

wrong classpath in jaxb generation from wsdl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.0
    • Next
    • cnd - Editor
    • windows 7

    Description

      I added the plugins for 8.2 then I tried to generate classes from a wsdl (new/web service from wsdl). Every time I try to generate the stub, (or at any clean and build) I get the following exception

       

      D:\NetBeans\pagoPA\nbproject\jaxws-build.xml:23: taskdef A class needed by class com.sun.tools.ws.ant.WsImport cannot be found: com/sun/istack/tools/ProtectedTask
       using the classloader AntClassLoader[D:\Portable\netbeans\java\modules\ext\jaxws22\FastInfoset.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\gmbal-api-only.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\ha-api.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\javax.mail_1.4.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\jaxws-rt.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\saaj-impl.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\stax2-api.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\woodstox-core-asl.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\stax-ex.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\streambuffer.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\policy.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\management-api.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\jaxws-tools.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\mimepull.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\api\jaxws-api.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\api\jsr181-api.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\api\javax.annotation.jar;D:\Portable\netbeans\java\modules\ext\jaxws22\api\saaj-api.jar;D:\Portable\netbeans\ide\modules\ext\jaxb\activation.jar;D:\Portable\netbeans\ide\modules\ext\jaxb\api\jaxb-api.jar]
      BUILD FAILED (total time: 1 second)

       
      Building the same project with netbeans 8.2 works.

      I found that file

      C:\Users\mpagnoni\AppData\Roaming\NetBeans\9.0\build.properties
      has a key

      libs.jaxws21.classpath=D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\FastInfoset.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\gmbal-api-only.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\ha-api.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\javax.mail_1.4.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\jaxws-rt.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\jaxws-tools.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\management-api.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\mimepull.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\policy.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\saaj-impl.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\stax-ex.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\stax2-api.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\streambuffer.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\woodstox-core-asl.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\api\\jaxws-api.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\api\\jsr181-api.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\api\\javax.annotation.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\api\\saaj-api.jar;D:\\Portable\\netbeans\\ide\\modules\\ext\\jaxb\\activation.jar;D:\\Portable\\netbeans\\ide\\modules\\ext\\jaxb\\api
      jaxb-api.jar

      which can be changed to

      libs.jaxws21.classpath=D:\\Portable\\netbeans\\ide\\modules\\ext\\jaxb\\jaxb-impl-2.2.5-2.jar;D:\\Portable\\netbeans\\ide\\modules\\ext\\jaxb\\jaxb-xjc-2.2.5-2.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\FastInfoset.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\gmbal-api-only.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\ha-api.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\javax.mail_1.4.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\jaxws-rt.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\jaxws-tools.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\management-api.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\mimepull.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\policy.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\saaj-impl.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\stax-ex.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\stax2-api.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\streambuffer.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\woodstox-core-asl.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\api\\jaxws-api.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\api\\jsr181-api.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\api\\javax.annotation.jar;D:\\Portable\\netbeans\\java\\modules\\ext\\jaxws22\\api\\saaj-api.jar;D:\\Portable\\netbeans\\ide\\modules\\ext\\jaxb\\activation.jar;D:\\Portable\\netbeans\\ide\\modules\\ext\\jaxb\\api
      jaxb-api.jar
       
      (first two libs added at the beginning)

      fixing the issue.

      Hope this helps someone

       

      Attachments

        1. TrasmissioneTypes_v1.1.xsd
          3 kB
          marco pagnoni
        2. TrasmissioneFatture_v1.1.wsdl
          4 kB
          marco pagnoni

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marcopagn marco pagnoni
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: