• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to deploy an EJB.

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic