aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Unable to deploy an EJB. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Unable to deploy an EJB." Watch "Unable to deploy an EJB." New topic
Author

Unable to deploy an EJB.

Prasad Tamirisa
Ranch Hand

Joined: Mar 26, 2007
Posts: 130
Hi all,
I am getting the following error when tried to deploy an EJB.Can any help me in this.



Regards,
Durga Prasad
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
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?


Rahul Bhattacharjee
LinkedIn - Blog
Prasad Tamirisa
Ranch Hand

Joined: Mar 26, 2007
Posts: 130
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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 ]

[My Blog]
All roads lead to JavaRanch
Prasad Tamirisa
Ranch Hand

Joined: Mar 26, 2007
Posts: 130
I even thought so,

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


Ranchers,
Please suggest
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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

Joined: Mar 26, 2007
Posts: 130
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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

Joined: Mar 26, 2007
Posts: 130
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to deploy an EJB.