Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Still getting NoClassDefFoundError on my JSF/Hibernate project

Posted on 2006-03-22
11
Medium Priority
?
245 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.
0
Comment
Question by:deltaecho
  • 6
  • 5
11 Comments
 
LVL 10

Expert Comment

by:radarsh
ID: 16260122
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
 

Author Comment

by:deltaecho
ID: 16261112
Yup, I open it up and see org.objectweb.asm and the class Type.
0
 

Author Comment

by:deltaecho
ID: 16261180
I downloaded it directly from asm.objectweb.org.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:radarsh
ID: 16261184
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
 

Author Comment

by:deltaecho
ID: 16261225
I did one better and went to the project inside the app server.  It didn't appear.
0
 
LVL 10

Expert Comment

by:radarsh
ID: 16261318
Which App Server are you using? How are you deploying?

________
radarsh
0
 

Author Comment

by:deltaecho
ID: 16261476
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
 
LVL 10

Accepted Solution

by:
radarsh earned 200 total points
ID: 16261582
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
 

Author Comment

by:deltaecho
ID: 16261636
Well, I finally got it in.  I do appreciate the help.
0
 
LVL 10

Expert Comment

by:radarsh
ID: 16261652
Well, what was the issue?
0
 

Author Comment

by:deltaecho
ID: 16261675
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month13 days, 4 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question