What you're missing is the bean semantics regarding property names with multiple upper case letters in a row.
basically: pTblah <-- --> getPTblah PTblah <-- --> getPTblah So, change your property name from PTypeID, either by changing the name entirely, or by adding a lower case letter after the P. You'll find this same issue with every day reflection. ----- Original Message ----- From: "Pedro Salazar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 13, 2004 9:41 AM Subject: [Xdoclet-user] all cmp/cmr fields must start with a lower case letter > Greetings, > > I'm generating EJB tags for weblogic. However I'm getting the following > error when deploying my application in weblogic 7.0: > > In EJB Primitive, all cmp/cmr fields must start with a lower case > letter, field: 'fieldName' does not. > > My bean class has the following xdoclet tag: > > /** > * @ejb.persistence > * column-name="ptype_id" > * jdbc-type="NUMERIC" > * @ejb.interface-method > * view-type="local" > */ > public abstract int getPTypeId(); > public abstract void setPTypeId(int pTypeId); > > The generated ejb-jar.xml has the following element: > > <cmp-field > > <description><![CDATA[]]></description> > <field-name>PTypeId</field-name> > </cmp-field> > > And also in weblogic-cmp-rdbms-jar.xml has: > > <field-map> > <cmp-field>PTypeId</cmp-field> > <dbms-column>ptype_id</dbms-column> > </field-map> > > So, it's xdoclet (1.2final) generating wrong the descriptors or am I > missing something? > > thanks. > > Regards, > Pedro Salazar. > -- > -PS > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
