geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jabran <jabran.asg...@futureit.ch>
Subject Re: Error when deplying MDB in Geronimo 1.1
Date Mon, 28 May 2007 07:48:15 GMT

Hello Manu,

It helped. I was thinking that WTP+XDoclet+WAS plugins will manage all
descriptors for EJBs (for Session beans they did) , but it seems for MDBs it
is required to do manually. For entity beans it is obvious because plugins
have no idea what table structure one want to use.

Thanks.

Jabran


Manu George wrote:
> 
> Hi Jabran,
> The openejb-jar.xml seems to be empty .There is no corresponding
> message-driven element in the openejb-jar.xml. You will need to add it
> in the openejb-jar.xml
> as shown below
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
> xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"
> xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0"
> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
>  <sys:environment>
>    <sys:moduleId>
>      <sys:groupId>default</sys:groupId>
>      <sys:artifactId>BounceMDB</sys:artifactId>
>      <sys:version>1.0</sys:version>
>      <sys:type>car</sys:type>
>    </sys:moduleId>
>  </sys:environment>
>  <enterprise-beans>
> <message-driven>
>       <ejb-name>Bounce</ejb-name>
>       <resource-adapter>
>         <resource-link>resource link to connection factory</resource-link>
>       </resource-adapter>
>       <activation-config>
>         <activation-config-property>
>          
> <activation-config-property-name>xxxx</activation-config-property-name>
>          
> <activation-config-property-value>xxxx</activation-config-property-value>
>         </activation-config-property>
>     </message-driven>
>  </enterprise-beans>
> </openejb-jar>
> 
> Regards
> Manu
> 
> On 5/25/07, Jabran <jabran.asghar@futureit.ch> wrote:
>>
>> Hi,
>>
>> I am trying to deploy a simple MDB to Geronimo 1.1, and am getting
>> following
>> error:
>>
>> >>org.apache.geronimo.common.DeploymentException: No openejb deployment
>> descriptor for mdb: >>Bounce. Known beans: [Ljava.lang.Object;@e3ff04
>>
>> "Bounce" is the name of bean. I am using Eclipse 3.2, WTP, XDoclet 1.2.3,
>> WebSphere Application Server Community Edition 1.1.
>>
>> The whole project consists of an EAR and an EJB Project (MDB), all
>> created
>> through WTP and XDoclet wizard. (I am assuming that all deployment
>> descriptors will be created by WTP and XDoclet.)
>>
>> Following are the auto generated XML files.
>>
>> ejb-jar-xml
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <ejb-jar id="ejb-jar_1" xmlns="http://java.sun.com/xml/ns/j2ee"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>> http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1">
>>
>>    <description><![CDATA[BounceMDB generated by eclipse wtp xdoclet
>> extension.]]></description>
>>    <display-name>BounceMDB</display-name>
>>
>>    <enterprise-beans>
>>       <message-driven id="MessageDriven_1">
>>          <description><![CDATA[<!-- begin-xdoclet-definition
>> -->]]></description>
>>          <ejb-name>Bounce</ejb-name>
>>          <ejb-class>my.domain.example.BounceMdb</ejb-class>
>>          <messaging-type>javax.jms.MessageListener</messaging-type>
>>          <transaction-type>Container</transaction-type>
>>
>> <message-destination-type>javax.jms.Topic</message-destination-type>
>>          <activation-config>
>>            <activation-config-property>
>>
>> <activation-config-property-name>destinationType</activation-config-property-name>
>>
>> <activation-config-property-value>javax.jms.Topic</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-property>
>>
>> <activation-config-property-name>subscriptionDurability</activation-config-property-name>
>>
>> <activation-config-property-value>NonDurable</activation-config-property-value>
>>            </activation-config-property>
>>          </activation-config>
>>
>>       </message-driven>
>>    </enterprise-beans>
>>
>>    <assembly-descriptor id="AssemblyDescriptor_1">
>>    </assembly-descriptor>
>> </ejb-jar>
>>
>> openejb.jar.xml
>> <?xml version="1.0" encoding="UTF-8"?>
>> <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
>> xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"
>> xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0"
>> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
>> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
>>   <sys:environment>
>>     <sys:moduleId>
>>       <sys:groupId>default</sys:groupId>
>>       <sys:artifactId>BounceMDB</sys:artifactId>
>>       <sys:version>1.0</sys:version>
>>       <sys:type>car</sys:type>
>>     </sys:moduleId>
>>   </sys:environment>
>>   <enterprise-beans/>
>> </openejb-jar>
>>
>> application.xml
>> <?xml version="1.0" encoding="UTF-8"?>
>> <application id="Application_ID" version="1.4"
>> xmlns="http://java.sun.com/xml/ns/j2ee"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>> http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
>>         <display-name>
>>         EARBounceMDB</display-name>
>>         <module id="JavaClientModule_1180075784203">
>>                 <java>BounceMDBClient.jar</java>
>>         </module>
>>         <module id="EjbModule_1180075784234">
>>                 <ejb>BounceMDB.jar</ejb>
>>         </module>
>> </application>
>>
>> geronimo-application.xml
>> <?xml version="1.0" encoding="UTF-8"?>
>> <application
>> xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1"
>> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
>> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"
>> application-name="EARBounceMDB">
>>   <sys:environment>
>>     <sys:moduleId>
>>       <sys:groupId>default</sys:groupId>
>>       <sys:artifactId>EARBounceMDB</sys:artifactId>
>>       <sys:version>1.0</sys:version>
>>       <sys:type>car</sys:type>
>>     </sys:moduleId>
>>   </sys:environment>
>> </application>
>>
>>
>> Any hint what is wrong, or what step I am missing?
>>
>> Thanks for any clue.
>>
>> Jabran
>> --
>> View this message in context:
>> http://www.nabble.com/Error-when-deplying-MDB-in-Geronimo-1.1-tf3814771s134.html#a10798771
>> Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-when-deplying-MDB-in-Geronimo-1.1-tf3814771s134.html#a10832397
Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.


Mime
View raw message