Link to home
Create AccountLog in
Avatar of deltaecho
deltaecho

asked on

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.
Avatar of radarsh
radarsh

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
Avatar of deltaecho

ASKER

Yup, I open it up and see org.objectweb.asm and the class Type.
I downloaded it directly from asm.objectweb.org.
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
I did one better and went to the project inside the app server.  It didn't appear.
Which App Server are you using? How are you deploying?

________
radarsh
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?
ASKER CERTIFIED SOLUTION
Avatar of radarsh
radarsh

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Well, I finally got it in.  I do appreciate the help.
Well, what was the issue?
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.