We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Still getting NoClassDefFoundError on my JSF/Hibernate project

deltaecho
deltaecho asked
on
Medium Priority
257 Views
Last Modified: 2008-02-01
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.
Comment
Watch Question

Commented:
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

Author

Commented:
Yup, I open it up and see org.objectweb.asm and the class Type.

Author

Commented:
I downloaded it directly from asm.objectweb.org.

Commented:
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

Author

Commented:
I did one better and went to the project inside the app server.  It didn't appear.

Commented:
Which App Server are you using? How are you deploying?

________
radarsh

Author

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?
Commented:
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Well, I finally got it in.  I do appreciate the help.

Commented:
Well, what was the issue?

Author

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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.