Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1480 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1480 Summary: The primkey-field element specified in the ejb-jar.xml must refer to the field-name of one of the declared cmp-fields. Type: Bug Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XDoclet Components: Bea Module Versions: 1.2.3 Assignee: xdoclet-devel (Use for new issues) Reporter: Dennis Hoer Created: Thu, 21 Jul 2005 2:24 PM Updated: Thu, 21 Jul 2005 2:24 PM Environment: XDoclet 1.2.3; JDK 1.3.1_07; ANT 1.5.3; WinXP sp2 Description: I get Exception: weblogic.management.ApplicationException: primkey-field element specified in the ejb-jar.xml must refer to the field-name of one of the declared cmp-fields. when deploying to weblogic. This is caused by the field-name in the cmp-field not matching primary-field in the ejb-jar.xml. The following: * @ejb.bean * type="CMP" * cmp-version="2.x" * name="AdmStuLookupType" * local-jndi-name="com.x/AdmStuLookupTypeLocalHome" * view-type="local" * primkey-field="NStuLookupTypeId" /** * Returns the NStuLookupTypeId * * @return the NStuLookupTypeId * * @ejb.pk-field * @ejb.interface-method view-type="local" * @ejb.persistent-field * @ejb.persistence column-name="N_STU_LOOKUP_TYPE_ID" * @ejb.value-object match="light" */ public abstract java.lang.Integer getNStuLookupTypeId(); /** * Sets the NStuLookupTypeId * * @param NStuLookupTypeId the new NStuLookupTypeId value */ public abstract void setNStuLookupTypeId( java.lang.Integer NStuLookupTypeId); Generates whats below in the ejb-jar.xml: <cmp-field > <description><![CDATA[Returns the NStuLookupTypeId]]></description> <field-name>nStuLookupTypeId</field-name> </cmp-field> <primkey-field>NStuLookupTypeId</primkey-field> Changing the primkey-field tag to nStuLookupTypeId causes the value object generated not to compile. Thanks, hoerde --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel