[EJB 3.0] - Multiple security domains not supported Error
by emailmsgbox
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
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
18 years
[JBoss Messaging] - how to prevent others to deploy queue using MBeanServerConne
by subrata_jboss
my problem is i have following program which others can write and deploy a queue in my machine ...
public static void deployQueue(String queueName,InitialContext ic) throws Exception {
MBeanServerConnection mBeanServer = lookupMBeanServerProxy();
ObjectName serverObjectName = new ObjectName(
"jboss.messaging:service=ServerPeer");
mBeanServer.invoke(serverObjectName, "deployQueue", new Object[] {
queueName, queueName, 2000, 2, 2 }, new String[] {
"java.lang.String", "java.lang.String", "int", "int", "int" });
System.out.println("Queue " + queueName + " deployed");
}
++++++++++++++++++++++++++++++++++++++++=
public static MBeanServerConnection lookupMBeanServerProxy()
throws Exception {
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
p.put(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
p.put(Context.PROVIDER_URL, "jnp://192.168.114.86:1099");
InitialContext ctx = new InitialContext(p);
return (MBeanServerConnection) ctx.lookup("jmx/invoker/RMIAdaptor");
}
How can i configure it so that others can not deploy the queue ??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141158#4141158
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141158
18 years
[Installation, Configuration & DEPLOYMENT] - how to prevent others to deploy queue using MBeanServerConne
by subrata_jboss
my problem is i have following program which others can write and deploy a queue in my machine ...
public static void deployQueue(String queueName,InitialContext ic) throws Exception {
MBeanServerConnection mBeanServer = lookupMBeanServerProxy();
ObjectName serverObjectName = new ObjectName(
"jboss.messaging:service=ServerPeer");
mBeanServer.invoke(serverObjectName, "deployQueue", new Object[] {
queueName, queueName, 2000, 2, 2 }, new String[] {
"java.lang.String", "java.lang.String", "int", "int", "int" });
System.out.println("Queue " + queueName + " deployed");
}
++++++++++++++++++++++++++++++++++++++++=
public static MBeanServerConnection lookupMBeanServerProxy()
throws Exception {
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
p.put(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interfaces");
p.put(Context.PROVIDER_URL, "jnp://192.168.114.86:1099");
InitialContext ctx = new InitialContext(p);
return (MBeanServerConnection) ctx.lookup("jmx/invoker/RMIAdaptor");
}
How can i configure it so that others can not deploy the queue ??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141156#4141156
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141156
18 years