Skip to main content

How to fix this exception "cannot be cast to JAXBElement"

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2005-12-28


Firstly, I don't know if I'm sending a email into right forum...

I'm doing "Java EE 7 Hands-on with GlassFish 4 Open Source Edition" and on the point 6 "View and Delete Movie", I'm getting this exception:

Caused by: java.lang.ClassCastException: org.glassfish.movieplex7.entities.Movie cannot be cast to javax.xml.bind.JAXBElement

Any suggestion how can I fix this exception?


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2010-10-28

Hi. I'm having the same issue, have you found how to solve it? Thanks.