MappingException with Hibernate and JBoss

From: jaymon (jay_at_planettools.com)
Date: 02/24/05


Date: 24 Feb 2005 09:10:49 -0800

I am running JBoss 3.2.5 and have gone through all the tutorials that I
can find on getting hibernate (2.1) to work with JBoss and
XDoclet(1.2.2). I have tried several different deployment schemes and
in every case I keep bumping up against the following exception.

net.sf.hibernate.MappingException: Unknown entity class:
com.infinity.dao.GlobalAccountHB

I know that JBoss (and my application) see the class and I know that at
least some of the Hibernate classes are accessible (they are being
called successfully from inside of GlobalAccountHB while I trace
through in Eclipse). It seems like Hibernate knows quite a bit about my
class and the table because if I put in bad data types it complains.

Any ideas on what could be causing this would be greatly appreciated.

Thanks,

Jay



Relevant Pages

  • JBoss, PostgreSQL, XDoclet, Serial primary keys in CMP
    ... I'm trying to get a simple container managed bean to work with JBoss ... assuming you know what you're doing) of getting a data access layer. ... I've also looked at Hibernate, but wonder about my Hibernate classes ... was with Data Access Object, but with added features such as versioning. ...
    (comp.lang.java.programmer)
  • Re: EJB 3.0 vs Spring
    ... or Spring with a Web Server ... EJB3 has improved things greatly, particularly with entity beans, but it still might be a bit early to depend on it. ... The JBoss implementation is in beta and is buggy. ... My experience with JBoss + Hibernate + EJB 3.0 was OK until I hit a bug that required an upgrade that quickly descended into a mess of seemingly irreconcilable inter-dependencies. ...
    (comp.lang.java.programmer)
  • Re: CMP without entity beans ?
    ... JBoss), so i've started studying "JBoss at work, a practial guide". ... the CMP chapter uses Hibernate ... instead of Entity Beans. ...
    (comp.lang.java.programmer)
  • (Spring/Tapestry)-POJOs-hibernate-oracle-JBOSS
    ... I am not using EJB i am using POJO's then why do I go for JBOSS instead ... what is the advantage of O/R mapping provided by hibernate what are all ... what is the best thing for front end java script validations in model ...
    (comp.lang.java.help)
  • (Spring/Tapestry)-POJOs-hibernate-oracle-JBOSS
    ... I am not using EJB i am using POJO's then why do I go for JBOSS instead ... what is the advantage of O/R mapping provided by hibernate what are all ... what is the best thing for front end java script validations in model ...
    (comp.lang.java.help)