aspose file tools*
The moose likes Other Application Frameworks and the fly likes Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring" Watch "Spring" New topic
Author

Spring

kate pal
Greenhorn

Joined: Sep 25, 2008
Posts: 9
I am trying basic spring application , I am getting following exception

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.core.CollectionFactory.<clinit>(CollectionFactory.java:64)
at org.springframework.core.SimpleAliasRegistry.<init>(SimpleAliasRegistry.java:41)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:75)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.<init>(FactoryBeanRegistrySupport.java:41)
at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:146)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:144)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:155)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:121)
at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:72)
at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:61)
at com.code.java.helloclient.main(helloclient.java:22)

I searched .jar file but i still not found

can you please help me out for the same

Thanks in adance
K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
Try including commons-logging.jar


Aditi
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

The full dependency Spring distribution comes with a bunch of libraries which Spring depends on. Look into the "lib\jakarta-commons" directory, there should be a commons-logging.jar file. You have to put it in your CLASSPATH.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring