Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • 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 ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

ejbc error - could not find entity bean home  RSS feed

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create a session bean to access a CMP bean. The build/deploy fails with the following ejbc error. Any help is greatly appreciated.
[java] ERROR: Error from ejbc: java.lang.NoClassDefFoundError: Lexamples/mu
[java] at java.lang.Class.getFields0(Native Method)
[java] at java.lang.Class.getDeclaredFields(
[java] at weblogic.ejb20.compliance.SessionBeanClassChecker.checkEJBCon
[java] at java.lang.reflect.Method.invoke(Native Method)
[java] at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBCompl
Here is the Session Bean ejb-jar.xml:
<?xml version="1.0"?>
'-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN'
Here is the weblogic-ejb-jar.xml:
<?xml version="1.0"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks to me that your jar does not have the SongHome.class in the correct directory structure.
Make sure that it is in examples\music directory of the jar of SongManager.
If you don't want to duplicate the Song bean's files in SongManager, then you need to put the 2 Beans into 1 jar.
Hope this helps.

Han Ming
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!