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