Geronimo does not support compsite bundles, maybe you could try to use eba, which is another kind of programming model in OSGi runtime.

2012/8/24 정재부 <itsjb.jung@samsung.com>

Dear, Apache team.

I’m JB, osgi developer in korea.

Once I wanted to make a composite bundle project with Geronimo, everything was OK but I got one problem.

When I made New Project > OSGi composite bundle project and then I deployed it on Geronimo V3.0,( I already configured GEP and OSGi development tools in my eclipse )

one problem occurred. The followings are full stacktrace of that.

-----------------------------------------------------------------------

Cannot deploy the requested application module because no deployer is able to handle it.  This can happen if you have omitted the J2EE deployment descriptor, disabled a deployer module, or if, for example, you are trying to deploy an EJB module on a minimal Geronimo server that does not have EJB support installed.  (moduleFile=C:\Users\JB\AppData\Local\Temp\geronimo-deployer1611330958535073575.tmpdir\compositesample.cba)

org.apache.geronimo.common.DeploymentException: Cannot deploy the requested application module because no deployer is able to handle it.  This can happen if you have omitted the J2EE deployment descriptor, disabled a deployer module, or if, for example, you are trying to deploy an EJB module on a minimal Geronimo server that does not have EJB support installed.  (moduleFile=C:\Users\JB\AppData\Local\Temp\geronimo-deployer1611330958535073575.tmpdir\compositesample.cba)

             at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:244)

             at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140)

             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:131)

             at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)

             at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)

             at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:344)

             at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)

             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:131)

             at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)

             at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)

             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 com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:447)

             at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)

             at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)

             at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)

             at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)

             at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)

             at sun.reflect.GeneratedMethodAccessor71.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:303)

             at sun.rmi.transport.Transport$1.run(Transport.java:159)

             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:662)

 

so, is there some way to deploy cba files on Geronimo V3.0?

Or, I’m wondering if you can tell me about how I can make isolated osgi bundle.

I want to make many bundles that these can’t access and refer to each other.

Thanks in advance.

Regards.




--
Ivan