geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Isuru Samaraweera <isurunishan2...@yahoo.com>
Subject Re: Deploying MDB on GeronimoV1.1
Date Mon, 31 Jul 2006 16:32:21 GMT
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 <kanchanas@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.
Mime
View raw message