jax-ws
  1. jax-ws
  2. JAX_WS-368

wsimport ant task : unable to use an episode jar with xjcarg

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.2
    • Fix Version/s: not determined
    • Component/s: wsimport
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      I can not use a jar containing a Meta-inf/sun-jaxb.episode with wsimport ant task :

      1/ if I do (ant script) :
      <wsimport>
      <xjcarg value="somejar"/>

      it generates this :

      wsimport -d classes -g -s gen\java myService.wsdl episodejar.jar

      ==> -B is missing before episodejar.jar

      2/ if i do :
      <wsimport>
      <xjcarg value="-B somejar"/>

      it generates :

      wsimport -d classes -g -s gen\java myService.wsdl episodejar.jar "-B -B
      episodejar.jar"

      => there are two -B and some quotes.

      the problem seems to be in class com.sun.tools.ws.ant.WsImport2

        Activity

        Hide
        rossgard added a comment -

        I am able to make use of a sun-jaxb.episode file by specifying -b episode-file (on classpath, no jar),
        but i am also getting the error "Schema decriptor ... in message part ... is not defined and could not be
        bound to Java". This error only applies for the bindings specified for the outermost types though...

        If remove the bindings for the elements used in the different message parts in the wsdl from the
        episode-file it works fine (it does not generate types for the other bindings specified in the episode-
        file).

        I also want wsimport to reuse the outermost types from the xsd (the ones used in the wsdl message
        parts).

        Is this related to the same issue?

        Show
        rossgard added a comment - I am able to make use of a sun-jaxb.episode file by specifying -b episode-file (on classpath, no jar), but i am also getting the error "Schema decriptor ... in message part ... is not defined and could not be bound to Java". This error only applies for the bindings specified for the outermost types though... If remove the bindings for the elements used in the different message parts in the wsdl from the episode-file it works fine (it does not generate types for the other bindings specified in the episode- file). I also want wsimport to reuse the outermost types from the xsd (the ones used in the wsdl message parts). Is this related to the same issue?
        Hide
        ramapulavarthi added a comment -

        The bug in jaxb https://jaxb.dev.java.net/issues/show_bug.cgi?id=514 is targeted
        for next release as the fix is more involved.

        Adding keyword metro2.0-waived.

        Show
        ramapulavarthi added a comment - The bug in jaxb https://jaxb.dev.java.net/issues/show_bug.cgi?id=514 is targeted for next release as the fix is more involved. Adding keyword metro2.0-waived.
        Hide
        ramapulavarthi added a comment -

        Marking this as an enhancement and not targeting this for release.

        Show
        ramapulavarthi added a comment - Marking this as an enhancement and not targeting this for release.
        Hide
        Michael Osipov added a comment -

        Any update on this? I wasted an entire day to figure out that this is actually a bug!

        Show
        Michael Osipov added a comment - Any update on this? I wasted an entire day to figure out that this is actually a bug!
        Hide
        Michael Osipov added a comment -

        Almost a year has passed and nothing from Oracle...

        Show
        Michael Osipov added a comment - Almost a year has passed and nothing from Oracle...

          People

          • Assignee:
            Unassigned
            Reporter:
            simon_lebettre
          • Votes:
            11 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

            • Created:
              Updated: