Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0-beta-2
-
None
-
None
Description
karaf@root> javax.naming.AuthenticationException: This principle is not authorized. [Root exception is java.lang.RuntimeException: The exception sent could not be serialized or deserialized. This is a mock recreation:
javax.security.auth.login.LoginException: No LoginModules configured for PropertiesLogin]
at org.apache.openejb.client.JNDIContext.authenticate(JNDIContext.java:175)
at org.apache.openejb.client.JNDIContext.getInitialContext(JNDIContext.java:116)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at org.apache.camel.example.remote.ejb.EJBClientBean.init(EJBClientBean.java:32)
at org.apache.camel.example.remote.ejb.EJBClientBean.<init>(EJBClientBean.java:21)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.RuntimeException: The exception sent could not be serialized or deserialized. This is a mock recreation:
javax.security.auth.login.LoginException: No LoginModules configured for PropertiesLogin
at org.apache.openejb.client.ThrowableArtifact.createMockThrowable(ThrowableArtifact.java:70)
at org.apache.openejb.client.ThrowableArtifact.readExternal(ThrowableArtifact.java:59)
at org.apache.openejb.client.AuthenticationResponse.readExternal(AuthenticationResponse.java:86)
at org.apache.openejb.client.Client.processRequest(Client.java:269)
at org.apache.openejb.client.Client.request(Client.java:71)
at org.apache.openejb.client.JNDIContext.requestAuthorization(JNDIContext.java:90)
at org.apache.openejb.client.JNDIContext.authenticate(JNDIContext.java:161)
... 29 more
Caused by: javax.security.auth.login.LoginException: No LoginModules configured for PropertiesLogin
at javax.security.auth.login.LoginContext.init(LoginContext.java:256)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)
at org.apache.openejb.core.security.SecurityServiceImpl.login(SecurityServiceImpl.java:74)
at org.apache.openejb.core.security.SecurityServiceImpl.login(SecurityServiceImpl.java:35)
at org.apache.openejb.server.ejbd.AuthRequestHandler.processRequest(AuthRequestHandler.java:56)
at org.apache.openejb.server.ejbd.EjbDaemon.processAuthRequest(EjbDaemon.java:242)
at org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:170)
at org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:71)
at org.apache.openejb.server.ejbd.KeepAliveServer$Session.service(KeepAliveServer.java:213)
at org.apache.openejb.server.ejbd.KeepAliveServer.service(KeepAliveServer.java:233)
at org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:66)
at org.apache.openejb.server.ServicePool$2.run(ServicePool.java:91)
at org.apache.openejb.server.ServicePool$3.run(ServicePool.java:120)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)