subich,
Thanks for replying to my post so quickly. To answer your question: yes, I am using JBoss...I should have mentioned that--sorry. I am using the tutorial at:
http://www.hibernate.org/66.html Plus I've read WIKI and the Getting Started docs. Nothing helped yet, but I think I'm very close to a successful deploy. Here is how my directory structure looks:
1).jboss-service.xml is in the META-INF directory of Hibernate.sar.
2).com/kemaiev/jzudi/hibernate/CompanyHibernateImpl.hbm.xml is in jZUDIHibernate.sar
3).com/kemaiev/jzudi/hibernate/CompanyHibernateImpl.class is in jZUDIHibernate.jar
4).Hibernate.sar is in jZUDI-MiddleTier.ear
5).jboss-app.xml is in META-INF of jZUDI-Middle-Tier.ear
HERE IS THE jboss-service.xml:
Code:
<!-- Generated file - Do not edit! -->
-
<server>
-
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=Hibernate">
<depends>jboss.jca:service=RARDeployer</depends>
-
<attribute name="MapResources">
com/kemaiev/jzudi/hibernate/CompanyHibernateImpl.hbm.xml
</attribute>
<attribute name="JndiName">java:/jZUDIConnectionFactory</attribute>
<attribute name="Datasource">java:/jdbc/jZUDIDataSource</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.SAPDBDialect</attribute>
<attribute name="UseOuterJoin">true</attribute>
<attribute name="ShowSql">false</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
-
<attribute name="TransactionManagerLookupStrategy">
net.sf.hibernate.transaction.JBossTransactionManagerLookup
</attribute>
</mbean>
</server>
HERE IS application.xml:Code:
<application>
<display-name>jZUDI-MiddleTier</display-name>
<description>The jZUDI Business Components</description>
<!-- uses session beans to get to Hibernate POJOs -->
-
<module>
-
<web>
<web-uri/>
<context-root/>
</web>
</module>
<!-- Just session beans accessing hibernate -->
-
<module>
<ejb>jZUDIFacadeEJB.jar</ejb>
</module>
-
<module>
<java>jZUDIDAO.jar</java>
</module>
-
<module>
<java>jZUDIHibernate.jar</java>
</module>
-
<module>
<java>jZUDIHibernate.sar</java>
</module>
</application>
HERE IS jboss-app.xml:Code:
I'm not convinced this is right.
<jboss-app>
<loader-repository>jZUDI-MiddleTier:loader=jZUDI-MiddleTier.ear</loader-repository>
-
<module>
<service>jZUDIHibernate.sar</service>
</module>
</jboss-app>
HERE IS THE (almost) COMPLETE PRINTOUT:
I think the part in
red is due to the hbm.xml not compiling in previous step (also listed in original post).
16:27:50,603 INFO [MainDeployer] Starting deployment of package: file:/F:/JBoss
323/server/default/deploy/jZUDI-MiddleTier.ear
16:27:50,683 INFO [EARDeployer] Init J2EE application: file:/F:/JBoss323/server
/default/deploy/jZUDI-MiddleTier.ear
16:27:51,965 INFO [SARDeployer] nested deployment: file:/F:/JBoss323/server/def
ault/tmp/deploy/tmp35300jZUDI-MiddleTier.ear-contents/jZUDIHibernate.sar-content
s/lib/cglib-2.0-rc2.jar
16:27:51,985 INFO [SARDeployer] nested deployment: file:/F:/JBoss323/server/def
ault/tmp/deploy/tmp35300jZUDI-MiddleTier.ear-contents/jZUDIHibernate.sar-content
s/lib/commons-collections-2.1.jar
16:27:52,035 INFO [SARDeployer] nested deployment: file:/F:/JBoss323/server/def
ault/tmp/deploy/tmp35300jZUDI-MiddleTier.ear-contents/jZUDIHibernate.sar-content
s/lib/commons-lang-1.0.1.jar
16:27:52,045 INFO [SARDeployer] nested deployment: file:/F:/JBoss323/server/def
ault/tmp/deploy/tmp35300jZUDI-MiddleTier.ear-contents/jZUDIHibernate.sar-content
s/lib/commons-logging-1.0.3.jar
16:27:52,125 INFO [SARDeployer] nested deployment: file:/F:/JBoss323/server/def
ault/tmp/deploy/tmp35300jZUDI-MiddleTier.ear-contents/jZUDIHibernate.sar-content
s/lib/dom4j-1.4.jar
16:27:52,135 INFO [SARDeployer] nested deployment: file:/F:/JBoss323/server/def
ault/tmp/deploy/tmp35300jZUDI-MiddleTier.ear-contents/jZUDIHibernate.sar-content
s/lib/ehcache-0.6.jar
16:27:52,285 INFO [SARDeployer] nested deployment: file:/F:/JBoss323/server/def
ault/tmp/deploy/tmp35300jZUDI-MiddleTier.ear-contents/jZUDIHibernate.sar-content
s/lib/hibernate2.jar
16:27:52,376 INFO [SARDeployer] nested deployment: file:/F:/JBoss323/server/def
ault/tmp/deploy/tmp35300jZUDI-MiddleTier.ear-contents/jZUDIHibernate.sar-content
s/lib/jcs-1.0-dev.jar
16:27:52,386 INFO [SARDeployer] nested deployment: file:/F:/JBoss323/server/def
ault/tmp/deploy/tmp35300jZUDI-MiddleTier.ear-contents/jZUDIHibernate.sar-content
s/lib/odmg-3.0.jar
16:27:54,128 INFO [HibernateServiceMBean] starting service at JNDI name: java:/
jZUDIConnectionFactory
16:28:22,168 INFO [HibernateServiceMBean] service properties: {hibernate.sessio
n_factory_name=java:/jZUDIConnectionFactory, hibernate.transaction.manager_looku
p_class=net.sf.hibernate.transaction.JBossTransactionManagerLookup, hibernate.di
alect=net.sf.hibernate.dialect.SAPDBDialect, hibernate.show_sql=false, hibernate
.use_outer_join=true, hibernate.transaction.factory_class=net.sf.hibernate.trans
action.JTATransactionFactory, hibernate.connection.datasource=java:/jdbc/jZUDIDa
taSource, jta.UserTransaction=UserTransaction}
16:28:22,228 INFO [Environment] Hibernate 2.1.2
16:28:22,228 INFO [Environment] hibernate.properties not found
16:28:22,238 INFO [Environment] using CGLIB reflection optimizer
16:28:22,269 INFO [Configuration] Mapping resource: com/kemaiev/jzudi/hibernate
/CompanyHibernateImpl.hbm.xml
16:28:22,859 ERROR [Configuration] Could not compile the mapping document
net.sf.hibernate.MappingException: persistent class [com.kemaiev.jzudi.hibernate
.CompanyHibernateImpl] not found
at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:84)
....................................................................................
..............I editted-out rest of 'at' details here...................
....................................................................................
16:28:49,337 INFO [HibernateServiceMBean] Could not build SessionFactory using
the MBean classpath - will try again using client classpath:
Error reading resou
rce: com/kemaiev/jzudi/hibernate/CompanyHibernateImpl.hbm.xml
16:28:49,518 INFO [SessionFactoryObjectFactory] Factory name: java:/jZUDIConnec
tionFactory
16:28:49,518 INFO [NamingHelper] JNDI InitialContext properties:{}
16:28:49,748 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: jav
a:/jZUDIConnectionFactory
16:29:04,269 WARN [SessionFactoryObjectFactory] InitialContext did not implemen
t EventContext
16:29:04,289 INFO [EARDeployer] Started J2EE application: file:/F:/JBoss323/ser
ver/default/deploy/jZUDI-MiddleTier.ear
16:29:04,289 INFO [MainDeployer] Deployed package: file:/F:/JBoss323/server/def
ault/deploy/jZUDI-MiddleTier.ear