I\'m trying to run j2EE project on external server. Project was made in NetBeans (6.7.1) and when I run it from there, everything\'s going fine (I run it on GlassFish v3 server)
In my case the reason was completely different.
I copied a class including serialVersionUID field:
private static final long serialVersionUID = 5443351151396868724L;
so I had two different classes and objects with the same serialVersionUID and this was the clue of the problem.
I cleaned all my project the websphere republished the ear automatically. After that the application was working.
Please you check your war file and see if your classes are under WEB-INF/classes folder. I ran into the same problem and found out there are no class files WEB-INF/classes folder.
Had the same issue. Problem was wrong import. Instead of javax.enterprise.context.SessionScoped, I had javax.faces.bean.SessionScoped which didn't work and was throwing mentioned exception.