This content has been marked as final.
Show 1 reply
-
1. Re: Security Context at Startup-Time
inet_gbo Jan 4, 2012 2:26 PM (in response to semubiz)Hi,
did you find an answer?
I have a similar problem with a StartupServlet configured with run-as.
{code}
public class TestServlet extends HttpServlet {
@Inject
private Principal principal;
public void init(ServletConfig config) throws ServletException {
String caller = principal.getName(); // throws java.lang.IllegalStateException: No security context established
...
}
{code}
Thanks
Günther