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.
ASKER
Yup, I open it up and see org.objectweb.asm and the class Type.
ASKER
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
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
ASKER
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
________
radarsh
ASKER
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?
What's the proper way to add a jar to the lib directory using eclipse?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Well, I finally got it in. I do appreciate the help.
Well, what was the issue?
ASKER
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.
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