[jboss-user] [EJB 3.0] - Multiple security domains not supported Error

emailmsgbox do-not-reply at jboss.com
Thu Apr 3 02:55:36 EDT 2008


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 at 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 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141165#4141165

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141165



More information about the jboss-user mailing list