geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "carlo_cappelletti@libero.it" <carlo_cappelle...@libero.it>
Subject Re: deployment error
Date Tue, 21 Feb 2006 21:06:15 GMT
Thank you Aron for the help,
now I have some more significant errors.
I see I have a lot of work to do with CMP mappings because they are very 
complex.
On the contrary it was really easy to work with netbeans and Sun 
Application Server to do the same.
I understood that there is no tool providing these features for the 
geronimo deplyment plan, (maybe a eclipse plug-in), isn't it?
However is there some more complex examples for openejb-jar.xml availables?

Regards, Carlo.



Aaron Mulder wrote:
> It looks like you have a few problems in your deployment plan:
>
> 1) You used the namespace for an EAR file but you should be using the
> namespace for an EJB JAR file.  See the example openejb-jar.xml header
> block at:
>
> http://chariotsolutions.com/geronimo/ejb-overview.html
>
> 2) You should remove the parentId setting.  The one you have there
> won't work, and it's better to just omit it and let it pick the proper
> default.
>
> 3) The session and entity elements should be children of an
> <enterprise-beans> element, not direct children of the openejb-jar
> element.
>
> Thanks,
>     Aaron
>
> On 2/20/06, carlo_cappelletti@libero.it <carlo_cappelletti@libero.it> wrote:
>   
>> Hi everybody.
>> I'm new to geronimo and also, I have to say, to editing XML docs with
>> only reading schemas specs...
>> However, I'm trying to deploy one application previously working with
>> Sun Application Server to WASCE (that I understood is a geronimo server).
>> If I don't provide any deployment plan (the geronimo specific ones) I
>> have the following error:
>> "Could not deploy module
>> EJB [ServerBean] is misconfigured: no CMP mapping defined by OpenEJB DD."
>>
>> So I worked it out putting a "openejb-jar.xml" (you will found it at the
>> bottom of the mail) in the web-inf dir of the ejb jar.
>> So I got the following error:
>> "Currently a Geronimo deployment plan is required for an EJB module.
>> Please provide a plan as a deployer argument or packaged in the EJB JAR
>> at META-INF/openejb-jar.xml"
>>
>> ... that is exactly where it is.
>> What am I missing? The names of the Beans are OK to me.
>>
>> Thankyou in advance for your attention,
>>
>> Carlo Cappelletti.
>>
>> <application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application"
>>     configId="com/ibm/j2g/security"
>>     parentId="org/apache/geronimo/Server">
>>     <entity>
>>       <ejb-name>MPointBean</ejb-name>
>>       <jndi-name>ejb/MPointBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>PackageUsageBean</ejb-name>
>>       <jndi-name>ejb/PackageUsageBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>ApplicationHostingBean</ejb-name>
>>       <jndi-name>ejb/ApplicationHostingBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>PackageHostingBean</ejb-name>
>>       <jndi-name>ejb/PackageHostingBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>FilesourceBean</ejb-name>
>>       <jndi-name>ejb/FilesourceBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>StreamBean</ejb-name>
>>       <jndi-name>ejb/StreamBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>DbUsageBean</ejb-name>
>>       <jndi-name>ejb/UsageBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>FilesourceUsageBean</ejb-name>
>>       <jndi-name>ejb/FilesourceUserBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>DbBean</ejb-name>
>>       <jndi-name>ejb/DbBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>StrmdbUsageBean</ejb-name>
>>       <jndi-name>ejb/StrmdbUsageBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>DbHostingBean</ejb-name>
>>       <jndi-name>ejb/DbHostingBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>ProviderBean</ejb-name>
>>       <jndi-name>ejb/ProviderBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>StrmpckUsageBean</ejb-name>
>>       <jndi-name>ejb/StrmpckUsageBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>ServerBean</ejb-name>
>>       <jndi-name>ejb/ServerBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>PackageBean</ejb-name>
>>       <jndi-name>ejb/PackageBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>ApplicationBean</ejb-name>
>>       <jndi-name>ejb/ApplicationBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>     <entity>
>>       <ejb-name>SeekerBean</ejb-name>
>>       <jndi-name>ejb/SeekerBean</jndi-name>
>>         <resource-ref>
>>         <res-ref-name>jdbc/mysql</res-ref-name>
>>         <res-type>javax.sql.DataSource</res-type>
>>         <res-auth>Container</res-auth>
>>         <res-sharing-scope>Shareable</res-sharing-scope>
>>         </resource-ref>
>>     </entity>
>>         <session>
>>             <display-name>SeekerBean</display-name>
>>             <jndi-name>ejb/SeekerBean</jndi-name>
>>             <ejb-local-ref>
>>                 <ejb-link>PackageBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.PackageLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>PackageHostingBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.PackageHostingLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>FilesourceUsageBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.FilesourceUsageLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>DbBean</ejb-link>
>>                 <ref-name>com.cappe.maintenance.model.DbLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>ProviderBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.ProviderLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>DbUsageBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.DbUsageLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>FilesourceBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.FilesourceLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>StrmdbUsageBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.StrmdbUsageLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>ApplicationHostingBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.ApplicationHostingLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>StrmpckUsageBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.StrmpckUsageLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>PackageUsageBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.PackageUsageLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>StreamBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.StreamLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>DbHostingBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.DbHostingLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>ServerBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.ServerLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>ApplicationBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.ApplicationLocalHome</ref-name>
>>             </ejb-local-ref>
>>             <ejb-local-ref>
>>                 <ejb-link>MPointBean</ejb-link>
>>
>> <ref-name>com.cappe.maintenance.model.MPointLocalHome</ref-name>
>>             </ejb-local-ref>
>>         </session>
>> </application>
>>
>>
>>     
> .
>
>   



Mime
View raw message