• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

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 ]
 
snakes are really good at eating slugs. And you wouldn't think it, but so are tiny ads:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic