-->
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.  [ 1 post ] 
Author Message
 Post subject: NoSuchMethodError org.objectweb.asm.ClassVisitor: visit
PostPosted: Mon Aug 20, 2007 11:35 am 
Beginner
Beginner

Joined: Tue Sep 13, 2005 4:54 pm
Posts: 34
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.2.5GA

Folks,
I just had a problem that I have solved. I did not see any mention of it in the forums so I thought I would just explain what it turned out to be.

When I deployed my app to a new Unix server, I just tar'd up the .war sent it over to the new server, where I un-tarred it.

Well, if your new version of an app contains new jar files, your un-tar is not going to affect the ones whose name has changed and so you end up with older Jar files lying around. And when it comes time for the app to run you may get the older version.

So, to solve this problem

"Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor: method visit(IILjava/lang/String ...

I had to first delete all the existing jar files in my destination directory's LIB directory. Then, when I did my un-tar, that LIB directory ended up with ONLY the ones I was then adding.

So, to summarize: this problem was caused by an old JAR file that was left over in my LIB directory.
To solve it, make sure you have deleted all the older JAR files before you deploy your updated version of the WAR.


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

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.