JAXB can't handle interfaces
samwun9988 Apr 3, 2011 1:13 AMHello,
Here there is anohter problem I never seen before:
DEPLOYMENTS IN ERROR:
Deployment "vfs:///usr/local/users/jboss/jboss6/server/default/deploy/HousewareEnterpriseApplication-v7.ear" is in error due to the following reason(s): com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 4 counts of IllegalAnnotationExceptions
javax.persistence.criteria.CriteriaQuery is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at javax.persistence.criteria.CriteriaQuery
at private javax.persistence.criteria.CriteriaQuery au.com.houseware.server.ejb.entity.facade.ws.jaxws_asm.FindCountByCriteria.criteria
at au.com.houseware.server.ejb.entity.facade.ws.jaxws_asm.FindCountByCriteria
javax.persistence.criteria.CriteriaQuery does not have a no-arg default constructor.
this problem is related to the following location:
at javax.persistence.criteria.CriteriaQuery
at private javax.persistence.criteria.CriteriaQuery au.com.houseware.server.ejb.entity.facade.ws.jaxws_asm.FindCountByCriteria.criteria
at au.com.houseware.server.ejb.entity.facade.ws.jaxws_asm.FindCountByCriteria
javax.persistence.Tuple is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at javax.persistence.Tuple
at private java.util.Collection au.com.houseware.server.ejb.entity.facade.ws.jaxws_asm.FindSubcategories_By_CategoryNameResponse._return
at au.com.houseware.server.ejb.entity.facade.ws.jaxws_asm.FindSubcategories_By_CategoryNameResponse
javax.persistence.Tuple does not have a no-arg default constructor.
this problem is related to the following location:
at javax.persistence.Tuple
at private java.util.Collection au.com.houseware.server.ejb.entity.facade.ws.jaxws_asm.FindSubcategories_By_CategoryNameResponse._return
at au.com.houseware.server.ejb.entity.facade.ws.jaxws_asm.FindSubcategories_By_CategoryNameResponse
I was deploying an ear file to jboss 6, but it thrown the above exception. The ear file consist of a ejb3 and war file.
What should I do to fix this error?
Very appreciate for any suggestion and help
Sam