2 Replies Latest reply on Jan 28, 2010 2:56 PM by Ricardo Arguello

    Multiple security domains not supported Error

    emailms box Newbie

      Hi All,

      I have two SLSB in a jar each with different security Domain setting and rules I use annotations (jboss4.2.2 , jbossws2.0.3)

      @Stateless
      //@WebService
      @SecurityDomain("domain1")
      @RolesAllowed({rule1})
      public calss ....
      


      this works fine.

      When I add web the @WebService
      Hall breaks loose and I get


      09:14:51,531 ERROR [MainDeployer] Could not start deployment: file:/D:/projects/tests/jboss-4.2.2/server/default/deploy/test.jar
      java.lang.IllegalStateException: Multiple security domains not supported
       at org.jboss.wsf.container.jboss42.SecurityHandlerEJB3.addSecurityDomain
      (SecurityHandlerEJB3.java:65)
       at org.jboss.wsf.framework.deployment.WebAppGeneratorDeploymentAspect.cr
      eateJBossWebAppDescriptor(WebAppGeneratorDeploymentAspect.java:273)
       at org.jboss.wsf.framework.deployment.WebAppGeneratorDeploymentAspect.ge
      neratWebDeployment(WebAppGeneratorDeploymentAspect.java:97)
       at org.jboss.wsf.framework.deployment.WebAppGeneratorDeploymentAspect.cr
      eate(WebAppGeneratorDeploymentAspect.java:84)
       at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy
      (DeploymentAspectManagerImpl.java:115)
       at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep
      loyerHook.java:97)
       at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt
      erceptor.java:90)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
      start(SubDeployerInterceptorSupport.java:188)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
      ptor.java:95)
      
      .
      .
      .
      09:14:56,316 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@85594e40 { url=file:/D:/projects/tests/jboss-4.2.2/server/default/deploy/test.jar }
       deployer: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
       status: Deployment FAILED reason: Multiple security domains not supported
       state: FAILED
       watch: file:/D:/projects/tests/jboss-4.2.2/server/default/deploy/test.jar
       altDD: null
      
      
      

      .
      .
      .

      any Ideas ?
      Thanks