Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to create JAXBContext

809840Nov 3 2010 — edited Nov 3 2010
I'm using Oracle Enterprise Pack for Eclipse and WLS 10.3.3. I'm trying to write a web service to do a simple Oracle database query using JDBC and then return the results. I'm attempting to return the result in an array. Each element of the array contains an instance of a custom class that I wrote to hold one row of the results. When I try to publish the web service I get an error "javax.xml.ws.WebServiceException: Unable to create JAXBContext".

If I change the return type of the web service to a simpler type, such as String, then I can publish it with no problem.

Is there something special I need to do when returning a complex class type, such as placing some annotations in the code?

Thank you!
Neal
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2010
Added on Nov 3 2010
7 comments
1,648 views