Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 91620 invoked from network); 16 Feb 2007 09:25:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2007 09:25:49 -0000 Received: (qmail 83061 invoked by uid 500); 16 Feb 2007 09:25:54 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 82852 invoked by uid 500); 16 Feb 2007 09:25:53 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 82841 invoked by uid 99); 16 Feb 2007 09:25:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Feb 2007 01:25:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.206.242] (HELO smtp109.plus.mail.mud.yahoo.com) (68.142.206.242) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 16 Feb 2007 01:25:42 -0800 Received: (qmail 27199 invoked from network); 16 Feb 2007 09:25:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=lUtvmIexShxOVptAiUfHnKkZtC4+uWgCL8thNZdGABGU1lLYq6QKNZFrJ2ONQq8IZlESFZxBmt0GsWd+Jfq/xHVaIilWVRPAblC2vwPIs+guR3AysG2cTm0isKLBIimWdN6X7boDbnaJXDApinr4955JqIEqt2W4uIR6gFPn6m0= ; Received: from unknown (HELO ?10.11.55.41?) (david_jencks@63.105.20.225 with plain) by smtp109.plus.mail.mud.yahoo.com with SMTP; 16 Feb 2007 09:25:21 -0000 X-YMail-OSG: thXCTDAVM1nfYs7UEYw0HlPhdAErAPo3frLZ.csmJRHUD55HC8E.3d.Y4SUo1uYwt.sHVFc7_zpvEgVApFqW_4pYc0H8bbwSD9.U7pwEdq6hzByCv18sy6wrqHKdc7kyjR.riuetsZJgGSk- Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <1171613763.5470.20.camel@kanchi-laptop> References: <1171613763.5470.20.camel@kanchi-laptop> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: Deploying error in JCA IM-Application Date: Fri, 16 Feb 2007 01:25:18 -0800 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Leave out the dependencies from your geronimo plan, and if it doesn't deploy please show the exact command you are using to try to deploy it. Did you write the connector? You might want to look at the tranql connector framework as it has a lot of the necessary infrastructure implemented and makes it harder to implement the most common beginner mistakes I've seen in everyones first resource adapter (including mine). thanks david jencks On Feb 16, 2007, at 12:16 AM, Kanchana Welagedara wrote: > Hi All > > I think geronimo needs more samples in the area of JCA presently it > has > only one sample in the JBOSS to geronimo migration. > > So I'm trying out a sample application which has the following dynamic > view > > 1.EJB looks up the JNDI for the instant messenger Java Connector. > This returns the javax.cci.ConnectionFactory. > 2. EJB then requests a connection from the ConnectionFactory. > 3. ConnectionFactory utilizes the ConnectionManager to request > for > a connection. > 4. The ConnectionManager checks to see if there are any pooled > connections. If there are none, it uses the > MockManagedConnectionFactory to create a > MockManagedConnection. > 5. The application server creates a Connection using the > MockManagedConnection. > 6. The application server sets up the event listener on the > Connection. > 7. The application server returns Connection to the > ConnectionFactory. > 8. The ConnectionFactory returns the Connection to the EJB. > 9. EJB calls the send method on the Connection to send an instant > message to another user. > 10. EJB closes the Connection. > 11. Connection informs the MockManagedConnection so that it can be > returned to the pool by ConnectionManager. > > I wonder whether there is an issue from the side geronimo JCA > implementation for implementing this type of application. > I used the following dependencies in the geronimo-ra.xml file > distributed as a rar file. > > > > org > apache > geronimo > Server > > > > geronimo > connector > car > > > > geronimo > connector-builder > car > > > > > But when I tried to deploy this in geronimo1.1 and get the following > error > > Unable to create configuration for deployment > org.apache.geronimo.common.DeploymentException: Unable to create > configuration for deployment > at > org.apache.geronimo.deployment.DeploymentContext.createTempConfigurati > on(DeploymentContext.java:117) > at org.apache.geronimo.deployment.DeploymentContext. > (DeploymentContext.java:97) > at org.apache.geronimo.deployment.DeploymentContext. > (DeploymentContext.java:79) > at org.apache.geronimo.j2ee.deployment.EARContext. > (EARContext.java:70) > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguratio > n(EARConfigBuilder.java:449) > at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$ > $FastClassByCGLIB$$38e56ec6.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke > (FastMethodInvoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke > (GBeanOperation.java:122) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke > (GBeanInstance.java:817) > 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.deployment.ConfigurationBuilder$ > $EnhancerByCGLIB$$dd4db412.buildConfiguration() > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124) > at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$ > $734a235d.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke > (FastMethodInvoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke > (GBeanOperation.java:122) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke > (GBeanInstance.java:852) > at org.apache.geronimo.kernel.basic.BasicKernel.invoke > (BasicKernel.java:239) > at > org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDe > ploy(AbstractDeployCommand.java:106) > at > org.apache.geronimo.deployment.plugin.local.DistributeCommand.run > (DistributeCommand.java:60) > at java.lang.Thread.run(Thread.java:595) > Caused by: org.apache.geronimo.kernel.config.LifecycleException: > load of com/prerna/jca/imj2c.rar failed > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfi > guration(SimpleConfigurationManager.java:294) > at > org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConf > iguration(DeploymentConfigurationManager.java:115) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfi > guration(SimpleConfigurationManager.java:281) > at > org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConf > iguration(DeploymentConfigurationManager.java:111) > at > org.apache.geronimo.deployment.DeploymentContext.createTempConfigurati > on(DeploymentContext.java:114) > ... 24 more > Caused by: > org.apache.geronimo.kernel.repository.MissingDependencyException: > Unable to resolve dependency geronimo/connector//car > at > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveI > nClassLoader(DefaultArtifactResolver.java:119) > at > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveI > nClassLoader(DefaultArtifactResolver.java:98) > at org.apache.geronimo.kernel.repository.DefaultArtifactResolver$ > $FastClassByCGLIB$$e847b746.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke > (FastMethodInvoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke > (GBeanOperation.java:122) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke > (GBeanInstance.java:817) > 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.kernel.repository.ArtifactResolver$ > $EnhancerByCGLIB$$88026997.resolveInClassLoader() > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolvePa > rentIds(SimpleConfigurationManager.java:466) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepth > First(SimpleConfigurationManager.java:425) > at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfi > guration(SimpleConfigurationManager.java:291) > ... 28 more > > can anybody please help me? > > Regards > Kanchana >