I tried it now with first just using @Stateless, and then just with @ManagedBean. All the same error when I first started a new installed Glassfish Server (Webprofile version).
After restarting it once, it worked the first time deploying. I wonder how long this would be...
Could it be a bug of glassfish itself? The only thing I did was restarting the server.
[Message sent by forum member 'levinivel' (christoph.gleichweit_at_student.tugraz.at)]
http://forums.java.net/jive/thread.jspa?messageID=381429