Couldn't instantiate class. javax.xml.bind.JAXBElement while using custom
classes
---------------------------------------------------------------------------------
Key: XFIRE-1150
URL: http://jira.codehaus.org/browse/XFIRE-1150
Project: XFire
Issue Type: Bug
Components: JAXB 2.0
Affects Versions: 1.2.6
Reporter: Prakash C Rao
Assignee: Dan Diephouse
Fix For: 1.2.7
Attachments: xfire.zip
I'm trying to implement few samples with Xfire 1.2.6 (which is latest as of
now) and getting the below exception while returning custom classes from
service implementation.
org.codehaus.xfire.XFireRuntimeException: Could not invoke service. Nested
exception is org.codehaus.xfire.fault.XFireFault: Couldn't instantiate class.
javax.xml.bind.JAXBElement
I've downloaded xfire-distribution-1.2.6.zip and all jars within it are placed
inside the lib folder of my webapp. I've created a very simple application
which returns a custom class object in one of the service API. I'm attaching
the WSDL, service.xml & the classes I've created.
I tried calling few simple APIs which takes & return String parameters and
these APIs work but if I pass or return any custom class object then I get the
above exception.
Any help on this is really appreciated.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email