Hi, I have troubles with deploying lift application with uses enterprise java beans. There's a simple example:
@Stateless
class TestEJB {
def a = "hello"
}
object TestApi extends XMLApiHelper{
@EJB
private var bean:TestEJB = _
def createTag(a:NodeSeq) =
def dispatch: LiftRules.DispatchPF = {
case Req("test" :: Nil, "", GetRequest) =>
() => PlainTextResponse( bean.a )
}
}
There's NullPointerException on line with bean.a
, so that means, that the bean
haven't been initialized well. Why?