You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Juergen Weber <we...@gmail.com> on 2009/09/15 23:10:04 UTC

Container does not exist

Hi,

I tried to run http://code.google.com/p/jca-sockets/ in Geronimo
(2.2-SNAPSHOT Build 	2009.09.10-08:12:53.147-0400)

and installed the .rar and the ejb.jar with the plans below.

On starting the sample EJB I get
  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-deployer6984003300117521195.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

I am puzzled by the error message, the "sockets-rar" is nowhere in a plan.
What does the message mean?

Thanks,
Juergen

http://code.google.com/p/jca-sockets/source/browse/trunk/sockets-rar/src/main/rar/META-INF/ra.xml
http://code.google.com/p/jca-sockets/source/browse/trunk/sockets-ejb/src/main/resources/META-INF/ejb-jar.xml

<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
  <dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
    <dep:moduleId>
      <dep:groupId>com.googlecode</dep:groupId>
      <dep:artifactId>jcasockets</dep:artifactId>
      <dep:version>1.1a</dep:version>
      <dep:type>car</dep:type>
    </dep:moduleId>
    <dep:dependencies>
    
    <dep:dependency>
                <dep:groupId>commons-logging</dep:groupId>
                <dep:artifactId>commons-logging</dep:artifactId>
                <dep:version>1.0.4</dep:version>
                <dep:type>jar</dep:type>
            </dep:dependency>
       </dep:dependencies>


    
    <dep:hidden-classes/>
    <dep:non-overridable-classes/>
  </dep:environment>
  <resourceadapter>
    <resourceadapter-instance>
      <resourceadapter-name>MyJcasockets</resourceadapter-name>
      <workmanager>
        <gbean-link>DefaultWorkManager</gbean-link>
      </workmanager>
    </resourceadapter-instance>
  </resourceadapter>
</connector>


<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
	xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2"
xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.2"
	xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">

	<sys:environment>
		<sys:moduleId>
			<sys:groupId>com.googlecode</sys:groupId>
			<sys:artifactId>sockets-ejb</sys:artifactId>
			<sys:version>1.1</sys:version>
			<sys:type>car</sys:type>
		</sys:moduleId>
		<sys:dependencies>
			<sys:dependency>
				<sys:groupId>com.googlecode</sys:groupId>
				<sys:artifactId>jcasockets</sys:artifactId>  
				<sys:version>1.1a</sys:version>
				<sys:type>car</sys:type>
			</sys:dependency>
		</sys:dependencies>
		<sys:hidden-classes />
		<sys:non-overridable-classes />
	</sys:environment>
	<enterprise-beans>
		<message-driven>
			<ejb-name>SOCKET_MDB</ejb-name>
			<resource-adapter>
				<resource-link>MyJcasockets</resource-link>
			</resource-adapter>
		</message-driven>
	</enterprise-beans>

</openejb-jar>

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


Re: Container does not exist

Posted by Juergen Weber <we...@gmail.com>.
Thanks very much for your support, it works now for me, too. I'd never have
guessed that sun-ejb-jar.xml was the problem.
Including several proprietary plans is a good pattern to keep an app binary
portable, so I think the sun-ejb-jar.xml problem should be fixed.

Thanks,
Juergen


Ivan Xu wrote:
> 
> Just googled, find a Geronimo JIRA
> http://issues.apache.org/jira/browse/GERONIMO-4573
> Not sure why we did not set openejb.vendor.config=GERONIMO in Geronimo by
> default, I will add it to the openejb plan file.
> 
> 2009/9/17 Kevan Miller <ke...@gmail.com>
> 
>>
>> On Sep 17, 2009, at 10:25 AM, Ivan wrote:
>>
>>  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.
>>>
>>
>> Thanks Ivan! We've had sun-ejb-jar.xml problems before. Thought it was
>> fixed (in Geronimo or OpenEJB?), but maybe there's a problem on 2.2?
>> Removing the file, may get Juergen up and running, but there's an
>> underlying
>> which should be fixed for 2.2.
>>
>> --kevan
>>
>>
> 
> 
> -- 
> Ivan
> 
> 

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


Re: Container does not exist

Posted by Ivan <xh...@gmail.com>.
Just googled, find a Geronimo JIRA
http://issues.apache.org/jira/browse/GERONIMO-4573
Not sure why we did not set openejb.vendor.config=GERONIMO in Geronimo by
default, I will add it to the openejb plan file.

2009/9/17 Kevan Miller <ke...@gmail.com>

>
> On Sep 17, 2009, at 10:25 AM, Ivan wrote:
>
>  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.
>>
>
> Thanks Ivan! We've had sun-ejb-jar.xml problems before. Thought it was
> fixed (in Geronimo or OpenEJB?), but maybe there's a problem on 2.2?
> Removing the file, may get Juergen up and running, but there's an underlying
> which should be fixed for 2.2.
>
> --kevan
>
>


-- 
Ivan

Re: Container does not exist

Posted by Kevan Miller <ke...@gmail.com>.
On Sep 17, 2009, at 10:25 AM, Ivan wrote:

> 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.

Thanks Ivan! We've had sun-ejb-jar.xml problems before. Thought it was  
fixed (in Geronimo or OpenEJB?), but maybe there's a problem on 2.2?  
Removing the file, may get Juergen up and running, but there's an  
underlying which should be fixed for 2.2.

--kevan


Re: Container does not exist

Posted by Ivan <xh...@gmail.com>.
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 <we...@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

Re: Container does not exist

Posted by Juergen Weber <we...@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.


Re: Container does not exist

Posted by Kevan Miller <ke...@gmail.com>.
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

Re: Container does not exist

Posted by David Jencks <da...@yahoo.com>.
I don't see anything obvious, is there any more stack trace?

thanks
david jencks

On Sep 16, 2009, at 10:53 AM, Juergen Weber wrote:

>
> Really nobody an idea what went wrong?
>
> Thx, Juergen
>
>
> Juergen Weber wrote:
>>
>> Hi,
>>
>> I tried to run http://code.google.com/p/jca-sockets/ in Geronimo
>> (2.2-SNAPSHOT Build 	2009.09.10-08:12:53.147-0400)
>>
>> and installed the .rar and the ejb.jar with the plans below.
>>
>> On starting the sample EJB I get
>>  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- 
>> deployer6984003300117521195.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
>>
>> I am puzzled by the error message, the "sockets-rar" is nowhere in  
>> a plan.
>> What does the message mean?
>>
>> Thanks,
>> Juergen
>>
>> http://code.google.com/p/jca-sockets/source/browse/trunk/sockets-rar/src/main/rar/META-INF/ra.xml
>> http://code.google.com/p/jca-sockets/source/browse/trunk/sockets-ejb/src/main/resources/META-INF/ejb-jar.xml
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2 
>> ">
>>  <dep:environment
>> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
>>    <dep:moduleId>
>>      <dep:groupId>com.googlecode</dep:groupId>
>>      <dep:artifactId>jcasockets</dep:artifactId>
>>      <dep:version>1.1a</dep:version>
>>      <dep:type>car</dep:type>
>>    </dep:moduleId>
>>    <dep:dependencies>
>>
>>    <dep:dependency>
>>                <dep:groupId>commons-logging</dep:groupId>
>>                <dep:artifactId>commons-logging</dep:artifactId>
>>                <dep:version>1.0.4</dep:version>
>>                <dep:type>jar</dep:type>
>>            </dep:dependency>
>>       </dep:dependencies>
>>
>>
>>
>>    <dep:hidden-classes/>
>>    <dep:non-overridable-classes/>
>>  </dep:environment>
>>  <resourceadapter>
>>    <resourceadapter-instance>
>>      <resourceadapter-name>MyJcasockets</resourceadapter-name>
>>      <workmanager>
>>        <gbean-link>DefaultWorkManager</gbean-link>
>>      </workmanager>
>>    </resourceadapter-instance>
>>  </resourceadapter>
>> </connector>
>>
>>
>> <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
>> 	xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2"
>> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.2"
>> 	xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>>
>> 	<sys:environment>
>> 		<sys:moduleId>
>> 			<sys:groupId>com.googlecode</sys:groupId>
>> 			<sys:artifactId>sockets-ejb</sys:artifactId>
>> 			<sys:version>1.1</sys:version>
>> 			<sys:type>car</sys:type>
>> 		</sys:moduleId>
>> 		<sys:dependencies>
>> 			<sys:dependency>
>> 				<sys:groupId>com.googlecode</sys:groupId>
>> 				<sys:artifactId>jcasockets</sys:artifactId>
>> 				<sys:version>1.1a</sys:version>
>> 				<sys:type>car</sys:type>
>> 			</sys:dependency>
>> 		</sys:dependencies>
>> 		<sys:hidden-classes />
>> 		<sys:non-overridable-classes />
>> 	</sys:environment>
>> 	<enterprise-beans>
>> 		<message-driven>
>> 			<ejb-name>SOCKET_MDB</ejb-name>
>> 			<resource-adapter>
>> 				<resource-link>MyJcasockets</resource-link>
>> 			</resource-adapter>
>> 		</message-driven>
>> 	</enterprise-beans>
>>
>> </openejb-jar>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Container-does-not-exist-tp25461869s134p25477387.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>


Re: Container does not exist

Posted by Juergen Weber <we...@gmail.com>.
Really nobody an idea what went wrong?

Thx, Juergen


Juergen Weber wrote:
> 
> Hi,
> 
> I tried to run http://code.google.com/p/jca-sockets/ in Geronimo
> (2.2-SNAPSHOT Build 	2009.09.10-08:12:53.147-0400)
> 
> and installed the .rar and the ejb.jar with the plans below.
> 
> On starting the sample EJB I get
>   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-deployer6984003300117521195.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
> 
> I am puzzled by the error message, the "sockets-rar" is nowhere in a plan.
> What does the message mean?
> 
> Thanks,
> Juergen
> 
> http://code.google.com/p/jca-sockets/source/browse/trunk/sockets-rar/src/main/rar/META-INF/ra.xml
> http://code.google.com/p/jca-sockets/source/browse/trunk/sockets-ejb/src/main/resources/META-INF/ejb-jar.xml
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
>   <dep:environment
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
>     <dep:moduleId>
>       <dep:groupId>com.googlecode</dep:groupId>
>       <dep:artifactId>jcasockets</dep:artifactId>
>       <dep:version>1.1a</dep:version>
>       <dep:type>car</dep:type>
>     </dep:moduleId>
>     <dep:dependencies>
>     
>     <dep:dependency>
>                 <dep:groupId>commons-logging</dep:groupId>
>                 <dep:artifactId>commons-logging</dep:artifactId>
>                 <dep:version>1.0.4</dep:version>
>                 <dep:type>jar</dep:type>
>             </dep:dependency>
>        </dep:dependencies>
> 
> 
>     
>     <dep:hidden-classes/>
>     <dep:non-overridable-classes/>
>   </dep:environment>
>   <resourceadapter>
>     <resourceadapter-instance>
>       <resourceadapter-name>MyJcasockets</resourceadapter-name>
>       <workmanager>
>         <gbean-link>DefaultWorkManager</gbean-link>
>       </workmanager>
>     </resourceadapter-instance>
>   </resourceadapter>
> </connector>
> 
> 
> <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
> 	xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2"
> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.2"
> 	xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
> 
> 	<sys:environment>
> 		<sys:moduleId>
> 			<sys:groupId>com.googlecode</sys:groupId>
> 			<sys:artifactId>sockets-ejb</sys:artifactId>
> 			<sys:version>1.1</sys:version>
> 			<sys:type>car</sys:type>
> 		</sys:moduleId>
> 		<sys:dependencies>
> 			<sys:dependency>
> 				<sys:groupId>com.googlecode</sys:groupId>
> 				<sys:artifactId>jcasockets</sys:artifactId>  
> 				<sys:version>1.1a</sys:version>
> 				<sys:type>car</sys:type>
> 			</sys:dependency>
> 		</sys:dependencies>
> 		<sys:hidden-classes />
> 		<sys:non-overridable-classes />
> 	</sys:environment>
> 	<enterprise-beans>
> 		<message-driven>
> 			<ejb-name>SOCKET_MDB</ejb-name>
> 			<resource-adapter>
> 				<resource-link>MyJcasockets</resource-link>
> 			</resource-adapter>
> 		</message-driven>
> 	</enterprise-beans>
> 
> </openejb-jar>
> 
> 

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