Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

NoClassDefFoundError when deploying

 
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?
 
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?
 
You get good luck from rubbing the belly of a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic