4 Replies Latest reply on Jun 19, 2009 10:24 AM by Carlo de Wolf

    NPE in EJBContextHelper.getCallerPrincipal(EJBContextHelper.

    Andrey Peristyy Newbie

       

      @Stateless
      @WebService
      @SOAPBinding(style = SOAPBinding.Style.RPC)
      @SecurityDomain("JBossWS")
      @PermitAll
      public class Service1Impl implements Service1 {
      
       @Resource
       private WebServiceContext wsCtx;
      
      
       public MyWsImpl() {
       log.info("Ctor");
      
       }
      
       @WebMethod
       public String work(String arg) {
       log.info("A: " + arg);
       log.info("Ctx: " + wsCtx.getUserPrincipal().getName());
      }