ClassCastException when get my service

  • 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().

0 votes

1 answers



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.

0 votes