Hi David!!!
It helps, but i dont understand what you say about persistence-type has the wrong case (should be Container or Bean). Can i fix this xml problems with any tutorial or how to, or an example of the ejb-jar.xml and openejb-jar.xml should be?? I understand what they are for, but im a bit loose between the diferences that i should make in the original xml and the ones geronimo needs. Have you got any example to let me or send me to my personal email address, please? If not, is there any tutorial? When I finish with this, i will start programming longer examples for my proyect, i have only 2 weeks to do this, because i have to give the documentation 12th of May :-). I will send it for you to have a look, cause will be a user start into geronimo in spanish, and might be very usefull for spanish comunity!!!
Ok, so... can you or anybody help me again please??? ;-)
And the last question. To try de EJBs, ok... I just want to try then into Geronimo with a client main(), just deploying a jar. Do i need a application.xml? When i use the examples on a web application i know it need web.xml and the application.xml. How can I see with a client main that my EJBs work into Geronimo?
Than you a lot for your help!!!!!
Katia
>From: David Jencks <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Deployment fail at persistent EJB
>Date: Mon, 11 Apr 2005 16:00:13 -0700
>
>A couple of obvious problems are that the reentrant element should
>be after prim-key-class and all lowercase (false not False) and the
> persistence-type has the wrong case (should be Container or Bean).
>
>I've found that looking at the errors reported by xmlbeans and
>comparing with the schema has always led me to a valid xml document.
>
>hope this helps
>david jencks
>
>On Apr 11, 2005, at 3:39 PM, Katia Aresti Gonzalez wrote:
>
>>Hello!!!
>>
>>I was trying to deploy the persistent EJB. Im using the OpenEJB
>>example off ships and titan... Its an easy example, just 2 entity
>>bean and a session bean. The problem is that the deployment fails
>>and this the error
>>that appears:
>>
>>i cant guess what is the problem. Im trying to deploy de jar, build
>> with maven, and buils succesfull,
>>using the ejb-jar.xml and the openejb-jar.xml
>>
>>Anybody can help??? thank you!!!!
>>
>>Katia
>>
>>
>>C:\gero>start java -jar bin/server.jar
>>
>>C:\gero>java -jar bin/deployer.jar --user system --password manager
>> deploy d:/cm
>>p/build/dist/prueba-ejbs.jar
>>Deployment failed
>> Server reports: org.apache.geronimo.common.DeploymentException:
>>Error parsing
>>ejb-jar.xml
>> Error parsing ejb-jar.xml
>> Invalid deployment descriptor: [error: Element not allowed:
>> [EMAIL PROTECTED]
>>tp://java.sun.com/xml/ns/j2ee in element
>>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee,
>>error: String 'container' is not a valid enumerated value for
>>persistence-typeT
>>ype in namespace http://java.sun.com/xml/ns/j2ee, error: Element
>>not allowed: cm
>>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element
>>[EMAIL PROTECTED]://java.sun.com/xm
>>l/ns/j2ee, error: Element not allowed:
>>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee
>>in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: Element
>>not allowed:
>>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element
>>[EMAIL PROTECTED]://java.sun.com/
>>xml/ns/j2ee, error: Element not allowed:
>>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2
>>ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error:
>>Element not allowed
>>: [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element
>>[EMAIL PROTECTED]://java.sun.co
>>m/xml/ns/j2ee, error: Element not allowed:
>>[EMAIL PROTECTED]://java.sun.com/xml
>>/ns/j2ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error:
>>Element not a
>>llowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in element
>>[EMAIL PROTECTED]://ja
>>va.sun.com/xml/ns/j2ee, error: Expected element(s) in element
>>[EMAIL PROTECTED]://java
>>.sun.com/xml/ns/j2ee, error: Element not allowed:
>>[EMAIL PROTECTED]://java.sun.com/
>>xml/ns/j2ee in element [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee,
>>error: String 'be
>>an' is not a valid enumerated value for persistence-typeType in
>>namespace http:/
>>/java.sun.com/xml/ns/j2ee, error: Element not allowed:
>>[EMAIL PROTECTED]://java
>>.sun.com/xml/ns/j2ee in element
>>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: E
>>lement not allowed: [EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee in
>> element enti
>>[EMAIL PROTECTED]://java.sun.com/xml/ns/j2ee, error: Expected element(s) in
>>element entity
>>@http://java.sun.com/xml/ns/j2ee]
>>Descriptor: <ejb-jar
>>xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://j
>>ava.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1"
>>xmlns:xsi="http://www.w3.
>>org/2001/XMLSchema-instance"
>>xmlns="http://java.sun.com/xml/ns/j2ee">
>> <enterprise-beans>
>> <entity>
>> <ejb-name>CabinEJB</ejb-name>
>> <home>com.titan.cabin.CabinHomeRemote</home>
>> <remote>com.titan.cabin.CabinRemote</remote>
>> <ejb-class>com.titan.cabin.CabinBean</ejb-class>
>> <reentrant>False</reentrant>
>> <persistence-type>container</persistence-type>
>> <prim-key-class>java.lang.Integer</prim-key-class>
>> <cmp-field>
>> <field-name>id</field-name>
>> </cmp-field>
>> <cmp-field>
>> <field-name>name</field-name>
>> </cmp-field>
>> <cmp-field>
>> <field-name>deckLevel</field-name>
>> </cmp-field>
>> <cmp-field>
>> <field-name>shipId</field-name>
>> </cmp-field>
>> <cmp-field>
>> <field-name>bedCount</field-name>
>> </cmp-field>
>> <primkey-field>id</primkey-field>
>> <resource-ref>
>> <res-ref-name>jdbc/titanDB</res-ref-name>
>> <res-type>javax.sql.DataSource</res-type>
>> <res-auth>Container</res-auth>
>> </resource-ref>
>> </entity>
>> <entity>
>> <description>This bean represents a cruise
>>ship.</description>
>> <ejb-name>ShipEJB</ejb-name>
>> <home>com.titan.ship.ShipHomeRemote</home>
>> <remote>com.titan.ship.ShipRemote</remote>
>> <ejb-class>com.titan.ship.ShipBean</ejb-class>
>> <reentrant>False</reentrant>
>> <persistence-type>bean</persistence-type>
>> <prim-key-class>java.lang.Integer</prim-key-class>
>> <primkey-field>id</primkey-field>
>> <resource-ref>
>> <description>DataSource for the Titan
>>database</description>
>> <res-ref-name>jdbc/titanDB</res-ref-name>
>> <res-type>javax.sql.DataSource</res-type>
>> <res-auth>Container</res-auth>
>> </resource-ref>
>> </entity>
>> <session>
>> <ejb-name>TravelAgentEJB</ejb-name>
>> <home>com.titan.travelagent.TravelAgentHomeRemote</home>
>> <remote>com.titan.travelagent.TravelAgentRemote</remote>
>> <ejb-class>com.titan.travelagent.TravelAgentBean</ejb-class>
>> <session-type>Stateless</session-type>
>> <transaction-type>Container</transaction-type>
>> <ejb-ref>
>> <ejb-ref-name>ejb/titan/CabinEJB</ejb-ref-name>
>> <ejb-ref-type>Entity</ejb-ref-type>
>> <home>com.titan.cabin.CabinHomeRemote</home>
>> <remote>com.titan.cabin.CabinRemote</remote>
>> <ejb-link>CabinEJB</ejb-link>
>> </ejb-ref>
>> </session>
>> </enterprise-beans>
>> <assembly-descriptor>
>> <security-role>
>> <description>This role represents everyone who is allowed
>>full access
>> to te CabinEJB.</description>
>> <role-name>everyone</role-name>
>> </security-role>
>> <method-permission>
>> <role-name>everyone</role-name>
>> <method>
>> <ejb-name>CabinEJB</ejb-name>
>> <method-name>*</method-name>
>> </method>
>> <method>
>> <ejb-name>TravelAgentEJB</ejb-name>
>> <method-name>*</method-name>
>> </method>
>> </method-permission>
>> <method-permission>
>> <role-name>everyone</role-name>
>> <method>
>> <ejb-name>ShipEJB</ejb-name>
>> <method-name>*</method-name>
>> </method>
>> </method-permission>
>> <container-transaction>
>> <method>
>> <ejb-name>CabinEJB</ejb-name>
>> <method-name>*</method-name>
>> </method>
>> <method>
>> <ejb-name>ShipEJB</ejb-name>
>> <method-name>*</method-name>
>> </method>
>> <method>
>> <ejb-name>TravelAgentEJB</ejb-name>
>> <method-name>*</method-name>
>> </method>
>> <trans-attribute>Required</trans-attribute>
>> </container-transaction>
>> </assembly-descriptor>
>></ejb-jar>
>>
>>/---------------open EJB jar.xml----------
>><?xml version="1.0"?>
>>
>><openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1">
>> <ejb-deployment ejb-name="CabinEJB"
>>deployment-id="titan/CabinEJB" container-id="Default CMP
>>Container">
>> <resource-link res-ref-name="jdbc/titanDB" res-id="Default
>>JDBC Database"/>
>> </ejb-deployment>
>> <ejb-deployment ejb-name="ShipEJB"
>>deployment-id="titan/ShipEJB" container-id="Default BMP
>>Container">
>> <resource-link res-ref-name="jdbc/titanDB" res-id="Default
>>JDBC Database"/>
>> </ejb-deployment>
>> <ejb-deployment ejb-name="TravelAgentEJB"
>>deployment-id="titan/TravelAgentEJB" container-id="Default
>>Stateless Container"/>
>></openejb-jar>
>>
>>_________________________________________________________________
>>Acepta el reto MSN Premium: Correos m�s divertidos con fotos y
>>textos incre�bles en MSN Premium. Desc�rgalo y pru�balo 2 meses
>>gratis. http://join.msn.com?
>>XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos
>>
>