• 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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(Class.java:993)
[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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!