Hi Just another FYI on the null primary key for auto-increment primary key problem in jboss-3.2.2. Basically, the auto-increment keys don't seem to generate, and I get a null primary key error on creation. The suggestion was to add <auto-increment/> to jbosscmp-jdbc.xml for the key fields. I did that, and the failure still occurs. Just to be sure, I simply deployed the jar to 3.2.1. With 3.2.1, the deployment failed with the following error:
2003-12-04 13:50:16,738 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()' Cause: Incomplete Deployment listing: Packages waiting for a deployer: <none> Incompletely deployed packages: <none> MBeans waiting for classes: <none> MBeans waiting for other MBeans: [ObjectName: jboss.j2ee:jndiName=homebrew/ejb/entity/accountHolderBean,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.IllegalStateException: auto-increment template not found] So, in 3.2.1, I removed the <auto-increment/> tag from the beans, and the app deploys and the bean works (i.e., auto-increment keys are generated properly). Can you tell me why the auto-increment tag was suggested for 3.2.2? Are there additional tags that must be included? Please help!!! Regards, Matt Hanson -----Original Message----- From: Hanson, Matthew [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 7:03 AM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Container Responsibility for CMR Foreign Keys Hi! Yes, the pk columns have been created with the identity attribute. FYI - the key generation did work properly when the app was deployed to 3.2.1. It's just that w/3.2.1, I had to do some inefficient fk setting that I hope to avoid with the 3.2.2 <insert-after-ejb-post-create> config option. Regards! Matt Hanson -----Original Message----- From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 3:43 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Container Responsibility for CMR Foreign Keys Is the column in the database was created with IDENTITY attribute? Hanson, Matthew wrote: > Hi-- > > Well, I added the auto-increment tag to jbosscmp-jdbc.xml, and the null > primary key exception is still thrown: > ------------------------------------------------------- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user