Thanks so much, Christian, That worked.
I dont see the Classnotfound if i dont have it in my classpath.
Basically what im doing is running some Cactus tests on a Jboss environment using Hibernate. When i dont have the odmg.jar, the code enters my test*** method where i get the Hibernate object, continues till the Configuration.addClass() and then goes directly to my tearDown method after a second.
Only after i added my odmg.jar, did it go through the whole sequece of running it.
I am sending the relevant portions from my log file. Let me know if it can be filed as a bug report.
Thanks
Raj
The "Before Factory" message in the log is from my JUnit Test.
Code:
2003-10-15 08:04:56,174 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/osi_binaries/jboss-3.0.8/server/myproject/deploy/yoyo.ear
2003-10-15 08:04:56,174 INFO [org.jboss.deployment.scanner.URLDeploymentScanner] Started
2003-10-15 08:04:56,174 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/osi_binaries/jboss-3.0.8/server/myproject/conf/jboss-service.xml
2003-10-15 08:04:56,174 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [3.0.8 (CVSTag=JBoss_3_0_8 Date=200306050849)] Started in 0m:6s:629ms
2003-10-15 08:04:58,237 INFO [STDOUT] Before Factory
2003-10-15 08:04:58,267 INFO [net.sf.hibernate.cfg.Environment] Hibernate 2.0.3
2003-10-15 08:04:58,287 INFO [net.sf.hibernate.cfg.Environment] loaded properties from resource hibernate.properties: {hibernate.cglib.use_reflection_optimizer=true, hibernate.transaction.manager_lookup_class=net.sf.hibernate.transaction.JBossTransactionManagerLookup, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N', hibernate.jdbc.batch_size=0, hibernate.connection.datasource=java:/MySqlDS, jta.UserTransaction=UserTransaction, hibernate.show_sql=true, hibernate.transaction.factory_class=net.sf.hibernate.transaction.JTATransactionFactory}
2003-10-15 08:04:58,287 INFO [net.sf.hibernate.cfg.Environment] using CGLIB reflection optimizer
2003-10-15 08:04:58,287 INFO [net.sf.hibernate.cfg.Environment] JVM proxy support: true
2003-10-15 08:04:58,287 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: com/yoyo/hibernateimpl/objects/CounterHibernate.hbm.xml
2003-10-15 08:04:58,398 INFO [net.sf.hibernate.cfg.Binder] Mapping class: com.yoyo.hibernateimpl.objects.CounterHibernate -> T_COUNTER
2003-10-15 08:04:58,478 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: com/yoyo/hibernateimpl/objects/ProjectHibernate.hbm.xml
2003-10-15 08:04:58,498 INFO [net.sf.hibernate.cfg.Binder] Mapping class: com.yoyo.hibernateimpl.objects.ProjectHibernate -> T_PROJECT
2003-10-15 08:04:58,508 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: com/yoyo/hibernateimpl/objects/DepartmentHibernate.hbm.xml
2003-10-15 08:04:58,518 INFO [net.sf.hibernate.cfg.Binder] Mapping class: com.yoyo.hibernateimpl.objects.DepartmentHibernate -> T_DEPARTMENT
2003-10-15 08:04:59,119 INFO [org.jboss.system.server.Server] Shutting down
2003-10-15 08:04:59,119 INFO [org.jboss.system.server.Server] Shutting down the JVM now!