The problem is that the environment lookup is happening during the construction of the
servlet instance. Put the lookup code in a @PostConstruct method or somewhere after
the service method has been called.
[Message sent by forum member 'ksak' (ksak)]
http://forums.java.net/jive/thread.jspa?messageID=290068