• Post Reply Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError when deploying

 
guenter krannich
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
when trying to deploy my .ear to jboss, I get:

Verify failed; continuing
java.lang.NoClassDefFoundError: gk/office/BuchungDetailsBean

when I want to use that class within my new session bean:

import gk.office.BuchungDetailsBean;

public abstract class BuchungControllerBean implements SessionBean {

private BuchungHome buchungHome;
private Buchung buchung;

public BuchungControllerBean() {
super();
// TODO Auto-generated constructor stub
}
public BuchungDetailsBean getBuchungDetails (String buchungId)
throws RemoteException, FinderException
{
BuchungHome buchungHome = HomeProvider.getInstance().getBuchungHome();
....

Ideas?
 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that it's part of your .ear/.jar file.
If it resides in a differnt .jar file, make sure that it's available in via manifest.
 
guenter krannich
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Within my .ear file there are the ejb-jar file with the "using" BuchungControllerBean and a .war file containing the referenced BuchungDetailsBean and (among others) a Debug class. There was no problem to use the Debug class from within another ejb, so what's different now?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!