Still getting NoClassDefFoundError on my JSF/Hibernate project

I keep running into this error: NoClassDefFoundError: org/objectweb/asm/Type. I've added the asm.jar file to my project WEB-INF/lib and my build path in eclipse, but I just can't shake this error.
deltaechoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

radarshCommented:
Hi deltaecho,

Are you sure that class is present in asm.jar? Try opening that jar file with winzip and check if you
have an entry under the path org/objectweb/asm/.

Your jar file might be corrupt.

________
radarsh
0
deltaechoAuthor Commented:
Yup, I open it up and see org.objectweb.asm and the class Type.
0
deltaechoAuthor Commented:
I downloaded it directly from asm.objectweb.org.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

radarshCommented:
Wierd problem indeed! Have you tried clean building your project?
Did you check if this jar is present under the .deployables folder
directly under your project in the workspace (through file system if you
go, you can see that folder)

________
radarsh
0
deltaechoAuthor Commented:
I did one better and went to the project inside the app server.  It didn't appear.
0
radarshCommented:
Which App Server are you using? How are you deploying?

________
radarsh
0
deltaechoAuthor Commented:
I'm using Weblogic 8.1.  I've tried to copy the jar directly to the WEB-INF/lib directory inside my project and I've tried to imort the jar using the import tool for the project.

What's the proper way to add a jar to the lib directory using eclipse?
0
radarshCommented:
If you've created a Dynamic Web Project, just pasting the JAR into the lib should suffice.
It will automatically add it to the build path.

However, if you don't paste from within eclipse, you have to refresh the lib folder in eclipse
to get the file.

In weblogic, you might have to re-deploy the application for it to see the new JAR entry.
________
radarsh
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
deltaechoAuthor Commented:
Well, I finally got it in.  I do appreciate the help.
0
radarshCommented:
Well, what was the issue?
0
deltaechoAuthor Commented:
Not quite sure.  I did the same thing where I did a drag of the jar file onto the lib directory and this time it added it.  I cleaned again and this time it worked.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.