geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: A Problem with EARs containing security in 2.2
Date Fri, 30 Oct 2009 21:52:04 GMT
I thought we'd chased down all the ways this could happen, but  
apparently not.

IIUC this is a misleading warning but does not affect the functioning  
of security for your ejbs?

Please file a jira for it in any case.

thanks
david jencks
On Oct 30, 2009, at 12:56 PM, Quintin Beukes wrote:

> Hey,
>
> I posted on the users list a few days ago, but haven't received a  
> response. Also can't find that mail, so I made a new one.
>
> When deploy an EAR which contains ONLY EJBs, and having security  
> annotations in the ear's deployment descriptor, I get the following:
> 2009-10-30 21:49:56,687 INFO  [config] Enterprise application  
> "net.kunye/KunyeEAR/1.0/ear" loaded.
> 2009-10-30 21:50:07,781 ERROR [EjbModuleBuilder]  
> GeronimoSecurityBuilderImpl.addGBeans() failed: JACC manager gbean  
> already present
> org.apache.geronimo.common.DeploymentException: JACC manager gbean  
> already present
> 	at  
> org 
> .apache 
> .geronimo 
> .security 
> .deployment 
> .GeronimoSecurityBuilderImpl 
> .buildJaccManager(GeronimoSecurityBuilderImpl.java:224)
> 	at  
> org 
> .apache 
> .geronimo 
> .security 
> .deployment 
> .GeronimoSecurityBuilderImpl 
> .addGBeans(GeronimoSecurityBuilderImpl.java:150)
> 	at  
> org 
> .apache 
> .geronimo 
> .openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java: 
> 825)
> 	at  
> org 
> .apache 
> .geronimo 
> .j2ee 
> .deployment 
> .EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:652)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:257)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:136)
> 	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:597)
> 	at  
> org 
> .apache 
> .geronimo 
> .gbean 
> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
> 34)
> 	at  
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
> 	at  
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:850)
> 	at  
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
> 237)
> 	at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java: 
> 342)
> 	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:597)
> 	at  
> org 
> .apache 
> .geronimo 
> .gbean 
> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
> 34)
> 	at  
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
> 	at  
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:850)
> 	at  
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
> 237)
> 	at  
> org 
> .apache 
> .geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java: 
> 172)
> 	at  
> com 
> .sun 
> .jmx 
> .interceptor 
> .DefaultMBeanServerInterceptor 
> .invoke(DefaultMBeanServerInterceptor.java:836)
> 	at  
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at  
> javax 
> .management 
> .remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access 
> $200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl 
> $PrivilegedOperation.run(RMIConnectionImpl.java:1264)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at  
> javax 
> .management 
> .remote 
> .rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java: 
> 1366)
> 	at  
> javax 
> .management 
> .remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java: 
> 305)
> 	at sun.rmi.transport.Transport$1.run(Transport.java:159)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
> 	at  
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java: 
> 535)
> 	at sun.rmi.transport.tcp.TCPTransport 
> $ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport 
> $ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor 
> $Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor 
> $Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.geronimo.kernel.GBeanAlreadyExistsException:  
> net.kunye/KunyeEAR/1.0/ear?J2EEApplication=net.kunye/KunyeEAR/1.0/ 
> ear,j2eeType=JACCManager,name=JACCManager
> 	at  
> org 
> .apache 
> .geronimo.kernel.config.Configuration.addGBean(Configuration.java:626)
> 	at  
> org 
> .apache 
> .geronimo 
> .deployment.DeploymentContext.addGBean(DeploymentContext.java:186)
> 	at  
> org 
> .apache 
> .geronimo 
> .security 
> .deployment 
> .GeronimoSecurityBuilderImpl 
> .buildJaccManager(GeronimoSecurityBuilderImpl.java:222)
> 	... 44 more
> 2009-10-30 21:50:07,799 ERROR [EjbModuleBuilder]  
> GeronimoSecurityBuilderImpl.addGBeans() failed: JACC manager gbean  
> already present
> org.apache.geronimo.common.DeploymentException: JACC manager gbean  
> already present
> 	at  
> org 
> .apache 
> .geronimo 
> .security 
> .deployment 
> .GeronimoSecurityBuilderImpl 
> .buildJaccManager(GeronimoSecurityBuilderImpl.java:224)
> 	at  
> org 
> .apache 
> .geronimo 
> .security 
> .deployment 
> .GeronimoSecurityBuilderImpl 
> .addGBeans(GeronimoSecurityBuilderImpl.java:150)
> 	at  
> org 
> .apache 
> .geronimo 
> .openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java: 
> 825)
> 	at  
> org 
> .apache 
> .geronimo 
> .j2ee 
> .deployment 
> .EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:652)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:257)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:136)
> 	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:597)
> 	at  
> org 
> .apache 
> .geronimo 
> .gbean 
> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
> 34)
> 	at  
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
> 	at  
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:850)
> 	at  
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
> 237)
> 	at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java: 
> 342)
> 	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:597)
> 	at  
> org 
> .apache 
> .geronimo 
> .gbean 
> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
> 34)
> 	at  
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
> 	at  
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:850)
> 	at  
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
> 237)
> 	at  
> org 
> .apache 
> .geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java: 
> 172)
> 	at  
> com 
> .sun 
> .jmx 
> .interceptor 
> .DefaultMBeanServerInterceptor 
> .invoke(DefaultMBeanServerInterceptor.java:836)
> 	at  
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at  
> javax 
> .management 
> .remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access 
> $200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl 
> $PrivilegedOperation.run(RMIConnectionImpl.java:1264)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at  
> javax 
> .management 
> .remote 
> .rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java: 
> 1366)
> 	at  
> javax 
> .management 
> .remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java: 
> 305)
> 	at sun.rmi.transport.Transport$1.run(Transport.java:159)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
> 	at  
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java: 
> 535)
> 	at sun.rmi.transport.tcp.TCPTransport 
> $ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport 
> $ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor 
> $Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor 
> $Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.geronimo.kernel.GBeanAlreadyExistsException:  
> net.kunye/KunyeEAR/1.0/ear?J2EEApplication=net.kunye/KunyeEAR/1.0/ 
> ear,j2eeType=JACCManager,name=JACCManager
> 	at  
> org 
> .apache 
> .geronimo.kernel.config.Configuration.addGBean(Configuration.java:626)
> 	at  
> org 
> .apache 
> .geronimo 
> .deployment.DeploymentContext.addGBean(DeploymentContext.java:186)
> 	at  
> org 
> .apache 
> .geronimo 
> .security 
> .deployment 
> .GeronimoSecurityBuilderImpl 
> .buildJaccManager(GeronimoSecurityBuilderImpl.java:222)
> 	... 44 more
> 2009-10-30 21:50:07,829 ERROR [EjbModuleBuilder]  
> GeronimoSecurityBuilderImpl.addGBeans() failed: JACC manager gbean  
> already present
> org.apache.geronimo.common.DeploymentException: JACC manager gbean  
> already present
> 	at  
> org 
> .apache 
> .geronimo 
> .security 
> .deployment 
> .GeronimoSecurityBuilderImpl 
> .buildJaccManager(GeronimoSecurityBuilderImpl.java:224)
> 	at  
> org 
> .apache 
> .geronimo 
> .security 
> .deployment 
> .GeronimoSecurityBuilderImpl 
> .addGBeans(GeronimoSecurityBuilderImpl.java:150)
> 	at  
> org 
> .apache 
> .geronimo 
> .openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java: 
> 825)
> 	at  
> org 
> .apache 
> .geronimo 
> .j2ee 
> .deployment 
> .EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:652)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:257)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:136)
> 	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:597)
> 	at  
> org 
> .apache 
> .geronimo 
> .gbean 
> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
> 34)
> 	at  
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
> 	at  
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:850)
> 	at  
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
> 237)
> 	at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java: 
> 342)
> 	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:597)
> 	at  
> org 
> .apache 
> .geronimo 
> .gbean 
> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
> 34)
> 	at  
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
> 	at  
> org 
> .apache 
> .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:850)
> 	at  
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
> 237)
> 	at  
> org 
> .apache 
> .geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java: 
> 172)
> 	at  
> com 
> .sun 
> .jmx 
> .interceptor 
> .DefaultMBeanServerInterceptor 
> .invoke(DefaultMBeanServerInterceptor.java:836)
> 	at  
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 	at  
> javax 
> .management 
> .remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access 
> $200(RMIConnectionImpl.java:72)
> 	at javax.management.remote.rmi.RMIConnectionImpl 
> $PrivilegedOperation.run(RMIConnectionImpl.java:1264)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at  
> javax 
> .management 
> .remote 
> .rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java: 
> 1366)
> 	at  
> javax 
> .management 
> .remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
> 	at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java: 
> 305)
> 	at sun.rmi.transport.Transport$1.run(Transport.java:159)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
> 	at  
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java: 
> 535)
> 	at sun.rmi.transport.tcp.TCPTransport 
> $ConnectionHandler.run0(TCPTransport.java:790)
> 	at sun.rmi.transport.tcp.TCPTransport 
> $ConnectionHandler.run(TCPTransport.java:649)
> 	at java.util.concurrent.ThreadPoolExecutor 
> $Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor 
> $Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.geronimo.kernel.GBeanAlreadyExistsException:  
> net.kunye/KunyeEAR/1.0/ear?J2EEApplication=net.kunye/KunyeEAR/1.0/ 
> ear,j2eeType=JACCManager,name=JACCManager
> 	at  
> org 
> .apache 
> .geronimo.kernel.config.Configuration.addGBean(Configuration.java:626)
> 	at  
> org 
> .apache 
> .geronimo 
> .deployment.DeploymentContext.addGBean(DeploymentContext.java:186)
> 	at  
> org 
> .apache 
> .geronimo 
> .security 
> .deployment 
> .GeronimoSecurityBuilderImpl 
> .buildJaccManager(GeronimoSecurityBuilderImpl.java:222)
> 	... 44 more
>
>
> It doesn't seem like security is affected though.
> Quintin Beukes


Mime
View raw message