Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deployment of CMP beans created and working in WAS3.5 to WAS4.0.2

 
Sriram Sankar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
We have a working enterprise application that uses WAS3.5.4. We have quite a few Entity and session beans. We use DB27.1 database in NT.
However, when i deployed the same application after creating the deployed ear file using the AAT for WAS4.0.2, i get the error from DB2 as
"Trying to insert a null into a NOT NULL column". This happens randomly to all my Entity beans. I am not clear how to solve this problem.
Can any body please suggest a way out of this issue. I did not find any help in the ibm site.
All the columns in all my tables are defined as "Not Null". I am using VAJ4.0 to create my Deployed jar.
Thanks
Sriram
 
Baba Batsha
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
VAge 4.0 deployed code is compliant with EJB 1.0 spec
AAT deployed code is compliant with EJB 1.1 spec.
Does it trigger anything Kyle?
 
Naveen Kumar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi SriRam,
I am also using entity beans.
I had not used VAJ at all. If your table name & the EJB name are the same then using the EJBDeploy utility from the DOS command prompt you can generate all the deployable code.
Else I suggest you to use the WebSphere Studio Application Developer (which is a replacement for VAJ). Using this tool you can map the colomns properly (GUI interface).
Regards
Naveen Kumar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic