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.