• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.NoSuchMethodError  RSS feed

 
Yuriy Zilbergleyt
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm getting the following error when trying to call a recently added function on a BMP entity bean:

java.lang.NoSuchMethodError: com.spearhead.ejbclasses.ContractSummaryHome.listAllPrimaryKeys()Ljava/util/Collection;

I'm using JBoss with hot-deployment, and made sure that the classes in both the EJB deployment and the client webapp are current, as is the ejb-jar.xml.

Maybe I'm doing something wrong, as this is the first time I've tried a non-standard Home interface function?

Any advice is greatly appreciated. Following are the relevant snippets from the code:

JSP Page:


ContractSummaryBean:


ContractSummaryHome:


ejb-jar.xml:


Thanks in advace!
Yuriy
 
Yuriy Zilbergleyt
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried changing the Bean class function to

public Collection ejbHomeListAllPrimaryKeys() throws Exception {

while leaving the Home interface and the dd alone, and it didn't help.
 
Yuriy Zilbergleyt
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind, apparently there were some deployment problems (needed RemoteException in the Home method) that for some reason JBoss ignored during hot deployement. I had to restart it to see the exceptions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!