Two classes have the same XML type name when deploying clien
meetoblivion Aug 4, 2009 11:22 AMThis may have more to do with how our test/dev environment is setup, but I am in the process of developing some web services to act as a facade to direct database access from our external site (mostly for writes). When I deploy both the client (war) and server (ejb jar) on the same box, I get the below errors in my stack trace:
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions Two classes have the same XML type name "{http://sweeps.services.web.coat.com/}signupProperties". Use @XmlType.name and @XmlType.namespace to assign different names to them. this problem is related to the following location: at com.coat.web.services.sweeps.SignupProperties at protected java.util.List com.coat.web.services.sweeps.SweepsSignup.properties at com.coat.web.services.sweeps.SweepsSignup this problem is related to the following location: at com.coat.web.services.sweeps.SignupProperties at public com.coat.web.services.sweeps.SignupProperties com.coat.web.services.sweeps.ObjectFactory.createSignupProperties() at com.coat.web.services.sweeps.ObjectFactory Two classes have the same XML type name "{http://sweeps.services.web.coat.com/}sweepsSignup". Use @XmlType.name and @XmlType.namespace to assign different names to them. this problem is related to the following location: at com.coat.web.services.sweeps.SweepsSignup this problem is related to the following location: at com.coat.web.services.sweeps.SweepsSignup at public com.coat.web.services.sweeps.SweepsSignup com.coat.web.services.sweeps.ObjectFactory.createSweepsSignup() at com.coat.web.services.sweeps.ObjectFactory Two classes have the same XML type name "{http://sweeps.services.web.coat.com/}SweepsException". Use @XmlType.name and @XmlType.namespace to assign different names to them. this problem is related to the following location: at com.coat.web.services.sweeps.SweepsException this problem is related to the following location: at com.coat.web.services.sweeps.SweepsException at public com.coat.web.services.sweeps.SweepsException com.coat.web.services.sweeps.ObjectFactory.createSweepsException() at com.coat.web.services.sweeps.ObjectFactory
Now, I think it's because both client and server are on the same machine. I used wsconsume to generate the WS client stubs. Is the correct work around to use a different package?