users@glassfish.java.net

Re: Cannot deploy Scala session bean with Glassfish v3

From: <glassfish_at_javadesktop.org>
Date: Thu, 11 Jun 2009 08:54:40 PDT

Following the post at http://dotneverland.blogspot.com/2009/06/enterprise-scala-beans.html, I tried to do it the old-fashioned way:
 
@Local trait IQuizSB { }
@Stateless class QuizSB extends IQuizSB { }

This results in a class file IQuizSB.class, which, as javap -v reveals, is an interface with the annotation javax.ejb.Local. QuizSB.class implements IQuizSB (and scala/ScalaObject) and it has an annotation javax.ejb.Stateless.

What do I get for my trouble? A javax.ejb.AccessLocalException: Client not authorized for this invocation. Huh?
[Message sent by forum member 'cayhorstmann' (cayhorstmann)]

http://forums.java.net/jive/thread.jspa?messageID=350740