3 Replies Latest reply on Jan 5, 2006 1:01 PM by Raghu M

    JNDI Security Interceptor

    Raghu M Newbie

      I am trying to implement the custom JNDISecuirtyInterceptor, after I place the interceptor in the server/lib and start my server it says complains that the jaas namenotfound. Basically I am trying to start my naming service with a secuirtydoamin associated to it and the naming sevice cannot start because it did not found the securitydomain in the name space. any idea? I am using the
      code from

      http://wiki.jboss.org/wiki/Wiki.jsp?page=XMBeansforSecurity

        • 1. Re: JNDI Security Interceptor
          Raghu M Newbie

          java.lang.NoSuchMethodException: org.jboss.test.jmx.interceptors.JNDISecurity.(org.jboss.mx.server.MBeanInvoker)
          at java.lang.Class.getConstructor0(Class.java:2647)
          at java.lang.Class.getConstructor(Class.java:1629)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.getInterceptors(ModelMBeanInvoker.java:714)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.configureInterceptorStack(ModelMBeanInvoker.java:611)
          at org.jboss.mx.modelmbean.XMBean.configureInterceptorStack(XMBean.java:385)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.init(ModelMBeanInvoker.java:488)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:470)
          at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:635)
          at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:678)
          at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:196)
          at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1407)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1402)
          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1335)
          at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:330)
          at org.jboss.system.ServiceCreator.install(ServiceCreator.java:179)
          at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:431)
          at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:153)
          at org.jboss.system.ServiceController.install(ServiceController.java:215)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy4.install(Unknown Source)
          at org.jboss.deployment.SARDeployer.create(SARDeployer.java:232)
          at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy5.deploy(Unknown Source)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
          at org.jboss.Main.boot(Main.java:187)
          at org.jboss.Main$1.run(Main.java:438)
          at java.lang.Thread.run(Thread.java:595)
          11:44:29,896 INFO [JNDISecurity] setSecurityDomain: java:/jaas/secure-jndi
          11:44:29,916 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss:service=Naming', Class=org.jboss.naming.NamingService (org.jboss.naming.NamingService@d17ec3)]
          11:44:29,916 INFO [NamingService] Registration is not done -> stop
          11:44:29,916 DEBUG [ServiceController] removing service: jboss:service=proxyFactory,type=jrmp,target=Naming
          11:44:29,926 DEBUG [ServiceController] Removing context for nonexistent service it is no longer recording dependencies: ObjectName: jboss:service=invoker,type=jrmp
          State: NOTYETINSTALLED

          11:44:29,926 DEBUG [ServiceController] removing already unregistered jboss:service=proxyFactory,type=jrmp,target=Naming from server
          11:44:29,926 DEBUG [ServiceController] removing service: jboss:service=WebService
          11:44:29,926 DEBUG [ServiceController] removing already unregistered jboss:service=WebService from server
          11:44:29,926 DEBUG [ServiceController] removing service: jboss.system:type=Log4jService,service=Logging
          11:44:29,926 DEBUG [ServiceController] removing already unregistered jboss.system:type=Log4jService,service=Logging from server
          11:44:29,926 DEBUG [ServiceController] removing service: jboss:service=AttributePersistenceService
          11:44:29,926 DEBUG [ServiceController] removing already unregistered jboss:service=AttributePersistenceService from server
          11:44:29,926 DEBUG [LocalJBossServerDomain] preDeregister(), parent: null
          11:44:29,926 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
          11:44:29,926 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
          11:44:29,926 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
          11:44:29,926 DEBUG [SARDeployer] create operation failed for package file:/C:/jboss-4.0.3SP1/server/default/conf/jboss-service.xml
          org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
          at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:178)
          at org.jboss.system.ServiceController.install(ServiceController.java:215)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy4.install(Unknown Source)
          at org.jboss.deployment.SARDeployer.create(SARDeployer.java:232)
          at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy5.deploy(Unknown Source)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
          at org.jboss.Main.boot(Main.java:187)
          at org.jboss.Main$1.run(Main.java:438)
          at java.lang.Thread.run(Thread.java:595)
          Caused by: java.lang.reflect.InvocationTargetException
          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1436)
          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1335)
          at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:330)
          at org.jboss.system.ServiceCreator.install(ServiceCreator.java:179)
          at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:431)
          at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:153)
          ... 36 more
          Caused by: javax.management.MBeanException
          at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:166)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:149)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1407)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1402)
          ... 41 more
          Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss:service=Naming', Class=org.jboss.naming.NamingService (org.jboss.naming.NamingService@d17ec3)]
          at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:694)
          at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:196)
          at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          ... 51 more
          Caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.getInterceptors(ModelMBeanInvoker.java:758)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.configureInterceptorStack(ModelMBeanInvoker.java:611)
          at org.jboss.mx.modelmbean.XMBean.configureInterceptorStack(XMBean.java:385)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.init(ModelMBeanInvoker.java:488)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:470)
          at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:635)
          at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:678)
          ... 56 more
          Caused by: javax.naming.NameNotFoundException: jaas not bound
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
          at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
          at org.jnp.server.NamingServer.lookup(NamingServer.java:252)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
          at javax.naming.InitialContext.lookup(InitialContext.java:351)
          at org.jboss.test.jmx.interceptors.JNDISecurity.setSecurityDomain(JNDISecurity.java:55)
          ... 67 more
          11:44:29,926 DEBUG [SARDeployer] Unregistering service UCL=jmx.loading:UCL=14e8cee
          11:44:29,926 DEBUG [UnifiedLoaderRepository3] UnifiedLoaderRepository removed(true) org.jboss.mx.loading.UnifiedClassLoader3@14e8cee{ url=file:/C:/jboss-4.0.3SP1/server/default/tmp/deploy/tmp46141jboss-service.xml ,addedOrder=2}
          11:44:29,926 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.3SP1/server/default/conf/jboss-service.xml
          org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
          at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:178)
          at org.jboss.system.ServiceController.install(ServiceController.java:215)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy4.install(Unknown Source)
          at org.jboss.deployment.SARDeployer.create(SARDeployer.java:232)
          at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy5.deploy(Unknown Source)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
          at org.jboss.Main.boot(Main.java:187)
          at org.jboss.Main$1.run(Main.java:438)
          at java.lang.Thread.run(Thread.java:595)
          Caused by: java.lang.reflect.InvocationTargetException
          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1436)
          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1335)
          at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:330)
          at org.jboss.system.ServiceCreator.install(ServiceCreator.java:179)
          at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:431)
          at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:153)
          ... 36 more
          Caused by: javax.management.MBeanException
          at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:166)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:149)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1407)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1402)
          ... 41 more
          Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss:service=Naming', Class=org.jboss.naming.NamingService (org.jboss.naming.NamingService@d17ec3)]
          at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:694)
          at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:196)
          at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          ... 51 more
          Caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.getInterceptors(ModelMBeanInvoker.java:758)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.configureInterceptorStack(ModelMBeanInvoker.java:611)
          at org.jboss.mx.modelmbean.XMBean.configureInterceptorStack(XMBean.java:385)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.init(ModelMBeanInvoker.java:488)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:470)
          at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:635)
          at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:678)
          ... 56 more
          Caused by: javax.naming.NameNotFoundException: jaas not bound
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
          at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
          at org.jnp.server.NamingServer.lookup(NamingServer.java:252)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
          at javax.naming.InitialContext.lookup(InitialContext.java:351)
          at org.jboss.test.jmx.interceptors.JNDISecurity.setSecurityDomain(JNDISecurity.java:55)
          ... 67 more
          11:44:29,936 DEBUG [Server] Failed to start
          org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
          at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:178)
          at org.jboss.system.ServiceController.install(ServiceController.java:215)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy4.install(Unknown Source)
          at org.jboss.deployment.SARDeployer.create(SARDeployer.java:232)
          at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy5.deploy(Unknown Source)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
          at org.jboss.Main.boot(Main.java:187)
          at org.jboss.Main$1.run(Main.java:438)
          at java.lang.Thread.run(Thread.java:595)
          Caused by: java.lang.reflect.InvocationTargetException
          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1436)
          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1335)
          at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:330)
          at org.jboss.system.ServiceCreator.install(ServiceCreator.java:179)
          at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:431)
          at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:153)
          ... 36 more
          Caused by: javax.management.MBeanException
          at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:166)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:149)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1407)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1402)
          ... 41 more
          Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss:service=Naming', Class=org.jboss.naming.NamingService (org.jboss.naming.NamingService@d17ec3)]
          at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:694)
          at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:196)
          at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          ... 51 more
          Caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.getInterceptors(ModelMBeanInvoker.java:758)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.configureInterceptorStack(ModelMBeanInvoker.java:611)
          at org.jboss.mx.modelmbean.XMBean.configureInterceptorStack(XMBean.java:385)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.init(ModelMBeanInvoker.java:488)
          at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:470)
          at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:635)
          at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:678)
          ... 56 more
          Caused by: javax.naming.NameNotFoundException: jaas not bound
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
          at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
          at org.jnp.server.NamingServer.lookup(NamingServer.java:252)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
          at javax.naming.InitialContext.lookup(InitialContext.java:351)
          at org.jboss.test.jmx.interceptors.JNDISecurity.setSecurityDomain(JNDISecurity.java:55)
          ... 67 more
          11:44:29,956 INFO [Server] Runtime shutdown hook called, forceHalt: true
          11:44:29,956 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
          11:44:29,956 DEBUG [MainDeployer] Undeploying file:/C:/jboss-4.0.3SP1/server/default/conf/jboss-service.xml
          11:44:29,956 DEBUG [SARDeployer] undeploying document file:/C:/jboss-4.0.3SP1/server/default/conf/jboss-service.xml
          11:44:29,956 DEBUG [RepositoryClassLoader] Unregistering cl=org.jboss.mx.loading.UnifiedClassLoader3@14e8cee{ url=file:/C:/jboss-4.0.3SP1/server/default/tmp/deploy/tmp46141jboss-service.xml ,addedOrder=2}
          11:44:29,956 DEBUG [UnifiedLoaderRepository3] UnifiedLoaderRepository removed(false) org.jboss.mx.loading.UnifiedClassLoader3@14e8cee{ url=file:/C:/jboss-4.0.3SP1/server/default/tmp/deploy/tmp46141jboss-service.xml ,addedOrder=2}
          11:44:29,956 DEBUG [DeploymentInfo] Cleaned Deployment: file:/C:/jboss-4.0.3SP1/server/default/tmp/deploy/tmp46141jboss-service.xml
          11:44:29,956 DEBUG [MainDeployer] Undeployed file:/C:/jboss-4.0.3SP1/server/default/conf/jboss-service.xml
          11:44:29,956 DEBUG [MainDeployer] Undeployed 1 deployed packages
          11:44:29,956 DEBUG [Server] Shutting down all services
          11:44:29,956 DEBUG [ServiceController] Stopping 7 services
          11:44:29,956 DEBUG [ServiceController] removing service: jboss.system:service=ServiceDeployer
          11:44:29,956 DEBUG [ServiceController] removing jboss.system:service=ServiceDeployer from server
          11:44:29,956 DEBUG [ServiceController] Ignoring request to remove nonexistent service: jboss.system:service=ServiceDeployer
          11:44:29,956 DEBUG [ServiceController] removing service: jboss.system:service=JARDeployer
          11:44:29,956 DEBUG [ServiceController] removing jboss.system:service=JARDeployer from server
          11:44:29,956 DEBUG [ServiceController] Ignoring request to remove nonexistent service: jboss.system:service=JARDeployer
          11:44:29,956 DEBUG [ServiceController] removing service: jboss.system:service=MainDeployer
          11:44:29,956 DEBUG [ServiceController] removing jboss.system:service=MainDeployer from server
          11:44:29,956 DEBUG [ServiceController] Ignoring request to remove nonexistent service: jboss.system:service=MainDeployer
          11:44:29,956 DEBUG [ServiceController] Stopped 3 services
          11:44:29,956 DEBUG [Server] Deleting server tmp/deploy directory
          11:44:29,956 INFO [Server] Shutdown complete

          • 2. Re: JNDI Security Interceptor
            Scott Stark Master

            Moved to correct user forum.

            • 3. Re: JNDI Security Interceptor
              Raghu M Newbie

              Scott,
              since the code is written by you, can you let me know more info regarding this .
              Getting it worked is very key for our company using the product.

              Alsoin JBoss4.0.3. Why is the JNDISecurity.java left in the testsuite? i.e
              jboss-4.0.3SP1-src\testsuite\src\main\org\jboss\test\jmx\interceptors\JNDISecurity.java


              Thanks,
              -Raghu Merla