Hi
   After removing the sun-ejb-jar.xml from the ejb jar file, you should deploy the application successfully. By the way, you should also add a resource link for the SOCKET_MDB1.

2009/9/17 Juergen Weber <weberjn@gmail.com>

Hi,

the steps to reproduce:

download http://code.google.com/p/jca-sockets/
mvn install
install commons-logging to repository
change dist/sockets-rar-1.1.rar and move the com classes directory into a
jar (else Geronimo will not find the classes, seems like JBoss does)
install dist/sockets-rar-1.1.rar with geronimo-ra.xml
-> OK
install dist/sockets-ejb-1.1.jar with openejb-jar.xml

http://www.nabble.com/file/p25487508/geronimo-ra.xml geronimo-ra.xml
http://www.nabble.com/file/p25487508/openejb-jar.xml openejb-jar.xml

->

2009-09-17 10:43:43,274 ERROR [EjbModuleImpl] Module does not exist.
org.apache.openejb.NoSuchApplicationException:
/projekte/geronimo-tomcat6-javaee5-2.2-SNAPSHOT/var/temp/geronimo-deployer3388566485242379358.tmpdir/sockets-ejb-1.1.jar
       at
org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:782)
       at
org.apache.geronimo.openejb.OpenEjbSystemGBean.removeEjbJar(OpenEjbSystemGBean.java:428)
       at
org.apache.geronimo.openejb.EjbModuleImpl.stop(EjbModuleImpl.java:127)
       at
org.apache.geronimo.openejb.EjbModuleImplGBean.doFail(EjbModuleImplGBean.java:47)
       at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:978)
       at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
       at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
       at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
       at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:538)
       at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377)
       at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
       at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
       at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
       at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
       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:815)
       at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
       at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
       at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
       at
org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$d3e1f5f0.startConfiguration(<generated>)
       at
org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
       at java.lang.Thread.run(Thread.java:619)
2009-09-17 10:43:43,275 ERROR [GBeanInstanceState] Error while starting;
GBean is now in the FAILED state:
abstractName="com.googlecode/sockets-ejb/1.1/car?J2EEApplication=null,j2eeType=EJBModule,name=com.googlecode/sockets-ejb/1.1/car"
org.apache.openejb.OpenEJBException: Creating application failed:
/projekte/geronimo-tomcat6-javaee5-2.2-SNAPSHOT/var/temp/geronimo-deployer3388566485242379358.tmpdir/sockets-ejb-1.1.jar:
Error building bean 'SOCKET_MDB'.  Exception: class
java.lang.IllegalStateException: Container does not exist: sockets-rar.
Referenced by deployment: sockets-ejb/SOCKET_MDB: Container does not exist:
sockets-rar.  Referenced by deployment: sockets-ejb/SOCKET_MDB
       at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:665)
       at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:449)
       at
org.apache.openejb.assembler.classic.Assembler.createEjbJar(Assembler.java:399)
       at
org.apache.geronimo.openejb.OpenEjbSystemGBean.createEjbJar(OpenEjbSystemGBean.java:421)
       at
org.apache.geronimo.openejb.EjbModuleImpl.start(EjbModuleImpl.java:122)
       at
org.apache.geronimo.openejb.EjbModuleImplGBean.doStart(EjbModuleImplGBean.java:39)
       at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:948)
       at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
       at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
       at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
       at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:538)
       at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377)
       at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
       at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
       at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
       at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
       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:815)
       at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
       at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
       at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
       at
org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$d3e1f5f0.startConfiguration(<generated>)
       at
org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
       at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.openejb.OpenEJBException: Error building bean
'SOCKET_MDB'.  Exception: class java.lang.IllegalStateException: Container
does not exist: sockets-rar.  Referenced by deployment:
sockets-ejb/SOCKET_MDB: Container does not exist: sockets-rar.  Referenced
by deployment: sockets-ejb/SOCKET_MDB
       at
org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:64)
       at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:526)
       ... 28 more
Caused by: java.lang.IllegalStateException: Container does not exist:
sockets-rar.  Referenced by deployment: sockets-ejb/SOCKET_MDB
       at
org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:60)
       ... 29 more
Deployer operation failed: start of com.googlecode/sockets-ejb/1.1/car
failed
org.apache.geronimo.kernel.config.LifecycleException: start of
com.googlecode/sockets-ejb/1.1/car failed
       at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
       at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
       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:815)
       at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
       at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
       at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
       at
org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$d3e1f5f0.startConfiguration(<generated>)
       at
org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
       at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown
start exception
       at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:522)
       at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
       at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
       ... 14 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
Configuration com.googlecode/sockets-ejb/1.1/car failed to start due to the
following reasons:
 The service
EJBModule=com.googlecode/sockets-ejb/1.1/car,J2EEApplication=null,j2eeType=MessageDrivenBean,name=SOCKET_MDB
did not start because
com.googlecode/sockets-ejb/1.1/car?J2EEApplication=null,j2eeType=EJBModule,name=com.googlecode/sockets-ejb/1.1/car
did not start.
 The service
EJBModule=com.googlecode/sockets-ejb/1.1/car,J2EEApplication=null,j2eeType=MessageDrivenBean,name=SOCKET_MDB1
did not start because
com.googlecode/sockets-ejb/1.1/car?J2EEApplication=null,j2eeType=EJBModule,name=com.googlecode/sockets-ejb/1.1/car
did not start.
 The service
J2EEApplication=null,j2eeType=EJBModule,name=com.googlecode/sockets-ejb/1.1/car
did not start because Creating application failed:
/projekte/geronimo-tomcat6-javaee5-2.2-SNAPSHOT/var/temp/geronimo-deployer3388566485242379358.tmpdir/sockets-ejb-1.1.jar:
Error building bean 'SOCKET_MDB'.  Exception: class
java.lang.IllegalStateException: Container does not exist: sockets-rar.
Referenced by deployment: sockets-ejb/SOCKET_MDB: Container does not exist:
sockets-rar.  Referenced by deployment: sockets-ejb/SOCKET_MDB

       at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:485)
       ... 16 more
2009-09-17 10:43:43,333 ERROR [DeploymentPortlet] The application was not
successfully started
start of com.googlecode/sockets-ejb/1.1/car failed
org.apache.geronimo.kernel.config.LifecycleException: start of
com.googlecode/sockets-ejb/1.1/car failed
       at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
       at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
       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:815)
       at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
       at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
       at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
       at
org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$d3e1f5f0.startConfiguration(<generated>)
       at
org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
       at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown
start exception
       at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:522)
       at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
       at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
       ... 14 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException:
Configuration com.googlecode/sockets-ejb/1.1/car failed to start due to the
following reasons:
 The service
EJBModule=com.googlecode/sockets-ejb/1.1/car,J2EEApplication=null,j2eeType=MessageDrivenBean,name=SOCKET_MDB
did not start because
com.googlecode/sockets-ejb/1.1/car?J2EEApplication=null,j2eeType=EJBModule,name=com.googlecode/sockets-ejb/1.1/car
did not start.
 The service
EJBModule=com.googlecode/sockets-ejb/1.1/car,J2EEApplication=null,j2eeType=MessageDrivenBean,name=SOCKET_MDB1
did not start because
com.googlecode/sockets-ejb/1.1/car?J2EEApplication=null,j2eeType=EJBModule,name=com.googlecode/sockets-ejb/1.1/car
did not start.
 The service
J2EEApplication=null,j2eeType=EJBModule,name=com.googlecode/sockets-ejb/1.1/car
did not start because Creating application failed:
/projekte/geronimo-tomcat6-javaee5-2.2-SNAPSHOT/var/temp/geronimo-deployer3388566485242379358.tmpdir/sockets-ejb-1.1.jar:
Error building bean 'SOCKET_MDB'.  Exception: class
java.lang.IllegalStateException: Container does not exist: sockets-rar.
Referenced by deployment: sockets-ejb/SOCKET_MDB: Container does not exist:
sockets-rar.  Referenced by deployment: sockets-ejb/SOCKET_MDB

       at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:485)
       ... 16 more





kevan wrote:
>
>
> On Sep 16, 2009, at 2:02 PM, David Jencks wrote:
>
>> I don't see anything obvious, is there any more stack trace?
>
>  From the message text, this must be coming from
> org.apache.openejb.assembler.classic..EjbJarBuilder.
>
> Jurgen,
> If I understand correctly, somebody should be able to download jca-
> sockets and deploying using your plan to recreate the problem? Anybody
> interested in investigating?
>
> --kevan
>
>

--
View this message in context: http://www.nabble.com/Container-does-not-exist-tp25461869s134p25487508.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.




--
Ivan