Win a copy of Kotlin for Android App Development this week in the Kotlin 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!