[jboss-user] [EJB 3.0] - Error with XML-based security and JMX service beans
javidjamae
do-not-reply at jboss.com
Sat Jan 26 15:04:51 EST 2008
I'm running JBoss 5.0.0.Beta3, and when I try to start an application that has EJB security defined in the META-INF/ejb-jar.xml file and a JMX service bean defined via an @EJB annotation, I get the error seen below. Am I doing something wrong? If this is a bug I'll file a JIRA issue and upload my code for it.
Here is my ejb-jar.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
| version="3.0">
|
| <assembly-descriptor>
| <method-permission>
| <role-name>teller</role-name>
| <method>
| <ejb-name>StatelessCalculatorBean</ejb-name>
| <method-name>calculateFutureValue</method-name>
| </method>
| </method-permission>
| <method-permission>
| <role-name>bank-manager</role-name>
| <method>
| <ejb-name>StatelessCalculatorBean</ejb-name>
| <method-name>getInterestRate</method-name>
| </method>
| </method-permission>
| <method-permission>
| <unchecked />
| <method>
| <ejb-name>StatelessCalculatorBean</ejb-name>
| <method-name>freeForAll</method-name>
| </method>
| </method-permission>
| <exclude-list>
| <method>
| <ejb-name>StatelessCalculatorBean</ejb-name>
| <method-name>getTheAnswerToLifeTheUniverseAndEverything</method-name>
| </method>
| </exclude-list>
| </assembly-descriptor>
| </ejb-jar>
|
Here is my EJB:
|
| @Stateless
| public class StatelessCalculatorBean implements Calculator, CalculatorRemote {
|
| @EJB(beanName = "InterestRateMBean")
| private InterestRateManager interstRateManager;
|
| public double calculateTotalInterest(double presentValue, int years) {
| return calculateFutureValue(presentValue, years) - presentValue;
| }
|
|
| public double calculateFutureValue(double presentValue, int years) {
| double interestRate = interstRateManager.getInterestRate() / 100;
| return presentValue * Math.pow((1.0 + interestRate), years);
| }
|
|
| public double getInterestRate() {
| return interstRateManager.getInterestRate();
| }
|
|
| public String getTheAnswerToLifeTheUniverseAndEverything() {
| return "42";
| }
|
|
| public String freeForAll() {
| return "You're in!";
| }
|
| }
|
Here is the error I get:
| 13:41:04,329 WARN [ReferenceMetaDataResolverDeployer] Unresolved references exist in JBossWebMetaData: [ejb/Calculator/
| 13:41:04,329 INFO [AspectDeployer] Deploying xml into org.jboss.aop.AspectManager at f52ed for org.jboss.mx.loading.Unifie
| ver/enterprise/deploy/ejb3-interceptors-aop.xml ,addedOrder=19}
| 13:41:08,845 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public java.lang.String com.manni
| ToLifeTheUniverseAndEverything(), javax.annotation.security.PermitAll)
| 13:41:08,845 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public java.lang.String com.manni
| ToLifeTheUniverseAndEverything(), javax.annotation.security.RolesAllowed)
| 13:41:08,876 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public double com.manning.jbia.ej
| ouble,int), javax.annotation.security.PermitAll)
| 13:41:08,876 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public double com.manning.jbia.ej
| ouble,int), javax.annotation.security.DenyAll)
| 13:41:08,876 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public double com.manning.jbia.ej
| ax.annotation.security.PermitAll)
| 13:41:08,876 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public double com.manning.jbia.ej
| ax.annotation.security.DenyAll)
| 13:41:08,892 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public java.lang.String com.manni
| , javax.annotation.security.DenyAll)
| 13:41:08,892 WARN [AnnotationRepositoryToMetaData] Not implemented: disableAnnotation(public java.lang.String com.manni
| , javax.annotation.security.RolesAllowed)
| 13:41:09,798 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:ear=calculator.ear,jar=calculator.jar,name=Interest
| 13:41:09,798 INFO [MCKernelAbstraction] and supplies:
| 13:41:09,798 INFO [MCKernelAbstraction] Class:com.manning.jbia.ejbsecurity.ejb.InterestRateManager
| 13:41:12,158 INFO [EJBContainer] STARTED EJB: com.manning.jbia.ejbsecurity.ejb.InterestRateMBean ejbName: InterestRateM
| 13:41:12,439 INFO [MCKernelAbstraction] installing bean: jbia:service=interestRateManager with dependencies:
| 13:41:12,439 INFO [MCKernelAbstraction] and supplies:
| 13:41:12,439 INFO [MCKernelAbstraction] Class:com.manning.jbia.ejbsecurity.ejb.InterestRateManager
| 13:41:12,626 ERROR [STDERR] javax.management.MBeanException
| 13:41:12,626 ERROR [STDERR] at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:219)
| 13:41:12,626 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| 13:41:12,626 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| 13:41:12,626 ERROR [STDERR] at org.jboss.ejb3.MCKernelAbstraction.invokeOptionalMethod(MCKernelAbstraction.java:183)
| 13:41:12,626 ERROR [STDERR] at org.jboss.ejb3.MCKernelAbstraction.installMBean(MCKernelAbstraction.java:168)
| 13:41:12,626 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.registerManagementInterface(ServiceContainer.
| 13:41:12,626 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.start(ServiceContainer.java:207)
| 13:41:12,626 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 13:41:12,626 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 13:41:12,626 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 13:41:12,626 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 13:41:12,626 ERROR [STDERR] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:5
| 13:41:12,626 ERROR [STDERR] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInf
| 13:41:12,626 ERROR [STDERR] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:6
| 13:41:12,626 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWr
| 13:41:12,626 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45
| 13:41:12,626 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWr
| 13:41:12,626 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(K
| 13:41:12,626 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAc
| 13:41:12,626 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(Kerne
| 13:41:12,626 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(Kerne
| 13:41:12,626 ERROR [STDERR] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction
| 13:41:12,626 ERROR [STDERR] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessContr
| 13:41:12,626 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControl
| 13:41:12,626 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerCont
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.jav
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.ja
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.ja
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
| 13:41:12,642 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelCo
| 13:41:12,642 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelCo
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:151)
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:350)
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:411)
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.java:53)
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.java:37)
| 13:41:12,642 ERROR [STDERR] at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(Ab
| 13:41:12,642 ERROR [STDERR] at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDepl
| 13:41:12,642 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169
| 13:41:12,642 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImp
| 13:41:12,642 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImp
| 13:41:12,642 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerCont
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.jav
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.ja
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.ja
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| 13:41:12,642 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| 13:41:12,642 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| 13:41:12,642 ERROR [STDERR] at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| 13:41:12,642 ERROR [STDERR] at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileSer
| 13:41:12,642 ERROR [STDERR] at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBo
| 13:41:12,642 ERROR [STDERR] at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| 13:41:12,642 ERROR [STDERR] at org.jboss.Main.boot(Main.java:208)
| 13:41:12,642 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:534)
| 13:41:12,642 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 13:41:12,642 ERROR [STDERR] Caused by: java.lang.IllegalStateException: Security Context has not been set
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthoriza
| 13:41:12,642 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| 13:41:12,642 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.ja
| 13:41:12,642 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:364)
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:329)
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:215)
| 13:41:12,642 ERROR [STDERR] ... 58 more
| 13:41:12,642 ERROR [STDERR] java.lang.RuntimeException: Problem registering @Management interface for @Service class com
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.registerManagementInterface(ServiceContainer.
| 13:41:12,642 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.start(ServiceContainer.java:207)
| 13:41:12,642 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 13:41:12,642 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 13:41:12,642 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 13:41:12,642 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 13:41:12,642 ERROR [STDERR] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:5
| 13:41:12,642 ERROR [STDERR] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInf
| 13:41:12,642 ERROR [STDERR] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:6
| 13:41:12,642 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWr
| 13:41:12,642 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45
| 13:41:12,642 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWr
| 13:41:12,642 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(K
| 13:41:12,642 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAc
| 13:41:12,642 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(Kerne
| 13:41:12,642 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(Kerne
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessContr
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControl
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerCont
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.jav
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.ja
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.ja
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
| 13:41:12,658 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelCo
| 13:41:12,658 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelCo
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:151)
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:350)
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:411)
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.java:53)
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.java:37)
| 13:41:12,658 ERROR [STDERR] at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(Ab
| 13:41:12,658 ERROR [STDERR] at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDepl
| 13:41:12,658 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169
| 13:41:12,658 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImp
| 13:41:12,658 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImp
| 13:41:12,658 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerCont
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.jav
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.ja
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.ja
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| 13:41:12,658 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| 13:41:12,658 ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| 13:41:12,658 ERROR [STDERR] at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| 13:41:12,658 ERROR [STDERR] at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileSer
| 13:41:12,658 ERROR [STDERR] at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBo
| 13:41:12,658 ERROR [STDERR] at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| 13:41:12,658 ERROR [STDERR] at org.jboss.Main.boot(Main.java:208)
| 13:41:12,658 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:534)
| 13:41:12,658 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 13:41:12,658 ERROR [STDERR] Caused by: java.lang.RuntimeException: javax.management.MBeanException
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.MCKernelAbstraction.installMBean(MCKernelAbstraction.java:174)
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.registerManagementInterface(ServiceContainer.
| 13:41:12,658 ERROR [STDERR] ... 53 more
| 13:41:12,658 ERROR [STDERR] Caused by: javax.management.MBeanException
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:219)
| 13:41:12,658 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| 13:41:12,658 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.MCKernelAbstraction.invokeOptionalMethod(MCKernelAbstraction.java:183)
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.MCKernelAbstraction.installMBean(MCKernelAbstraction.java:168)
| 13:41:12,658 ERROR [STDERR] ... 54 more
| 13:41:12,658 ERROR [STDERR] Caused by: java.lang.IllegalStateException: Security Context has not been set
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthoriza
| 13:41:12,658 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| 13:41:12,658 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.ja
| 13:41:12,658 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:364)
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:329)
| 13:41:12,658 ERROR [STDERR] at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:215)
| 13:41:12,658 ERROR [STDERR] ... 58 more
| 13:41:13,251 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
| java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
| at org.jboss.security.auth.spi.Util.loadProperties(Util.java:366)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
| at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
| 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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
| at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
| at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
| at java.security.AccessController.doPrivileged(Native Method)
| at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
| at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
| at org.jboss.security.plugins.auth.JaasSecurityManagerBase.defaultLogin(JaasSecurityManagerBase.java:563)
| at org.jboss.security.plugins.auth.JaasSecurityManagerBase.authenticate(JaasSecurityManagerBase.java:497)
| at org.jboss.security.plugins.auth.JaasSecurityManagerBase.isValid(JaasSecurityManagerBase.java:365)
| at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:153)
| at org.jboss.security.integration.ejb.EJBAuthenticationHelper.isValid(EJBAuthenticationHelper.java:76)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:141)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:364)
| at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:329)
| at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:215)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.ejb3.MCKernelAbstraction.invokeOptionalMethod(MCKernelAbstraction.java:183)
| at org.jboss.ejb3.MCKernelAbstraction.uninstallMBean(MCKernelAbstraction.java:203)
| at org.jboss.ejb3.service.ServiceContainer.unregisterManagementInterface(ServiceContainer.java:612)
| at org.jboss.ejb3.service.ServiceContainer.stop(ServiceContainer.java:231)
| at org.jboss.ejb3.service.ServiceContainer.start(ServiceContainer.java:216)
| 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.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelCont
| at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerCo
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAc
| at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContext
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:5
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
| at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:96)
| at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:90)
| at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:151)
| at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:350)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:411)
| at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.java:53)
| at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.java:37)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:245)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
| 13:41:13,392 WARN [MCKernelAbstraction] destroy on jbia:service=interestRateManager failed
| javax.management.MBeanException
| at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:219)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.ejb3.MCKernelAbstraction.invokeOptionalMethod(MCKernelAbstraction.java:183)
| at org.jboss.ejb3.MCKernelAbstraction.uninstallMBean(MCKernelAbstraction.java:203)
| at org.jboss.ejb3.service.ServiceContainer.unregisterManagementInterface(ServiceContainer.java:612)
| at org.jboss.ejb3.service.ServiceContainer.stop(ServiceContainer.java:231)
| at org.jboss.ejb3.service.ServiceContainer.start(ServiceContainer.java:216)
| 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.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelCont
| at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerCo
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAc
| at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContext
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:5
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
| at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:96)
| at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:90)
| at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:151)
| at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:350)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:411)
| at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.java:53)
| at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.java:37)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:245)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.ejb.EJBAccessException: Invalid User
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:142)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:364)
| at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:329)
| at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:215)
| ... 59 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123769#4123769
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123769
More information about the jboss-user
mailing list