-
1. Re: CMP 2.0 issue with EJBLocalObject in JBoss 3.0 alpha
dsundstrom Jan 29, 2002 5:43 PM (in response to ppetit)You need to post your ejb-jar.xml file (just the revelent portions), and more of the log message. My guess is that you do not have the correct DOCTYPE in your ejb-jar.xml file. JBossCMP only loads if you use the EJB 2.0 doctype.
-
2. Re: CMP 2.0 issue with EJBLocalObject in JBoss 3.0 alpha
ppetit Jan 30, 2002 2:24 AM (in response to ppetit)here is the header of my ejb-jar.xml file :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Activation CMP 2.0 -->
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
...
and here is the relevant par of the concerned EJB (the only one extending EJBLocalObject):
...
<!-- ============================================================== -->
<!-- Entity & Session Bean Sejour -->
<!-- ============================================================== -->
Models a Sejour collection
<ejb-name>SejourCollection</ejb-name>
fr.ppet.saga.server.services.SejourCollection_Home
fr.ppet.saga.server.services.SejourCollection
<ejb-class>fr.ppet.saga.server.services.SejourCollection_SBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-ref>
<ejb-ref-name>ejb/Sejour</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
fr.ppet.saga.server.services.Sejour_Home
fr.ppet.saga.server.services.Sejour
<ejb-link>Sejour</ejb-link>
</ejb-ref>
<ejb-ref>
<ejb-ref-name>ejb/SequenceGenFactory</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
fr.ppet.saga.server.util.SequenceGenFactory_Home
fr.ppet.saga.server.util.SequenceGenFactory
<ejb-link>SequenceGen</ejb-link>
</ejb-ref>
<!-- Declare a security role called ADMINISTRATOR -->
<security-role>
<role-name>ADMINISTRATOR</role-name>
</security-role>
Cet entity bean sert a la gestion des Sejours et de leurs prestations
<ejb-name>Sejour</ejb-name>
fr.ppet.saga.server.services.LocalSejour_Home
fr.ppet.saga.server.services.Sejour
<ejb-class>fr.ppet.saga.server.services.Sejour_EBean</ejb-class>
<persistence-type>Container</persistence-type>
<!-- new effet inconnu, pour workaround d'un bug de JBoss (marche pas ) -->
<container-transaction>Required</container-transaction>
<!-- cmp-version must be '1.x' or '2.x', if specified -->
<cmp-version>2.x</cmp-version>
<abstract-schema-name>Sejour</abstract-schema-name>
<prim-key-class>java.lang.Integer</prim-key-class>
False
<cmp-field><field-name>Id</field-name></cmp-field>
<cmp-field><field-name>custId</field-name></cmp-field>
<cmp-field><field-name>beginDate</field-name></cmp-field>
<cmp-field><field-name>endDate</field-name></cmp-field>
<cmp-field><field-name>membershipType</field-name></cmp-field>
<cmp-field><field-name>membershipTT</field-name></cmp-field>
<cmp-field><field-name>giftType</field-name></cmp-field>
<cmp-field><field-name>giftAmount</field-name></cmp-field>
<cmp-field><field-name>eventLines</field-name></cmp-field>
<cmp-field><field-name>eventsTT</field-name></cmp-field>
<cmp-field><field-name>mealLines</field-name></cmp-field>
<cmp-field><field-name>mealsTT</field-name></cmp-field>
<cmp-field><field-name>accomodLines</field-name></cmp-field>
<cmp-field><field-name>accomodTT</field-name></cmp-field>
<cmp-field><field-name>localeTaxeNb</field-name></cmp-field>
<cmp-field><field-name>localeTaxeTT</field-name></cmp-field>
<cmp-field><field-name>othersTT</field-name></cmp-field>
<cmp-field><field-name>total</field-name></cmp-field>
<cmp-field><field-name>total2</field-name></cmp-field>
<cmp-field><field-name>comment</field-name></cmp-field>
<primkey-field>Id</primkey-field>
...
many thanks for your help and the great job already done !
Philippe -
3. Re: CMP 2.0 issue with EJBLocalObject in JBoss 3.0 alpha
ppetit Jan 30, 2002 2:29 AM (in response to ppetit)here is a zip of the server log file at startup
regards Philippe -
4. Re: CMP 2.0 issue with EJBLocalObject in JBoss 3.0 alpha
ppetit Feb 1, 2002 5:18 AM (in response to ppetit)forget it I found by myself...
-
5. Re: CMP 2.0 issue with EJBLocalObject in JBoss 3.0 alpha
alireza_banaei Feb 19, 2002 10:01 AM (in response to ppetit)Great! Good for you. I appreciate if you could share your finding with the rest of the JBoss community. I have the same probleme and am looking for a solution.
Thanks in advance
Alireza