File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to deploy an EJB.

 
Prasad Tamirisa
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am getting the following error when tried to deploy an EJB.Can any help me in this.

 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Prasad Tamirisa:
In EJB com.genre.fgac.ejb.entity.AssignAssociationHome, the home create method ejbCreate(int,int,int,int,java.lang.String) did not have a corresponding ejbCreate method in the bean class, or t
he ejbCreate method in the bean class was not public.


The above might be the cause. Can you post the code of the bean class?
 
Prasad Tamirisa
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The bean class goes as below. This looks fine for me.
I dont understand why i was not able to deploy it.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your home interface has a create(int,int,int,int,java.lang.String) taking 4 integers, while your bean class has methods taking 5 integers.
[ May 22, 2007: Message edited by: Satou kurinosuke ]
 
Prasad Tamirisa
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I even thought so,

I dont see any problem in my Ejb Home. It goes as below.


Ranchers,
Please suggest
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont see any problem in my Ejb Home. It goes as below.

Looks at your bean class. The ejbCreate and ejbPostCreate have an extra int parameter. They must match the create method of your home interface.
 
Prasad Tamirisa
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks at your bean class. The ejbCreate and ejbPostCreate have an extra int parameter. They must match the create method of your home interface.


My create method is been overloaded in the home interface.


[ May 23, 2007: Message edited by: Prasad Tamirisa ]
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We're turning around here. You're sending bits of codes, without telling everything you have.
Please send it all, or we'll spend ages fixing it

1. You have two create methods in your home interface
2. Do you have the corresponding ejbCreate and ejbPostCreate (two sets) methods in your bean class ? The bean class you've shown above has only one set.
 
Prasad Tamirisa
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Satou,

I got the clue from the following and its working fine now.

1. You have two create methods in your home interface
2. Do you have the corresponding ejbCreate and ejbPostCreate (two sets) methods in your bean class ?
The bean class you've shown above has only one set.



Can you help me out in this one too..

[ May 28, 2007: Message edited by: Prasad Tamirisa ]
[ May 28, 2007: Message edited by: Prasad Tamirisa ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic