You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Kanchana Welagedara <ka...@opensource.lk> on 2007/02/16 09:16:03 UTC
Deploying error in JCA IM-Application
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.createTempConfiguration(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.buildConfiguration(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.doDeploy(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.loadConfiguration(SimpleConfigurationManager.java:294)
at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:115)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:281)
at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:111)
at org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration(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.resolveInClassLoader(DefaultArtifactResolver.java:119)
at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(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.resolveParentIds(SimpleConfigurationManager.java:466)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst(SimpleConfigurationManager.java:425)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:291)
... 28 more
can anybody please help me?
Regards
Kanchana
Re: Deploying error in JCA IM-Application
Posted by Kanchana Welagedara <ka...@opensource.lk>.
Hi David
I successfully deployed the connector.(I wrote).Now I have problem of
deploying the client server itself.I'm sure my deployment plans are
correctly placed in META_INF directory .The deployment package is also
captured those.But still throws the following error.I'm *not* using
little G.
Error: Unable to distribute imj2c-client.war: 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.
geronimo-web.xml
=====================================================================
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
<dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">
<dep:moduleId>
<dep:groupId>geronimo</dep:groupId>
<dep:artifactId>IMClient</dep:artifactId>
<dep:version>1.1</dep:version>
<dep:type>war</dep:type>
</dep:moduleId>
</dep:environment>
<context-root>/imclient</context-root>
</web-app>
======================================================================
web.xml
-------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
<web-app>
<display-name>IM EIS Sample Application</display-name>
<servlet>
<servlet-name>IMJCATest</servlet-name>
<servlet-class>test.web.IMConnectorServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>IMJCATest</servlet-name>
<url-pattern>/imj2c</url-pattern>
</servlet-mapping>
<resource-ref>
<res-ref-name>eis/imEIS</res-ref-name>
<res-type>org.geronimo.jca.sample.cci.IMConnectionFactory</res-type>
<res-auth>Application</res-auth>
</resource-ref>
</web-app>
-------------------------------------------------------------------------
application.xml
=========================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE
Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
<application>
<display-name>jca-im-demo</display-name>
<description>Example application to access the IM EIS</description>
<module>
<web>
<web-uri>imj2c-client.war</web-uri>
<context-root>/imj2c-client</context-root>
</web>
</module>
</application>
==========================================================================
Really appreciate if you can comment on this.
Regards
Kanchana
On Fri, 2007-02-16 at 13:17 -0800, David Jencks wrote:
> On Feb 16, 2007, at 4:30 AM, Kanchana Welagedara wrote:
>
> > 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
>
> good, you seem to have gotten farther
> > and used tranql
> > connector in geronimo-application.xml
> I'm not sure what you are saying here. Your attempt to deploy the
> rar doesn't appear to involve an ear. By mentioning the tranql code
> I was trying to suggest that if your connector doesn't work right you
> might consult the tranql connectors for ideas or base classes you
> could extend.
>
> >
> > 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.
>
> This looks to me like a fairly clear error message, it's saying that
> the property "RepositoryPath" can't be set on the managed connection
> factory. Is it listed correctly in the ra.xml? Are there actually
> get/set method on the MCF class?
>
> thanks
> david jencks
>
> >
> > ----------------------------------------------------------------------
> > --------------------------------------------------------
> > 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.createTempConfigura
> >>> ti
> >>> 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.buildConfigurat
> >>> io
> >>> 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.do
> >>> De
> >>> 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.loadCon
> >>> fi
> >>> guration(SimpleConfigurationManager.java:294)
> >>> at
> >>> org.apache.geronimo.deployment.DeploymentConfigurationManager.loadCo
> >>> nf
> >>> iguration(DeploymentConfigurationManager.java:115)
> >>> at
> >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadCon
> >>> fi
> >>> guration(SimpleConfigurationManager.java:281)
> >>> at
> >>> org.apache.geronimo.deployment.DeploymentConfigurationManager.loadCo
> >>> nf
> >>> iguration(DeploymentConfigurationManager.java:111)
> >>> at
> >>> org.apache.geronimo.deployment.DeploymentContext.createTempConfigura
> >>> ti
> >>> 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.resolv
> >>> eI
> >>> nClassLoader(DefaultArtifactResolver.java:119)
> >>> at
> >>> org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolv
> >>> eI
> >>> 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.resolve
> >>> Pa
> >>> rentIds(SimpleConfigurationManager.java:466)
> >>> at
> >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDep
> >>> th
> >>> First(SimpleConfigurationManager.java:425)
> >>> at
> >>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadCon
> >>> fi
> >>> guration(SimpleConfigurationManager.java:291)
> >>> ... 28 more
> >>>
> >>> can anybody please help me?
> >>>
> >>> Regards
> >>> Kanchana
> >>>
> >>
> >
>
Re: Deploying error in JCA IM-Application
Posted by David Jencks <da...@yahoo.com>.
On Feb 16, 2007, at 4:30 AM, Kanchana Welagedara wrote:
> 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
good, you seem to have gotten farther
> and used tranql
> connector in geronimo-application.xml
I'm not sure what you are saying here. Your attempt to deploy the
rar doesn't appear to involve an ear. By mentioning the tranql code
I was trying to suggest that if your connector doesn't work right you
might consult the tranql connectors for ideas or base classes you
could extend.
>
> 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.
This looks to me like a fairly clear error message, it's saying that
the property "RepositoryPath" can't be set on the managed connection
factory. Is it listed correctly in the ra.xml? Are there actually
get/set method on the MCF class?
thanks
david jencks
>
> ----------------------------------------------------------------------
> --------------------------------------------------------
> 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.createTempConfigura
>>> ti
>>> 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.buildConfigurat
>>> io
>>> 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.do
>>> De
>>> 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.loadCon
>>> fi
>>> guration(SimpleConfigurationManager.java:294)
>>> at
>>> org.apache.geronimo.deployment.DeploymentConfigurationManager.loadCo
>>> nf
>>> iguration(DeploymentConfigurationManager.java:115)
>>> at
>>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadCon
>>> fi
>>> guration(SimpleConfigurationManager.java:281)
>>> at
>>> org.apache.geronimo.deployment.DeploymentConfigurationManager.loadCo
>>> nf
>>> iguration(DeploymentConfigurationManager.java:111)
>>> at
>>> org.apache.geronimo.deployment.DeploymentContext.createTempConfigura
>>> ti
>>> 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.resolv
>>> eI
>>> nClassLoader(DefaultArtifactResolver.java:119)
>>> at
>>> org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolv
>>> eI
>>> 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.resolve
>>> Pa
>>> rentIds(SimpleConfigurationManager.java:466)
>>> at
>>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDep
>>> th
>>> First(SimpleConfigurationManager.java:425)
>>> at
>>> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadCon
>>> fi
>>> guration(SimpleConfigurationManager.java:291)
>>> ... 28 more
>>>
>>> can anybody please help me?
>>>
>>> Regards
>>> Kanchana
>>>
>>
>
Re: Deploying error in JCA IM-Application
Posted by Kanchana Welagedara <ka...@opensource.lk>.
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
> >
>
Re: Deploying error in JCA IM-Application
Posted by David Jencks <da...@yahoo.com>.
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.
>
> <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
>