Class not found problem using hibernate
pstormare Jul 7, 2005 7:04 PMHi, I'm trying to deploy a simple .har file on a JBoss 4.0.2 server. My hibernate-service.xml is
<server> <mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=Hibernate"> <attribute name="DatasourceName">java:/OracleDS</attribute> <attribute name="Dialect">org.hibernate.dialect.OracleDialect</attribute> <attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute> <attribute name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</attribute> <!-- <attribute name="Hbm2ddlAuto">create-drop</attribute> --> </mbean> </server>
From the deployment initialization log is seems that the composite-id classes is not found.
00:55:00,156 INFO [HbmBinder] Mapping class: no.test.server.hibernate.AccessRole -> ACCESS_ROLE 00:55:00,156 INFO [Configuration] Found mapping documents in jar: no\test\server\hibernate/AccessUrLink.hbm.xml 00:55:00,344 INFO [HbmBinder] Mapping class: no.test.server.hibernate.AccessUrLink -> ACCESS_UR_LINK 00:55:00,344 INFO [Configuration] Found mapping documents in jar: no\test\server\hibernate/AccessUser.hbm.xml 00:55:00,703 INFO [HbmBinder] Mapping class: no.test.server.hibernate.AccessUser -> ACCESS_USER 00:55:00,750 WARN [HbmBinder] Could not perform validation checks for component as the class no.test.server.hibernate.AccessUserId was not found 00:55:00,750 INFO [Configuration] Found mapping documents in jar: no\test\server\hibernate/AddressRegister.hbm.xml 00:55:00,781 INFO [HbmBinder] Mapping class: no.test.server.hibernate.AddressRegister -> ADDRESS_REGISTER 00:55:00,781 INFO [Configuration] Found mapping documents in jar: no\test\server\hibernate/BahAddressRegister.hbm.xml 00:55:00,844 INFO [HbmBinder] Mapping class: no.test.server.hibernate.BahAddressRegister -> BAH_ADDRESS_REGISTER 00:55:00,860 WARN [HbmBinder] Could not perform validation checks for component as the class no.test.server.hibernate.BahAddressRegisterId was not found 00:55:00,860 INFO [Configuration] Found mapping documents in jar: no\test\server\hibernate/BarnTemp.hbm.xml 00:55:00,875 INFO [HbmBinder] Mapping class: no.test.server.hibernate.BarnTemp -> BARN_TEMP 00:55:00,875 WARN [HbmBinder] Could not perform validation checks for component as the class no.test.server.hibernate.BarnTempId was not found 00:55:00,891 INFO [Configuration] Found mapping documents in jar: no\test\server\hibernate/BckAddressRegister.hbm.xml 00:55:00,906 INFO [HbmBinder] Mapping class: no.test.server.hibernate.BckAddressRegister -> BCK_ADDRESS_REGISTER 00:55:00,906 WARN [HbmBinder] Could not perform validation checks for component as the class no.test.server.hibernate.BckAddressRegisterId was not found
In my .har file, all classes is in the same package, including the the classes that are supposed to be missing.
Does anyone have a solution on this issue?
/JEH