Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5701

changeType() not functioning after Ant build and Deployment

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 1.6.2
    • Fix Version/s: None
    • Component/s: deployment
    • Environment:
      Windows Server 2008 R2, Apache Tomcat 8.0, Eclipse Luna
    • Flags:
      Important

      Description

      I built a top down web service in Eclipse using Axis2 and XmlBeans. When I test the service in Eclipse it works fine, but when I do an Ant build and deploy the service in Tomcat on a remote server I have problems. Basically there is a point where I create a new XmlObject based on an autogenerated schema. I then use changetype() to change it to the correct schema type. Then I cast it to the correct object type which is extending XmlObject. This works in Eclipse, but after full deployment I get a ClassCastException because changeType() doesn't change the XmlObject to the correct Object type.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Szeth Schuyler Williams
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: