-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Jboss deployment: no ClassDefFoundError
PostPosted: Sat Nov 29, 2003 8:31 pm 
Newbie

Joined: Sat Nov 15, 2003 10:12 am
Posts: 2
Location: Amsterdam, The Netherlands
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 30, 2003 5:30 am 
Newbie

Joined: Sat Nov 15, 2003 10:12 am
Posts: 2
Location: Amsterdam, The Netherlands
Oops. Forget about it, sorry for your time.

Perhaps an old cglib-asm.jar that was lying around caused the problem. Anyway, I read the fine ./lib/libs-readme.txt document and have cleaned up the set of jars now.

(I should never send something in after midnight, the chances of wasting everybody's time are too great.)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.