OK, this means that the module can't find an ActiveMQ resource group
in its parent modules.
Did you create a JMS resource group in the counsole, or deploy a JMS
plan on the command line, that had specific connection factories and
destinations in it for this application? If so, you should add a
dependency on that module.
Otherwise, you can try changing the dependency on
geronimo/activemq-broker/*/car to a dependency on
geronimo/activemq/*/car in order to pick up the default JMS resource
group. (activemq depends on activemq-broker so you'll still end up
with activemq-broker being included, though you could list them
separately too and it wouldn't hurt.)
Thanks,
Aaron
On 7/22/06, Kanchana Welagedara <[EMAIL PROTECTED]> wrote:
Hi Aaron
I tried deploying the application with the given corrections in openejb.jar
.Also I had to modify the ejb-jar.xml because I had a done mistake in
<mesaage-driven>.Including both modifications I rebuild and Redeployed the
ejb jar and found the following error
No resource adapter instance gbean found matching
?j2eeType=JCAResourceAdapter,name=ActiveMQ%20RA# from
configuration
org.apache.geronimo.sample.product/ejb/1153570748045/jar
org.apache.geronimo.common.DeploymentException: No resource
adapter instance gbean found matching
?j2eeType=JCAResourceAdapter,name=ActiveMQ%20RA# from
configuration
org.apache.geronimo.sample.product/ejb/1153570748045/jar
at
org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.locateActivationSpecInfo(ConnectorModuleBuilder.java:804)
at
org.apache.geronimo.connector.deployment.ConnectorModuleBuilder$$FastClassByCGLIB$$a535b6aa.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.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$7f3c3265.locateActivationSpecInfo
(<generated>)
at
org.apache.geronimo.j2ee.deployment.RefContext.getActivationSpecInfo(RefContext.java:122)
at
org.openejb.deployment.MdbBuilder.addActivationSpecWrapperGBean(MdbBuilder.java:252)
at org.openejb.deployment.MdbBuilder.buildBeans
(MdbBuilder.java:124)
at
org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuilder.java:527)
at
org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.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.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$d7e38d62.addGBeans
(<generated>)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:559)
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$$e3d095d4.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:534)
Could you please share your thoughts ?
Thanks
Kanchana
On 7/21/06, Aaron Mulder <[EMAIL PROTECTED]> wrote:
> The dependency is wrong -- did you use the converter tool to generate
> this deployment plan?
>
> I just gave the specific syntax in a different thread (yesterday, I
> think), but you need to replace the <dep:dependency> with one that has
> group=geronimo, artifact=activemq-broker, type=car. Let me know if
> that works for you.
>
> Thanks,
> Aaron
>
> On 7/21/06, Kanchana Welagedara <[EMAIL PROTECTED] > wrote:
> > Hi
> >
> > I'm trying to deploy a MDB with Geronimov1.1.Folloing are the deployment
> > descriptors I used.
> >
> >
--------------------------------------------------------------
ejb-jar.xml------------------------------------------------------------------------------------
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
> > JavaBeans 2.0//EN"
> > "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
> > <ejb-jar>
> > <enterprise-beans>
> > <session>
> > <display-name>
> > Goods Stateless Session Bean Local Interfaces
> > </display-name>
> > <ejb-name>GoodsEJB</ejb-name>
> > <local-home>
> >
> > org.apache.geronimo.sample.product.ejb.GoodsHomeLocal
> > </local-home>
> > <local>
> >
> > org.apache.geronimo.sample.product.ejb.GoodsLocal
> > </local>
> > <ejb-class>
> >
> > org.apache.geronimo.sample.product.ejb.GoodBean
> > </ejb-class>
> > <session-type>Stateless</session-type>
> >
<transaction-type>Container</transaction-type>
> > </session>
> > <message-driven>
> > <display-name>Goods MDB</display-name>
> > <ejb-name>GoodsMDB</ejb-name>
> >
> >
<ejb-class>org.apache.geronimo.sample.product.msg.GoodsMDB
> > </ejb-class>
> > <messaging-type>javax.jms.MessageListener</messaging-type>
> >
<transaction-type>Container</transaction-type>
> > <activation-config>
> > <activation-config-property>
> >
> >
<activation-config-property-name>destination</activation-config-property-name>
> >
> >
<activation-config-property-value>SendReceiveQueue</activation-config-property-value>
> > </activation-config-property>
> > <activation-config-property>
> >
> >
<activation-config-property-name>destinationType</activation-config-property-name>
> >
> >
<activation-config-property-value>javax.jms.Queue</activation-config-property-value>
> > </activation-config-property>
> > </activation-config>
> > <ejb-ref>
> >
<ejb-ref-name>ejb/GoodsHomeLocal</ejb-ref-name>
> > <ejb-ref-type>Entity</ejb-ref-type>
> >
> >
<home>org.apache.geronimo.sample.product.ejb.GoodsLocalHome</home>
> >
> > <remote>org.apache.geronimo.sample.product.ejb.Goods
</remote>
> > </ejb-ref>
> > </message-driven>
> >
> > </enterprise-beans>
> > </ejb-jar>
> >
----------------------------------------------------------------------------------end
> > of
> >
ejb-jar.xml------------------------------------------------------
> >
> > for this ejb-jar.xml the eclipse complains "The content of element type
> > "message-driven" must match
> >
"(description?,display-name?,small-icon?,large-icon?,ejb-name,ejb-class,transaction-type,message-selector?,acknowledge-mode?,message-driven-destination?,env-entry*,ejb-ref*,ejb-local-ref*,security-identity?,resource-ref*,resource-env-ref*)".
> > ejb-jar.xml Products/build/classes line 31
July 20, 2006 1:15:52
> > 1462"
> >
> >
> >
------------------------------------------------------------------------------openejb.jar-----------------------------------------------------------------
> >
> > <openejb-jar
> > xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
> > <dep:environment
> > xmlns:dep="
http://geronimo.apache.org/xml/ns/deployment-1.1">
> > <dep:moduleId>
> >
> > <dep:groupId>org.apache.geronimo.sample.product
</dep:groupId>
> > <dep:artifactId>ejb</dep:artifactId>
> > <!--<dep:version>1-default</dep:version>-->
> > <!--<dep:type>car</dep:type>-->
> > </dep:moduleId>
> > <dep:dependencies>
> > <dep:dependency>
> >
> >
<dep:groupId>org.apache.geronimo.specs.geronimo-jms_1.1_spec</dep:groupId>
> > <dep:artifactId> 1.0</dep:artifactId>
> >
> > </dep:dependency>
> > </dep:dependencies>
> > <dep:hidden-classes/>
> > <dep:non-overridable-classes/>
> > </dep:environment>
> > <enterprise-beans>
> > <message-driven>
> > <ejb-name>GoodsMDB</ejb-name>
> > <resource-adapter>
> > <resource-link>ActiveMQ RA</resource-link>
> > </resource-adapter>
> > </message-driven>
> > </enterprise-beans>
> > </openejb-jar>
> >
------------------------------------------------------End
> > of
> >
openejb.xml-------------------------------------------------------------------------------
> > I deployed the created on Geronimo console and I got 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 :116)
> > at
> >
org.apache.geronimo.deployment.DeploymentContext.<init>(DeploymentContext.java:96)
> > at
> >
org.apache.geronimo.deployment.DeploymentContext.<init>(DeploymentContext.java:78)
> >
> > at
> >
org.apache.geronimo.j2ee.deployment.EARContext.<init>(EARContext.java:70)
> > at
> >
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java
:446)
> > 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$$e3d095d4.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:534)
> > Caused by:
> > org.apache.geronimo.kernel.config.LifecycleException
> > : load of
> >
org.apache.geronimo.sample.product/ejb/1153492888730/jar
> > failed
> > at
> >
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java
:279)
> > at
> >
org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration
> > (DeploymentConfigurationManager.java:115)
> > at
> >
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration
(SimpleConfigurationManager.java:266)
> > at
> >
org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration
> > (DeploymentConfigurationManager.java:111)
> > at
> >
org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration
(DeploymentContext.java:113)
> > ... 24 more
> > Caused by:
> >
org.apache.geronimo.kernel.repository.MissingDependencyException
> > : Unable to resolve dependency
> > org.apache.geronimo.specs.geronimo-jms_1.1_spec./1.0//
> > 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$$8e854b59.resolveInClassLoader
(<generated>)
> > at
> >
org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds
> > (SimpleConfigurationManager.java:451)
> > at
> >
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst
(SimpleConfigurationManager.java:410)
> > at
> >
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration
> > (SimpleConfigurationManager.java:276)
> > ... 28 more
> >
> >
> > can any one help me on this please?
> >
> > Regards
> > Kanchana
> >
> >
> >
> >
>