-->
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: Conflict using two versions of Hibernate in a web app?
PostPosted: Tue Feb 15, 2011 6:09 pm 
Newbie

Joined: Thu Dec 18, 2008 1:40 pm
Posts: 8
Hi,

We are transforming all native JDBC based database transaction calls into Hibernate. The existing web application uses Alfresco based Content Management web tool. The version of Alfresco we are using itself uses Hibernate 3.2.1. For our custom backend java code we were told we cannot use any higher version of Hibernate. Is it true there could be conflict between Hibernate sessions where the Alfresco app is using the older version and our code using a higher version of Hibernate? We do not have problem using a higher version of Hibernate 3.5. But using the Hibernate 3.2.1 jars running into errors in running a simple test application. Here's part of the error I am getting -
Exception in thread "main" java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(I)V
at net.sf.cglib.core.DebuggingClassWriter.<init>(DebuggingClassWriter.java:47)
at net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30)

This is list of jars I have -

asm-all-2.2.3.jar
asm-util-3.1.jar
cglib-asm.jar
asm-commons-3.1.jar
cglib-2.2.jar
antlr-2.7.6.jar
dom4j-1.6.1.jar
commons-collections-3.1.jar
commons-logging-1.1.1.jar
ejb3-persistence.jar
hibernate-3.2.1.jar
log4j.jar
ojdbc14.jar
slf4j-1.5.0.jar
slf4j-api-1.5.8.jar
slf4j-log4j12.jar
hibernate-annotations.jar
hibernate-commons-annotations.jar
javassist-3.9.0.GA.jar
jta-1.1.jar

Not sure if have any which could create conflict or may be redundant.

Thanks


Top
 Profile  
 
 Post subject: Re: Conflict using two versions of Hibernate in a web app?
PostPosted: Thu Feb 17, 2011 3:57 am 
Newbie

Joined: Thu Feb 17, 2011 3:23 am
Posts: 2
I’ve never tried that error until this time actually. But later I am going to install some of those apps so I need to check this out. I might encounter this error on the two versions in web app.

_________________
indianapolis seo


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.