cancel
Showing results for 
Search instead for 
Did you mean: 

ClassCastException when get my service

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator
  • I create a Nuxeo project through Nuxeo IDE.
  • I start my server and add my project into the deployment configuration
  • I synchronize

Problem: When I my code try to fetch the service I have a ClassCastException on the adapter.cast().

1 ACCEPTED ANSWER

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

The problem was coming from a fact that I removed the Nuxeo Nature to my project and I add it after. But In my project contains Seam component. So my code was deployed twice => 2 versions of all classes of my project.

So I had to remove again the Nuxeo Nature to my project and add Nuxeo Seam Project Nature.

View answer in original post

1 REPLY 1

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

The problem was coming from a fact that I removed the Nuxeo Nature to my project and I add it after. But In my project contains Seam component. So my code was deployed twice => 2 versions of all classes of my project.

So I had to remove again the Nuxeo Nature to my project and add Nuxeo Seam Project Nature.