Skip to main content

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

1 reply [Last post]
uhexo
Offline
Joined: 2005-12-28
Points: 0

Hi

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?

thks

Reply viewing options

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

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