Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4128

Code Gen plugin fails silently when generated classes have name collisions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.2
    • 2.3.10, 2.4.7, 2.5.3, 2.6
    • Build system
    • None
    • Windows / Mac (Case insensitive)

    • Unknown

    Description

      When executing a wsdl2java call using a WSDL which has a Port Type with the same name as a Message element, the classes for the Message or Clients are not created correctly.

      This only happens when the PortType name contains underscores and different case, a direct name match allows discovery of collisions and appropriate name overriding.

      The pom & wsdl test cases are attached. When asked on the users mailing list, this was the result of a command executed:

      wsimport -keep recipeservice.wsdl

      Generating code...

      [ERROR] Could not generate SEI, class: edu.umkc.cse.cs5551.ws.CREATERECIPE already exists. Rename wsdl:portType "

      {http://ws.cs5551.cse.umkc.edu/}

      CREATE_RECIPE" using JAX-WS customization
      line 35 of file:/C:/testservice/src/main/resources/recipeservice.wsdl

      Attachments

        1. pom.xml
          3 kB
          Bryan Stopp
        2. recipeservice.wsdl
          3 kB
          Bryan Stopp

        Activity

          People

            ffang Freeman Yue Fang
            bstopp Bryan Stopp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: