====================== jboss-service.xml =======================================
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateFactory,name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=BDTesteMVC</depends>
<attribute name="MapResources">br/com/valoriza/testemvcjsp/hibernate/TesteMVCUsuario.hbm.xml,br/com/valoriza/testemvcjsp/hibernate/TesteMVCGrupoUsuario.hbm.xml</attribute>
<attribute name="JndiName">java:/hibernate/FabricaSessaoHibernate</attribute>
<attribute name="Datasource">java:/BDTesteMVC</attribute>
<attribute name="Dialect">net.sf.hibernate.sql.MySQLDialect</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="UseOuterJoin">false</attribute>
<attribute name="ShowSql">true</attribute>
<attribute name="UserTransactionName">java:/UserTransaction</attribute>
</mbean>
</server>
=========================================================================
====================== hibernate.sar ==========================================
META-INF/ META-INF/MANIFEST.MF META-INF/jboss-service.xml br/ br/com/ br/com/valoriza/ br/com/valoriza/testemvcjsp/ br/com/valoriza/testemvcjsp/hibernate/ br/com/valoriza/testemvcjsp/hibernate/TesteMVCUsuario.hbm.xml br/com/valoriza/testemvcjsp/hibernate/TesteMVCGrupoUsuario.hbm.xml br/com/valoriza/testemvcjsp/hibernate/TesteMVCGrupoUsuario.class br/com/valoriza/testemvcjsp/hibernate/TesteMVCUsuario.class META-INF/INDEX.LIST
============================================================================
============================ the relationship (generated by XDoclet) =======================
<set name="usuarios" table="Usuario" lazy="false" inverse="false" cascade="all" sort="unsorted">
<key column="IdGrupoUsuario" />
<one-to-many class=" br.com.valoriza.testemvcjsp.hibernate.TesteMVCUsuario" />
</set>
============================================================================
The error when loading the JBoss:
18:41:20,714 INFO [HibernateServiceMBean] starting service at JNDI name: java:/hibernate/FabricaSessaoHibernate
18:41:20,715 INFO [HibernateServiceMBean] service properties: {hibernate.session_factory_name=java:/hibernate/FabricaSessaoHibernate, hibernate.transaction.manager_lookup_class=net.sf.hibernate.transaction.JBossTransactionManagerLookup, hibernate.dialect=net.sf.hibernate.sql.MySQLDialect, hibernate.show_sql=true, hibernate.use_outer_join=false, hibernate.transaction.factory_class=net.sf.hibernate.transaction.JTATransactionFactory, hibernate.connection.datasource=java:/BDTesteMVC, jta.UserTransaction=java:/UserTransaction}
18:41:20,845 INFO [Environment] Hibernate 2.0.3
18:41:20,903 INFO [Environment] hibernate.properties not found
18:41:20,941 INFO [Environment] using CGLIB reflection optimizer
18:41:20,942 INFO [Environment] JVM proxy support: true
18:41:20,992 INFO [Configuration] Mapping resource: br/com/valoriza/testemvcjsp/hibernate/TesteMVCUsuario.hbm.xml
18:41:21,980 INFO [Binder] Mapping class: br.com.valoriza.testemvcjsp.hibernate.TesteMVCUsuario -> Usuario
18:41:22,523 INFO [Configuration] Mapping resource: br/com/valoriza/testemvcjsp/hibernate/TesteMVCGrupoUsuario.hbm.xml
18:41:22,791 INFO [Binder] Mapping class: br.com.valoriza.testemvcjsp.hibernate.TesteMVCGrupoUsuario -> GrupoUsuario
18:41:22,842 ERROR [Configuration] Could not compile the mapping document
java.lang.ClassNotFoundException: br/com/valoriza/testemvcjsp/hibernate/TesteMVCUsuario
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:268)
at net.sf.hibernate.cfg.Binder.bindOneToMany(Binder.java:574)
at net.sf.hibernate.cfg.Binder.bindCollection(Binder.java:439)
at net.sf.hibernate.cfg.Binder$2.create(Binder.java:1222)
at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:871)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:294)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252)
at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:273)
at net.sf.hibernate.jmx.HibernateService.buildSessionFactory(HibernateService.java:160)
at net.sf.hibernate.jmx.HibernateService.start(HibernateService.java:131)
In line 2 of the file ReflectHelper.java the method java.lang.Class.forName() is being invoked with the parameter "br/com/valoriza/testemvcjsp/hibernate/TesteMVCUsuario", it would not have to be "br.com.valoriza.testemvcjsp.hibernate.TesteMVCUsuario"? Please, somebody can help me? Thanks!!! And pardon for my poor English. :-)
Ary Junior
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel