Hi,
I just moved from hibernate-2.1beta4 (or 5) to 2.1rc1.
My hibernate session factories are packaged in a .sar's which are packaged in .ears which are deployed by jboss.
Previously this went well, but despite putting the new hibernate2.jar and all .jar files from the rc1/lib directory in my jboss lib directory I get a NoClassDefError upon jboss deployment.
In my jboss-service.xml I have (xdoclet generated):
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=sitepublisherHibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<attribute name="MapResources">com/filmfestivalrotterdam/sitepublisher/hibernate/Magazine.hbm.xml,com/filmfestivalrotterdam/sitepublisher/hibernate/ContentItem.hbm.xml,com/filmfestivalrotterdam/sitepublisher/hibernate/Image.hbm.xml,com/filmfestivalrotterdam/sitepublisher/hibernate/BlobImage.hbm.xml,com/filmfestivalrotterdam/sitepublisher/hibernate/Menu.hbm.xml</attribute>
<attribute name="JndiName">java:/sitepublisherHibernateFactory</attribute>
<attribute name="Datasource">java:/sitepublisher</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
<attribute name="UseOuterJoin">false</attribute>
<attribute name="ShowSql">true</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
</mbean>
The first lines of the stack trace upon deployment are:
java.lang.NoClassDefFoundError
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:720)
at net.sf.hibernate.jmx.HibernateService.buildSessionFactory(HibernateService.java:162)
at net.sf.hibernate.jmx.HibernateService.start(HibernateService.java:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
I am missing something. Does anyone know what?
|