Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Incomplete
-
1.6.2
-
None
-
Windows Server 2008 R2, Apache Tomcat 8.0, Eclipse Luna
-
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.