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...@gmail.com> on 2006/07/21 16:46:30 UTC

Deploying MDB on GeronimoV1.1

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

Re: Deploying MDB on GeronimoV1.1

Posted by Kanchana Welagedara <ka...@gmail.com>.
Hi Aaron

On 7/22/06, Aaron Mulder <am...@alumni.princeton.edu> wrote:
> OK, this means that the module can't find an ActiveMQ resource group
> in its parent modules.

This is the my first JMS application I tried to deploy with Geronimo
V1.1.Let me get clarify with you some key words.
>
> 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?
What I did was I packaged the MDB class,ejb classes together with
ejb-jar.xml and openejb.jar files in META_INF directly and created the
ejb jar.And using the geronimo web console I tried to install the
package and then I got this error.
I realized there 's a JMS resource section,but I didn't use that
option.Aaron have I messed up the deployment process any where?

> 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 <ka...@gmail.com> 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 <am...@alumni.princeton.edu> 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 <kanchanas@gmail.com > 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
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
>

Re: Deploying MDB on GeronimoV1.1

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
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 <ka...@gmail.com> 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 <am...@alumni.princeton.edu> 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 <kanchanas@gmail.com > 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
> > >
> > >
> > >
> > >
> >
>
>

Re: Deploying MDB on GeronimoV1.1

Posted by Isuru Samaraweera <is...@yahoo.com>.
Hi Kanchana,
      Can you post the ear file or the url if  you refer to any tutorial for this?
   
  Thank You,
  Regards,
  Isuru
  

Kanchana Welagedara <ka...@gmail.com> wrote:
  Yes Aaron.I do have the entry there in the geronimo-1.1/var/config/config.xml .
Thanks
Kanchana

On 7/31/06, Aaron Mulder wrote:
> Hmm... that's very curious... "Unable to resolve dependency
> geronimo/activemq/1.1/car"...
>
> Are you sure you have the Geronimo J2EE distribution and not Little G?
> Are you sure you're using Geronimo 1.1?
>
> If you look at geronimo-1.1/var/config/config.xml do you see a line like:
>
> 
>
> Thanks,
> Aaron
>
> On 7/31/06, Kanchana Welagedara wrote:
> > hi Isuru
> >
> > I did the necessary changes in the deployment plan openejb-jar.xml.But
> > Now this error is remaining.
> >
> > 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.(DeploymentContext.java:96)
> > at
> org.apache.geronimo.deployment.DeploymentContext.(DeploymentContext.java:78)
> > at
> org.apache.geronimo.j2ee.deployment.EARContext.(EARContext.java:70)
> > at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:446)
> > 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$$870dc3ca.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.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 org.apache.geronimo.sample.product/msg/1154361877454/jar failed
> > at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:307)
> > 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.config.InvalidConfigException:
> > Error starting configuration gbean
> > org.apache.geronimo.sample.product/msg/1154361877454/jar
> > at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.load(SimpleConfigurationManager.java:332)
> > at
> org.apache.geronimo.deployment.DeploymentConfigurationManager.load(DeploymentConfigurationManager.java:119)
> > at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:292)
> > ... 28 more
> > Caused by:
> org.apache.geronimo.kernel.repository.MissingDependencyException:
> > Unable to resolve dependency geronimo/activemq/1.1/car
> > at
> org.apache.geronimo.kernel.config.ConfigurationResolver.resolve(ConfigurationResolver.java:112)
> > at
> org.apache.geronimo.kernel.config.Configuration.buildClassPath(Configuration.java:397)
> > at
> org.apache.geronimo.kernel.config.Configuration.createConfigurationClasssLoader(Configuration.java:322)
> > at
> org.apache.geronimo.kernel.config.Configuration.(Configuration.java:267)
> > at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.load(SimpleConfigurationManager.java:328)
> > ... 30 more
> >
> > Any thoughts?
> >
> > Regards
> > Kanchana
> >
> > On 7/24/06, Isuru Samaraweera wrote:
> > > Hi,
> > >
> > > See whether you have declared the dependencies correctly in your
> > > openejb-jar.xml file as given below.
> > >
> > > > > > xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
> > > > > > xmlns:dep=" http://geronimo.apache.org/xml/ns/deployment-1.1">
> > > 
> > > mdb 
> > > mdbex
> > > 1-default-->
> > > car-->
> > > 
> > > 
> > > 
> > > geronimo
> > > activemq-broker
> > > car
> > > 
> > > 
> > > geronimo
> > > activemq
> > > 1.1
> > > car
> > > 
> > > 
> > >
> > > You dont want to configure JMS queue manually since the destination
> you
> > > are using (SendReceiveQueue) is available by default in geronimo 1.1.
> > >
> > > Thank you,
> > > regards,
> > > Isuru
> > >
> > > Kanchana Welagedara 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
> > > .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
> > > ()
> > > 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
> > > ()
> > > 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()
> > > 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
> > > ()
> > > at
> > >
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:559)
> > > 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$$e3d095d4.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.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 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 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 wrote:
> > > > Hi
> > > >
> > > > I'm trying to deploy a MDB with Geronimov1.1.Folloing are the
> deployment
> > > > descriptors I used.
> > > >
> > > > --------------------------------------------------------------
> > >
> ejb-jar.xml------------------------------------------------------------------------------------
> > > > 
> > > > > > > > "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Goods Stateless Session Bean Local Interfaces
> > > > 
> > > > GoodsEJB
> > > > 
> > > >
> > > > org.apache.geronimo.sample.product.ejb.GoodsHomeLocal
> > > > 
> > > > 
> > > >
> > > > org.apache.geronimo.sample.product.ejb.GoodsLocal
> > > > 
> > > > 
> > > >
> > > > org.apache.geronimo.sample.product.ejb.GoodBean
> > > > 
> > > > Stateless
> > > > Container
> > > > 
> > > > 
> > > > Goods MDB
> > > > GoodsMDB
> > > >
> > > > org.apache.geronimo.sample.product.msg.GoodsMDB
> > > > 
> > > > javax.jms.MessageListener
> > > > Container
> > > > 
> > > > 
> > > >
> > > >
> > >
> destination
> > > >
> > > >
> > >
> SendReceiveQueue
> > > > 
> > > > 
> > > >
> > > >
> > >
> destinationType
> > > >
> > > >
> > >
> javax.jms.Queue
> > > > 
> > > > 
> > > > 
> > > > ejb/GoodsHomeLocal
> > > > Entity
> > > >
> > > > org.apache.geronimo.sample.product.ejb.GoodsLocalHome
> > > >
> > > > org.apache.geronimo.sample.product.ejb.Goods 
> > > > 
> > > > 
> > > >
> > > > 
> > > > 
> > > >
> > >
> ----------------------------------------------------------------------------------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-----------------------------------------------------------------
> > > >
> > > > > > > > xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
> > > > > > > > xmlns:dep=" http://geronimo.apache.org/xml/ns/deployment-1.1">
> > > > 
> > > >
> > > > org.apache.geronimo.sample.product 
> > > > ejb
> > > > 1-default-->
> > > > car-->
> > > > 
> > > > 
> > > > 
> > > >
> > > >
> org.apache.geronimo.specs.geronimo-jms_1.1_spec
> > > > 1.0
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > GoodsMDB
> > > > 
> > > > ActiveMQ RA
> > > > 
> > > > 
> > > > 
> > > > 
> > > > ------------------------------------------------------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.(DeploymentContext.java:96)
> > > > at
> > > >
> > >
> org.apache.geronimo.deployment.DeploymentContext.(DeploymentContext.java:78)
> > > >
> > > > at
> > > >
> org.apache.geronimo.j2ee.deployment.EARContext.(EARContext.java:70)
> > > > at
> > > >
> > >
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java
> > > :446)
> > > > 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$$e3d095d4.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

=== message truncated ===

 		
---------------------------------
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.

Re: Deploying MDB on GeronimoV1.1

Posted by Kanchana Welagedara <ka...@gmail.com>.
Yes Aaron.I do have the entry there in the geronimo-1.1/var/config/config.xml .
Thanks
Kanchana

On 7/31/06, Aaron Mulder <am...@alumni.princeton.edu> wrote:
> Hmm... that's very curious...  "Unable to resolve dependency
> geronimo/activemq/1.1/car"...
>
> Are you sure you have the Geronimo J2EE distribution and not Little G?
>  Are you sure you're using Geronimo 1.1?
>
> If you look at geronimo-1.1/var/config/config.xml do you see a line like:
>
>   <module name="geronimo/activemq/1.1/car"/>
>
> Thanks,
>      Aaron
>
> On 7/31/06, Kanchana Welagedara <ka...@gmail.com> wrote:
> > hi Isuru
> >
> > I did the necessary changes in the deployment plan openejb-jar.xml.But
> > Now this error is remaining.
> >
> > 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$$870dc3ca.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 org.apache.geronimo.sample.product/msg/1154361877454/jar failed
> >         at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:307)
> >         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.config.InvalidConfigException:
> > Error starting configuration gbean
> > org.apache.geronimo.sample.product/msg/1154361877454/jar
> >         at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.load(SimpleConfigurationManager.java:332)
> >         at
> org.apache.geronimo.deployment.DeploymentConfigurationManager.load(DeploymentConfigurationManager.java:119)
> >         at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:292)
> >         ... 28 more
> > Caused by:
> org.apache.geronimo.kernel.repository.MissingDependencyException:
> > Unable to resolve dependency geronimo/activemq/1.1/car
> >         at
> org.apache.geronimo.kernel.config.ConfigurationResolver.resolve(ConfigurationResolver.java:112)
> >         at
> org.apache.geronimo.kernel.config.Configuration.buildClassPath(Configuration.java:397)
> >         at
> org.apache.geronimo.kernel.config.Configuration.createConfigurationClasssLoader(Configuration.java:322)
> >         at
> org.apache.geronimo.kernel.config.Configuration.<init>(Configuration.java:267)
> >         at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.load(SimpleConfigurationManager.java:328)
> >         ... 30 more
> >
> > Any thoughts?
> >
> > Regards
> > Kanchana
> >
> > On 7/24/06, Isuru Samaraweera <is...@yahoo.com> wrote:
> > > Hi,
> > >
> > >   See whether you have declared the dependencies correctly in your
> > > openejb-jar.xml file as given below.
> > >
> > >   <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>mdb </dep:groupId>
> > >        <dep:artifactId>mdbex</dep:artifactId>
> > >        <!--<dep:version>1-default</dep:version>-->
> > >        <!--<dep:type>car</dep:type>-->
> > >      </dep:moduleId>
> > >      <dep:dependencies>
> > >        <dep:dependency>
> > >    <dep:groupId>geronimo</dep:groupId>
> > >  <dep:artifactId>activemq-broker</dep:artifactId>
> > > <dep:type>car</dep:type>
> > >         </dep:dependency>
> > > <dep:dependency>
> > >    <dep:groupId>geronimo</dep:groupId>
> > >   <dep:artifactId>activemq</dep:artifactId>
> > > <dep:version>1.1</dep:version>
> > > <dep:type>car</dep:type>
> > >         </dep:dependency>
> > >      </dep:dependencies>
> > >
> > >   You dont want to configure JMS queue manually since the destination
> you
> > > are using (SendReceiveQueue) is available by default in geronimo 1.1.
> > >
> > >   Thank you,
> > >   regards,
> > >   Isuru
> > >
> > > Kanchana Welagedara <ka...@gmail.com> 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 <am...@alumni.princeton.edu> 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 <kanchanas@gmail.com > 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
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------------
> > > Do you Yahoo!?
> > >  Get on board. You're invited to try the new Yahoo! Mail Beta.
> > >
> >
>

Re: Deploying MDB on GeronimoV1.1

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
Hmm... that's very curious...  "Unable to resolve dependency
geronimo/activemq/1.1/car"...

Are you sure you have the Geronimo J2EE distribution and not Little G?
 Are you sure you're using Geronimo 1.1?

If you look at geronimo-1.1/var/config/config.xml do you see a line like:

  <module name="geronimo/activemq/1.1/car"/>

Thanks,
     Aaron

On 7/31/06, Kanchana Welagedara <ka...@gmail.com> wrote:
> hi Isuru
>
> I did the necessary changes in the deployment plan openejb-jar.xml.But
> Now this error is remaining.
>
> 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$$870dc3ca.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 org.apache.geronimo.sample.product/msg/1154361877454/jar failed
>         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:307)
>         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.config.InvalidConfigException:
> Error starting configuration gbean
> org.apache.geronimo.sample.product/msg/1154361877454/jar
>         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.load(SimpleConfigurationManager.java:332)
>         at org.apache.geronimo.deployment.DeploymentConfigurationManager.load(DeploymentConfigurationManager.java:119)
>         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:292)
>         ... 28 more
> Caused by: org.apache.geronimo.kernel.repository.MissingDependencyException:
> Unable to resolve dependency geronimo/activemq/1.1/car
>         at org.apache.geronimo.kernel.config.ConfigurationResolver.resolve(ConfigurationResolver.java:112)
>         at org.apache.geronimo.kernel.config.Configuration.buildClassPath(Configuration.java:397)
>         at org.apache.geronimo.kernel.config.Configuration.createConfigurationClasssLoader(Configuration.java:322)
>         at org.apache.geronimo.kernel.config.Configuration.<init>(Configuration.java:267)
>         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.load(SimpleConfigurationManager.java:328)
>         ... 30 more
>
> Any thoughts?
>
> Regards
> Kanchana
>
> On 7/24/06, Isuru Samaraweera <is...@yahoo.com> wrote:
> > Hi,
> >
> >   See whether you have declared the dependencies correctly in your
> > openejb-jar.xml file as given below.
> >
> >   <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>mdb </dep:groupId>
> >        <dep:artifactId>mdbex</dep:artifactId>
> >        <!--<dep:version>1-default</dep:version>-->
> >        <!--<dep:type>car</dep:type>-->
> >      </dep:moduleId>
> >      <dep:dependencies>
> >        <dep:dependency>
> >    <dep:groupId>geronimo</dep:groupId>
> >  <dep:artifactId>activemq-broker</dep:artifactId>
> > <dep:type>car</dep:type>
> >         </dep:dependency>
> > <dep:dependency>
> >    <dep:groupId>geronimo</dep:groupId>
> >   <dep:artifactId>activemq</dep:artifactId>
> > <dep:version>1.1</dep:version>
> > <dep:type>car</dep:type>
> >         </dep:dependency>
> >      </dep:dependencies>
> >
> >   You dont want to configure JMS queue manually since the destination you
> > are using (SendReceiveQueue) is available by default in geronimo 1.1.
> >
> >   Thank you,
> >   regards,
> >   Isuru
> >
> > Kanchana Welagedara <ka...@gmail.com> 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 <am...@alumni.princeton.edu> 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 <kanchanas@gmail.com > 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
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> >  Get on board. You're invited to try the new Yahoo! Mail Beta.
> >
>

Re: Deploying MDB on GeronimoV1.1

Posted by Isuru Samaraweera <is...@yahoo.com>.
Further ensure that you have included the dependancy for the connectionfactory in 
  open-ejb.jar xml
   
  <dep:dependency>
   <dep:groupId>console.jms</dep:groupId>
<dep:artifactId>QueueConnectionFactory</dep:artifactId>
<dep:version>1.0</dep:version>
<dep:type>rar</dep:type>
</dep:dependency>

  Regards,
  Isuru
  

Kanchana Welagedara <ka...@gmail.com> wrote:
  hi Isuru

I did the necessary changes in the deployment plan openejb-jar.xml.But
Now this error is remaining.

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.(DeploymentContext.java:96)
at org.apache.geronimo.deployment.DeploymentContext.(DeploymentContext.java:78)
at org.apache.geronimo.j2ee.deployment.EARContext.(EARContext.java:70)
at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:446)
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$$870dc3ca.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.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 org.apache.geronimo.sample.product/msg/1154361877454/jar failed
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:307)
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.config.InvalidConfigException:
Error starting configuration gbean
org.apache.geronimo.sample.product/msg/1154361877454/jar
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.load(SimpleConfigurationManager.java:332)
at org.apache.geronimo.deployment.DeploymentConfigurationManager.load(DeploymentConfigurationManager.java:119)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:292)
... 28 more
Caused by: org.apache.geronimo.kernel.repository.MissingDependencyException:
Unable to resolve dependency geronimo/activemq/1.1/car
at org.apache.geronimo.kernel.config.ConfigurationResolver.resolve(ConfigurationResolver.java:112)
at org.apache.geronimo.kernel.config.Configuration.buildClassPath(Configuration.java:397)
at org.apache.geronimo.kernel.config.Configuration.createConfigurationClasssLoader(Configuration.java:322)
at org.apache.geronimo.kernel.config.Configuration.(Configuration.java:267)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.load(SimpleConfigurationManager.java:328)
... 30 more

Any thoughts?

Regards
Kanchana

On 7/24/06, Isuru Samaraweera wrote:
> Hi,
>
> See whether you have declared the dependencies correctly in your
> openejb-jar.xml file as given below.
>
> > xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
> > xmlns:dep=" http://geronimo.apache.org/xml/ns/deployment-1.1">
> 
> mdb 
> mdbex
> 1-default-->
> car-->
> 
> 
> 
> geronimo
> activemq-broker
> car
> 
> 
> geronimo
> activemq
> 1.1
> car
> 
> 
>
> You dont want to configure JMS queue manually since the destination you
> are using (SendReceiveQueue) is available by default in geronimo 1.1.
>
> Thank you,
> regards,
> Isuru
>
> Kanchana Welagedara 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
> .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
> ()
> 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
> ()
> 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()
> 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
> ()
> at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:559)
> 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$$e3d095d4.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.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 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 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 wrote:
> > Hi
> >
> > I'm trying to deploy a MDB with Geronimov1.1.Folloing are the deployment
> > descriptors I used.
> >
> > --------------------------------------------------------------
> ejb-jar.xml------------------------------------------------------------------------------------
> > 
> > > > "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
> > 
> > 
> > 
> > 
> > Goods Stateless Session Bean Local Interfaces
> > 
> > GoodsEJB
> > 
> >
> > org.apache.geronimo.sample.product.ejb.GoodsHomeLocal
> > 
> > 
> >
> > org.apache.geronimo.sample.product.ejb.GoodsLocal
> > 
> > 
> >
> > org.apache.geronimo.sample.product.ejb.GoodBean
> > 
> > Stateless
> > Container
> > 
> > 
> > Goods MDB
> > GoodsMDB
> >
> > org.apache.geronimo.sample.product.msg.GoodsMDB
> > 
> > javax.jms.MessageListener
> > Container
> > 
> > 
> >
> >
> destination
> >
> >
> SendReceiveQueue
> > 
> > 
> >
> >
> destinationType
> >
> >
> javax.jms.Queue
> > 
> > 
> > 
> > ejb/GoodsHomeLocal
> > Entity
> >
> > org.apache.geronimo.sample.product.ejb.GoodsLocalHome
> >
> > org.apache.geronimo.sample.product.ejb.Goods 
> > 
> > 
> >
> > 
> > 
> >
> ----------------------------------------------------------------------------------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-----------------------------------------------------------------
> >
> > > > xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
> > > > xmlns:dep=" http://geronimo.apache.org/xml/ns/deployment-1.1">
> > 
> >
> > org.apache.geronimo.sample.product 
> > ejb
> > 1-default-->
> > car-->
> > 
> > 
> > 
> >
> > org.apache.geronimo.specs.geronimo-jms_1.1_spec
> > 1.0
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > GoodsMDB
> > 
> > ActiveMQ RA
> > 
> > 
> > 
> > 
> > ------------------------------------------------------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.(DeploymentContext.java:96)
> > at
> >
> org.apache.geronimo.deployment.DeploymentContext.(DeploymentContext.java:78)
> >
> > at
> > org.apache.geronimo.j2ee.deployment.EARContext.(EARContext.java:70)
> > at
> >
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java
> :446)
> > 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$$e3d095d4.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.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()
> > 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)

=== message truncated ===

 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

Re: Deploying MDB on GeronimoV1.1

Posted by Kanchana Welagedara <ka...@gmail.com>.
hi Isuru

I did the necessary changes in the deployment plan openejb-jar.xml.But
Now this error is remaining.

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$$870dc3ca.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 org.apache.geronimo.sample.product/msg/1154361877454/jar failed
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:307)
        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.config.InvalidConfigException:
Error starting configuration gbean
org.apache.geronimo.sample.product/msg/1154361877454/jar
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.load(SimpleConfigurationManager.java:332)
        at org.apache.geronimo.deployment.DeploymentConfigurationManager.load(DeploymentConfigurationManager.java:119)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:292)
        ... 28 more
Caused by: org.apache.geronimo.kernel.repository.MissingDependencyException:
Unable to resolve dependency geronimo/activemq/1.1/car
        at org.apache.geronimo.kernel.config.ConfigurationResolver.resolve(ConfigurationResolver.java:112)
        at org.apache.geronimo.kernel.config.Configuration.buildClassPath(Configuration.java:397)
        at org.apache.geronimo.kernel.config.Configuration.createConfigurationClasssLoader(Configuration.java:322)
        at org.apache.geronimo.kernel.config.Configuration.<init>(Configuration.java:267)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.load(SimpleConfigurationManager.java:328)
        ... 30 more

Any thoughts?

Regards
Kanchana

On 7/24/06, Isuru Samaraweera <is...@yahoo.com> wrote:
> Hi,
>
>   See whether you have declared the dependencies correctly in your
> openejb-jar.xml file as given below.
>
>   <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>mdb </dep:groupId>
>        <dep:artifactId>mdbex</dep:artifactId>
>        <!--<dep:version>1-default</dep:version>-->
>        <!--<dep:type>car</dep:type>-->
>      </dep:moduleId>
>      <dep:dependencies>
>        <dep:dependency>
>    <dep:groupId>geronimo</dep:groupId>
>  <dep:artifactId>activemq-broker</dep:artifactId>
> <dep:type>car</dep:type>
>         </dep:dependency>
> <dep:dependency>
>    <dep:groupId>geronimo</dep:groupId>
>   <dep:artifactId>activemq</dep:artifactId>
> <dep:version>1.1</dep:version>
> <dep:type>car</dep:type>
>         </dep:dependency>
>      </dep:dependencies>
>
>   You dont want to configure JMS queue manually since the destination you
> are using (SendReceiveQueue) is available by default in geronimo 1.1.
>
>   Thank you,
>   regards,
>   Isuru
>
> Kanchana Welagedara <ka...@gmail.com> 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 <am...@alumni.princeton.edu> 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 <kanchanas@gmail.com > 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
> >
> >
> >
> >
>
>
>
>
>  		
> ---------------------------------
> Do you Yahoo!?
>  Get on board. You're invited to try the new Yahoo! Mail Beta.
>

Re: Deploying MDB on GeronimoV1.1

Posted by Isuru Samaraweera <is...@yahoo.com>.
Hi,
   
  See whether you have declared the dependencies correctly in your openejb-jar.xml file as given below.
   
  <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>mdb </dep:groupId>
       <dep:artifactId>mdbex</dep:artifactId>
       <!--<dep:version>1-default</dep:version>-->
       <!--<dep:type>car</dep:type>--> 
     </dep:moduleId>
     <dep:dependencies>
       <dep:dependency>
   <dep:groupId>geronimo</dep:groupId>
 <dep:artifactId>activemq-broker</dep:artifactId>
<dep:type>car</dep:type>
        </dep:dependency>
<dep:dependency>
   <dep:groupId>geronimo</dep:groupId>
  <dep:artifactId>activemq</dep:artifactId>
<dep:version>1.1</dep:version>
<dep:type>car</dep:type>
        </dep:dependency>
     </dep:dependencies>
   
  You dont want to configure JMS queue manually since the destination you are using (SendReceiveQueue) is available by default in geronimo 1.1.
   
  Thank you,
  regards,
  Isuru

Kanchana Welagedara <ka...@gmail.com> 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 <am...@alumni.princeton.edu> 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 <kanchanas@gmail.com > 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
>
>
>
>




 		
---------------------------------
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.

Re: Deploying MDB on GeronimoV1.1

Posted by Kanchana Welagedara <ka...@gmail.com>.
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 <am...@alumni.princeton.edu> 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 <ka...@gmail.com> 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
> >
> >
> >
> >
>

Re: Deploying MDB on GeronimoV1.1

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
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 <ka...@gmail.com> 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
>
>
>
>