• Post Reply Bookmark Topic Watch Topic
  • New Topic

CMP serialializable error, need your help!

 
Sean Li
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The enviroment i'm using is JBuilder 7 and Weblogic 7 and Oracle 8.
I generated a cmp ejb from a table by JBuilder, the name of the ejb is personInfo. of course there is a localhome,the name is personInfoHome。
I used a design pattern in the ejb: Value Object. To get data and set data by a value object, and I didn't forget to let the Value Object implement the java.io.serialiable interface.
When compiling, JBuiler generated a lot of files, including one ersoninfoBean_xz8kp9_HomeImpl. I think that must be the implemention of the home interface.
The building and deplyment process are all ok. But when I use the ejb in my web jsp file,an error always occurs::java.io.NotSerializableException ersoninfoBean_xz8kp9_HomeImpl
Maybe this question is too complicated and the scenario is hard to explain. But I really need experts' help.
thanks from my heart!
 
Dave Landers
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using local interfaces, then you must have both the webapp and ejb deployed in the same enterprise application (ear).
If the webapp and ejb are in separate applications (or deployed by themselves without an ear) then you need to use remote interfaces.
 
Sean Li
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank U, the problem was well resolved. really thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!