You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Jonathan Gallimore <jo...@gmail.com> on 2007/10/06 14:44:52 UTC
Message Destination not found during deployment
Hi,
I'm trying to deploy an application with some MDBs on Geronimo 2.0.1,
and I've run into a problem which I'm struggling to resolve, I wonder if
anyone is able to help?
The application has previously deployed with an older version of
Geronimo (specifically the version that Websphere CE 1 was based on -
Geronimo 1.1.1, I think) without an errors.
The error I'm getting is (I'll include the full stack trace at the bottom):
org.apache.openejb.OpenEJBException: Message destination GenerateRequest for message driven bean GenerateRequest not found
I have the following in ejb-jar.xml for the MDB
<!-- Message Driven Beans -->
<message-driven >
<description><![CDATA[Description for GenerateRequest]]></description>
<display-name>Name for GenerateRequest</display-name>
<ejb-name>GenerateRequest</ejb-name>
<ejb-class>com.wave2.ejb.GenerateRequestBean</ejb-class>
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<message-destination-type>javax.jms.Queue</message-destination-type>
<message-destination-link>GenerateRequest</message-destination-link>
<activation-config>
<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-property>
<activation-config-property-name>acknowledgeMode</activation-config-property-name>
<activation-config-property-value>Auto-acknowledge</activation-config-property-value>
</activation-config-property>
</activation-config>
</message-driven>
this in openejb-jar.xml
<message-driven>
<ejb-name>GenerateRequest</ejb-name>
<resource-adapter>
<resource-link>Wave2PP-RA</resource-link>
</resource-adapter>
<activation-config>
<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-property>
<activation-config-property-name>destination</activation-config-property-name>
<activation-config-property-value>GenerateRequest</activation-config-property-value>
</activation-config-property>
</activation-config>
</message-driven>
Here's my jms-resource-plan.xml
<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
<dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
<dep:moduleId>
<dep:groupId>console.jms</dep:groupId>
<dep:artifactId>Wave2PP-RA</dep:artifactId>
<dep:version>1.0</dep:version>
<dep:type>rar</dep:type>
</dep:moduleId>
<dep:dependencies>
<dep:dependency>
<dep:groupId>org.apache.geronimo.configs</dep:groupId>
<dep:artifactId>activemq-broker</dep:artifactId>
<dep:type>car</dep:type>
</dep:dependency>
</dep:dependencies>
</dep:environment>
<resourceadapter>
<resourceadapter-instance>
<resourceadapter-name>Wave2PP-RA</resourceadapter-name>
<config-property-setting name="Password">wave2pp</config-property-setting>
<config-property-setting name="UserName">wave2pp</config-property-setting>
<nam:workmanager xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2">
<nam:gbean-link>DefaultWorkManager</nam:gbean-link>
</nam:workmanager>
</resourceadapter-instance>
<outbound-resourceadapter>
<connection-definition>
<connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
<connectiondefinition-instance>
<name>Wave2PPConnectionFactory</name>
<implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
<implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
<connectionmanager>
<xa-transaction>
<transaction-caching/>
</xa-transaction>
<single-pool>
<match-one/>
</single-pool>
</connectionmanager>
</connectiondefinition-instance>
</connection-definition>
</outbound-resourceadapter>
</resourceadapter>
<adminobject>
<adminobject-interface>javax.jms.Queue</adminobject-interface>
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobject-class>
<adminobject-instance>
<message-destination-name>GenerateRequest</message-destination-name>
<config-property-setting name="PhysicalName">GenerateRequest</config-property-setting>
</adminobject-instance>
</adminobject>
</connector>
I'm referring to the resource plan using the following in
geronimo-application.xml
<module>
<connector>geronimo-activemq-ra-2.0.1.rar</connector>
<alt-dd>jms-resource-plan.xml</alt-dd>
</module>
Any help anyone would be able to give would be much appreciated.
Cheers
Jon
PS. Here's the full stack trace:
org.apache.openejb.OpenEJBException: Message destination GenerateRequest for message driven bean GenerateRequest not found
org.apache.geronimo.common.DeploymentException: org.apache.openejb.OpenEJBException: Message destination GenerateRequest for message driven bean GenerateRequest not found
at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.getEjbJarInfo(EjbModuleBuilder.java:530)
at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.initContext(EjbModuleBuilder.java:437)
at org.apache.geronimo.openejb.deployment.EjbModuleBuilder$$FastClassByCGLIB$$cd80af20.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:124)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
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$$2971890e.initContext(<generated>)
at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:576)
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:124)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
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.CorbaGBeanNameSource$$EnhancerByCGLIB$$609f0323.buildConfiguration(<generated>)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:304)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126)
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:124)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:865)
at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.openejb.OpenEJBException: Message destination GenerateRequest for message driven bean GenerateRequest not found
at org.apache.openejb.config.AutoConfig.resolveDestinationLinks(AutoConfig.java:249)
at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:114)
at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:109)
at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:309)
at org.apache.geronimo.openejb.OpenEjbSystemGBean.configureApplication(OpenEjbSystemGBean.java:303)
at org.apache.geronimo.openejb.OpenEjbSystemGBean$$FastClassByCGLIB$$5005cdd0.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:124)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
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.openejb.OpenEjbSystem$$EnhancerByCGLIB$$2fce7961.configureApplication(<generated>)
at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.getEjbJarInfo(EjbModuleBuilder.java:515)
... 31 more
Re: Message Destination not found during deployment
Posted by Jonathan Gallimore <jo...@gmail.com>.
I've managed to find out what I was doing wrong, I was missing the
<message-destination> tags from the <assembly-descriptor> from my
ejb-jar.xml.
Jon
Jonathan Gallimore wrote:
> Hi,
>
> I'm trying to deploy an application with some MDBs on Geronimo 2.0.1,
> and I've run into a problem which I'm struggling to resolve, I wonder
> if anyone is able to help?
> The application has previously deployed with an older version of
> Geronimo (specifically the version that Websphere CE 1 was based on -
> Geronimo 1.1.1, I think) without an errors.
>
> The error I'm getting is (I'll include the full stack trace at the
> bottom):
> org.apache.openejb.OpenEJBException: Message destination GenerateRequest for message driven bean GenerateRequest not found
>
>
> I have the following in ejb-jar.xml for the MDB
> <!-- Message Driven Beans -->
> <message-driven >
> <description><![CDATA[Description for GenerateRequest]]></description>
> <display-name>Name for GenerateRequest</display-name>
> <ejb-name>GenerateRequest</ejb-name>
> <ejb-class>com.wave2.ejb.GenerateRequestBean</ejb-class>
> <messaging-type>javax.jms.MessageListener</messaging-type>
> <transaction-type>Container</transaction-type>
> <message-destination-type>javax.jms.Queue</message-destination-type>
> <message-destination-link>GenerateRequest</message-destination-link>
> <activation-config>
> <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-property>
> <activation-config-property-name>acknowledgeMode</activation-config-property-name>
> <activation-config-property-value>Auto-acknowledge</activation-config-property-value>
> </activation-config-property>
> </activation-config>
> </message-driven>
>
>
> this in openejb-jar.xml
>
> <message-driven>
> <ejb-name>GenerateRequest</ejb-name>
> <resource-adapter>
> <resource-link>Wave2PP-RA</resource-link>
> </resource-adapter>
> <activation-config>
> <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-property>
> <activation-config-property-name>destination</activation-config-property-name>
> <activation-config-property-value>GenerateRequest</activation-config-property-value>
> </activation-config-property>
> </activation-config>
> </message-driven>
>
> Here's my jms-resource-plan.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
> <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <dep:moduleId>
> <dep:groupId>console.jms</dep:groupId>
> <dep:artifactId>Wave2PP-RA</dep:artifactId>
> <dep:version>1.0</dep:version>
> <dep:type>rar</dep:type>
> </dep:moduleId>
> <dep:dependencies>
> <dep:dependency>
> <dep:groupId>org.apache.geronimo.configs</dep:groupId>
> <dep:artifactId>activemq-broker</dep:artifactId>
> <dep:type>car</dep:type>
> </dep:dependency>
> </dep:dependencies>
> </dep:environment>
> <resourceadapter>
> <resourceadapter-instance>
> <resourceadapter-name>Wave2PP-RA</resourceadapter-name>
> <config-property-setting name="Password">wave2pp</config-property-setting>
> <config-property-setting name="UserName">wave2pp</config-property-setting>
> <nam:workmanager xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2">
> <nam:gbean-link>DefaultWorkManager</nam:gbean-link>
> </nam:workmanager>
> </resourceadapter-instance>
> <outbound-resourceadapter>
> <connection-definition>
> <connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
> <connectiondefinition-instance>
> <name>Wave2PPConnectionFactory</name>
> <implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
> <implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
> <connectionmanager>
> <xa-transaction>
> <transaction-caching/>
> </xa-transaction>
> <single-pool>
> <match-one/>
> </single-pool>
> </connectionmanager>
> </connectiondefinition-instance>
> </connection-definition>
> </outbound-resourceadapter>
> </resourceadapter>
> <adminobject>
> <adminobject-interface>javax.jms.Queue</adminobject-interface>
> <adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobject-class>
> <adminobject-instance>
> <message-destination-name>GenerateRequest</message-destination-name>
> <config-property-setting name="PhysicalName">GenerateRequest</config-property-setting>
> </adminobject-instance>
> </adminobject>
> </connector>
> I'm referring to the resource plan using the following in
> geronimo-application.xml
>
> <module>
> <connector>geronimo-activemq-ra-2.0.1.rar</connector>
> <alt-dd>jms-resource-plan.xml</alt-dd>
> </module>
>
> Any help anyone would be able to give would be much appreciated.
>
> Cheers
>
> Jon
>
> PS. Here's the full stack trace:
>
> org.apache.openejb.OpenEJBException: Message destination GenerateRequest for message driven bean GenerateRequest not found
> org.apache.geronimo.common.DeploymentException: org.apache.openejb.OpenEJBException: Message destination GenerateRequest for message driven bean GenerateRequest not found
> at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.getEjbJarInfo(EjbModuleBuilder.java:530)
> at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.initContext(EjbModuleBuilder.java:437)
> at org.apache.geronimo.openejb.deployment.EjbModuleBuilder$$FastClassByCGLIB$$cd80af20.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:124)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
> 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$$2971890e.initContext(<generated>)
> at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:576)
> 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:124)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
> 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.CorbaGBeanNameSource$$EnhancerByCGLIB$$609f0323.buildConfiguration(<generated>)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:304)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126)
> 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:124)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:865)
> at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
> at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
> at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.openejb.OpenEJBException: Message destination GenerateRequest for message driven bean GenerateRequest not found
> at org.apache.openejb.config.AutoConfig.resolveDestinationLinks(AutoConfig.java:249)
> at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:114)
> at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:109)
> at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:309)
> at org.apache.geronimo.openejb.OpenEjbSystemGBean.configureApplication(OpenEjbSystemGBean.java:303)
> at org.apache.geronimo.openejb.OpenEjbSystemGBean$$FastClassByCGLIB$$5005cdd0.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:124)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
> 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.openejb.OpenEjbSystem$$EnhancerByCGLIB$$2fce7961.configureApplication(<generated>)
> at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.getEjbJarInfo(EjbModuleBuilder.java:515)
> ... 31 more
>