Getting NotFoundException: ctory exception – Stack Overflow #org #apache #commons #logging #log #jar


I have already included common-logging1.1.1.jar and.

Are you sure you spelled the name of the JAR file exactly right? I think it should probably be commons-logging-1.1.1.jar (note the extra – in the name). Also check if the directory name is correct.

NoClassDefFoundError always means that a class cannot be found, so most likely your class path is not correct.

If you’re running this on Android then note that apparently java.beans package is not complete on Android. To attempt to fix it on Android try the following:

  1. Download android-java-air-bridge.jar (currently the download button is on the bottom of the page or direct link here )
  2. Copy the downloaded jar to your [APPROOT]/app/libs directory (or link the jar in any other way)
  3. Change the import *** statements to that of air-bridge. Eg import javadz.beanutils.BeanUtils instead of import org.apache.commons.beanutils.BeanUtils;
  4. Clean and rebuild the project

I apologise as I realise this is not exactly answering the question, though this SO page comes up a lot when searching for android-generated NoClassDefFoundError: Failed resolution of: beanUtils errors.

answered Jun 29 ’16 at 20:29

Just check whether the commons-logging.jar has been added to your libs and the classpath. I had the same issue and that was because of this. dhammikas-

answered Oct 14 ’09 at 8:30

Many answers here say this same thing already! ericbn Aug 14 ’14 at 19:53

into your WEB-INF/lib folder.

I tried, it works.

answered Nov 21 ’11 at 5:37

Is this a joke? MickJ Oct 6 ’14 at 20:34

thats more than is needed. not answering the question vikingsteve Jan 5 at 8:02

Check whether the jars are imported properly. I imported them using build path. But it didn’t recognise the jar in WAR/lib folder. Later, I copied the same jar to war/lib folder. It works fine now. You can refresh / clean your project.

Hello friends if your getting any not class found exception in hibernate code it is the problem of jar mainly two problems
1.I mean to say your working old version of hibernate may be 3.2 bellow.So if u try above 3.6 it will works fine

2.first checkes database connection.if it database working properly their was a mistake in ur program or jar file.

please check these two prioblems if it also not working you tried to IDE. I am using netbeanside 6.9 hibernate working dont get any error from class not founnd exception..

I hope this one helps more

answered Jul 18 ’13 at 7:14

Solution is to Add common-logging.x.x jar file

answered Jul 28 ’14 at 7:38

This answer has already been given, many, many times. Andrew Stubbs Jul 28 ’14 at 8:06

If all else fails, as it had for me, try putting the commons-logging-x.y.z.jar in your Tomcat lib directory. It solved the problem! BTW, I am using Tomcat 6.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.