Solved

NoClassDefFoundError

Posted on 2013-02-05
3
185 Views
Last Modified: 2013-06-14
Hi,
I'm getting followin error in eclipse, I've the jar file containing this class in my classpath.
java.lang.NoClassDefFoundError: org/objectweb/jonas/security/auth/callback/NoInputCallbackHandler, although I've the required jar file in the classpath and the code is compiling.

Please help me how to resolve this issue.
0
Comment
Question by:OTSSolutions
3 Comments
 
LVL 11

Accepted Solution

by:
SANDY_SK earned 500 total points
ID: 38856460
If it is a web application and is getting deployed into tomcat or any other web server, Check and see if the jar files are in its lib folder.

Sometimes what happens is that if you have added a jar file in the classpath and not as a library to your project, the code will complie but when deploying the jar will not be bundled with the application.
0
 
LVL 7

Expert Comment

by:gudii9
ID: 38857031
what kind of application is this. Seems like build path, deploy related issue.

Interesting link on jar files
http://docs.oracle.com/javase/tutorial/deployment/jar/run.html
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 38858390
I think its from your local system

Yes means try with the sloution

Right click on jar in your eclispe add to build path . then it will add  jar .

Clean yor project and tomcat services . restart the tomcat . it will add
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordmultiple challenge 12 156
allswap challenge 6 134
Which is the latest version of Apache Tomcatl 3 67
servlet example 17 59
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

749 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