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: Struts 1.2, Hibernate 2.1.X
PostPosted: Thu Apr 22, 2004 10:38 am 
Regular
Regular

Joined: Mon Oct 20, 2003 3:14 am
Posts: 53
Location: Sterling, VA, USA
I've just tried to upgrade to the latest hibernate from 2.0.3, and it breaks my Hibernate Struts Plugin.

I get the classic exception (usually implying old libraries still around.

Code:
java.lang.NoClassDefFoundError
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:750)

...


Except I don't see any old ones still around. What bothers me a little is the 2 instances of commons-collections (Struts comes with commons-collection.jar, while Hibernate comes with commons-collections-2.1.jar), but removing one or the other doesn't seem to help.

Ideas?

This is what JBuilder is deploying. I've tried removing some optional jars. Maybe I haven't removed enough?


Code:
WebappLoader[]: Deploy JAR /WEB-INF/lib/FormDef.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\FormDef.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/activation.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\activation.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/antlr.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\antlr.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/cglib-2.0.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\cglib-2.0.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-beanutils.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\commons-beanutils.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-collections-2.1.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\commons-collections-2.1.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-collections.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\commons-collections.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-dbcp-1.1.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\commons-dbcp-1.1.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-digester.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\commons-digester.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-fileupload.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\commons-fileupload.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-lang-1.0.1.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\commons-lang-1.0.1.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-logging-1.0.3.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\commons-logging-1.0.3.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-logging.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\commons-logging.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-pool-1.1.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\commons-pool-1.1.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-validator.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\commons-validator.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/dom4j-1.4.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\dom4j-1.4.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/ehcache-0.6.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\ehcache-0.6.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/hibernate2.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\hibernate2.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/jaas.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\jaas.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/jakarta-oro.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\jakarta-oro.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/jakarta-regexp-1.3.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\jakarta-regexp-1.3.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/jcs-1.0-dev.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\jcs-1.0-dev.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/jdbc2_0-stdext.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\jdbc2_0-stdext.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/jgroups-2.2.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\jgroups-2.2.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/jstl.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\jstl.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/jta.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\jta.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/junit-3.8.1.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\junit-3.8.1.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/log4j-1.2.8.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\log4j-1.2.8.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/mail.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\mail.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/odmg-3.0.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\odmg-3.0.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/oscache-2.0.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\oscache-2.0.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/proxool-0.8.3.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\proxool-0.8.3.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/standard.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\standard.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/struts-el.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\struts-el.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/struts.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\struts.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/swarmcache-1.0rc2.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\swarmcache-1.0rc2.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/xalan-2.4.0.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\xalan-2.4.0.jar

WebappLoader[]: Deploy JAR /WEB-INF/lib/xerces-2.4.0.jar to C:\Documents and Settings\critter\jbproject\bb\bb\WEB-INF\lib\xerces-2.4.0.jar

_________________
"A statistician is a mathmetician, broken down by age and sex".


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 22, 2004 11:58 am 
Regular
Regular

Joined: Mon Oct 20, 2003 3:14 am
Posts: 53
Location: Sterling, VA, USA
I went and removed any jar I wasn't sure if I needed, and slowly added them back until I got it to run. I'm now running as bare of a hibernate config I as can, and I'm still getting this error.

_________________
"A statistician is a mathmetician, broken down by age and sex".


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.