[jboss-user] [JBossWS] - Re: WebServiceContext is an interface and JaxB can't handle
do-not-reply at jboss.com
Thu Apr 17 09:19:50 EDT 2008
I guess you found your answer one year ago, but posting it as it appears as one of the first results when you google "JAXB can't handle interfaces".
It can occur when you try to marshall/unmarshall with Java classes containing members that are not declared static, and which (or one of their own members) don't have a non-arg constructor. For example a logger, or a JAXB Marshaller object that has a ValidationEventHandler with no non-arg constructor. Then JAXB tries to marshall/unmarshall them and fails with the above error message.
Just set them as 'static' and the problem should go.
If it doesn't resolve your problem, it can be more tricky with concerns about your web service document style. Take a look here:
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144846#4144846
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144846
More information about the jboss-user