2 Replies Latest reply on Oct 9, 2007 10:23 AM by thomas.diesler

    JBossWS-2.0.1 ignoring @SecurityDomain

    deanouk

      Was using JBossWS out of the box with JBoss 4.2.1GA, but run into some issues - it was recommended to try the new JBossWS-2.0.1.

      The @SecruityDomain was previously mapping to the correct SecruityDomain but is now defaulting to some other value.

      import org.jboss.wsf.spi.annotation.WebContext;
      import org.jboss.annotation.security.SecurityDomain;
      
      Stateless(name = "NewRegistrationsSession")
      @WebService(endpointInterface = "com.msp.ejb.csi.webservices.newregistrations.NewRegistrationsSession")
      @Remote(NewRegistrationsSession.class)
      @SecurityDomain("sys-server-login")
      @RolesAllowed({"Webservice"})
      @WebContext(contextRoot = "/webservices", urlPattern = "/*", authMethod = "BASIC",
       transportGuarantee = "NONE", secureWSDLAccess = false)
      public class NewRegistrationsSessionBean
      {
      //etc
      }
      


      The SecurityDomain is set to 'sys-server-login' but it is actually using 'server-login' which is another SecurityDomain. It was previously working ok.

      Any ideas why?