In my project i have several maven dependencies. Among one of springContext.xml loads spring web service bean and it loads JAXBContext. It fails with below error-
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
Two classes have the same XML type name
My question is why this code works fine in tomcat server environment and fails in testcase.
Any pointer or hint will be greatly helpful.
Note: There is a limitation to change java code or jaxb.properties because this code is auto-generated from xsd files.
No comments:
Post a Comment