Hi David
Thanks for the reply.ʍy results are in line.
On Fri, 2007-02-16 at 01:25 -0800, David Jencks wrote:
> 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.
I removed the dependencies from geronimo-r plan and used tranql
connector in geronimo-application.xml
I used following command to deploy the rar.
<geronimo-home>/bin$ java -jar deployer.jar
deploy /home/kanchi/samples/jca_sample/imj2c/dist/imj2c.rar
Then I got the following error while geronimo web console says
successfully deployed the application.
------------------------------------------------------------------------------------------------------------------------------
No ModuleID or TargetModuleID provided. Attempting to guess based
on the content of the archive.
Attempting to use ModuleID 'org/geronimo/jca/imj2c.rar'
Stopped org/geronimo/jca/imj2c.rar
Unloaded org/geronimo/jca/imj2c.rar
Uninstalled org/geronimo/jca/imj2c.rar
Deployed org/geronimo/jca/imj2c.rar
Redeployed org/geronimo/jca/imj2c.rar
Error: Operation failed: start of org/geronimo/jca/imj2c.rar failed
Unknown start exception
Configuration org/geronimo/jca/imj2c.rar failed to start due to
the
following reasons:
The service
J2EEApplication=null,JCAResource=org/geronimo/jca/imj2c.rar,ResourceAdapter=org/geronimo/jca/imj2c.rar,ResourceAdapterModule=org/geronimo/jca/imj2c.rar,j2eeType=JCAConnectionFactory,name=connectorcci
did not start because
org/geronimo/jca/imj2c.rar?J2EEApplication=null,JCAConnectionFactory=connectorcci,JCAResource=org/geronimo/jca/imj2c.rar,ResourceAdapter=org/geronimo/jca/imj2c.rar,ResourceAdapterModule=org/geronimo/jca/imj2c.rar,j2eeType=JCAManagedConnectionFactory,name=connectorcci
did not start.
The service
J2EEApplication=null,JCAConnectionFactory=connectorcci,JCAResource=org/geronimo/jca/imj2c.rar,ResourceAdapter=org/geronimo/jca/imj2c.rar,ResourceAdapterModule=org/geronimo/jca/imj2c.rar,j2eeType=JCAManagedConnectionFactory,name=connectorcci
did not start because the setter for attribute 'RepositoryPath'
threw an exception.
java.lang.IllegalArgumentException:
org.geronimo.jca.sample.spi.IMManagedConnectionFactory: no setter
for
RepositoryPath
at
org.apache.geronimo.gbean.DynamicGBeanDelegate.setAttribute(DynamicGBeanDelegate.java:132)
at
org.apache.geronimo.connector.outbound.ManagedConnectionFactoryWrapper.setAttribute(ManagedConnectionFactoryWrapper.java:246
....mor
-------------------------------------------------------------------------------------------------------------------------
> 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.
> >
> > <dep:dependencies>
> > <dep:dependency>
> > <dep:groupId>org</dep:groupId>
> > <dep:artifactId>apache</dep:artifactId>
> > <dep:version>geronimo</dep:version>
> > <dep:type>Server</dep:type>
> > </dep:dependency>
> >
> > <dep:dependency>
> > <dep:groupId>geronimo</dep:groupId>
> > <dep:artifactId>connector</dep:artifactId>
> > <dep:type>car</dep:type>
> > </dep:dependency>
> >
> > <dep:dependency>
> > <dep:groupId>geronimo</dep:groupId>
> > <dep:artifactId>connector-builder</dep:artifactId>
> > <dep:type>car</dep:type>
> > </dep:dependency>
> > </dep:dependencies>
> >
> >
> > 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.<init>
> > (DeploymentContext.java:97)
> > at org.apache.geronimo.deployment.DeploymentContext.<init>
> > (DeploymentContext.java:79)
> > at org.apache.geronimo.j2ee.deployment.EARContext.<init>
> > (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(<generated>)
> > 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(<generated>)
> > 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(<generated>)
> > 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(<generated>)
> > 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(<generated>)
> > 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
> >
>