• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Spring Hello World Error

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey all, I'm a little green with Spring and having trouble getting everything set up for now. I'm working in Eclipse and created a plan old java project and followed this Hello World Example/Tutorial.

Everything in my code appears to be fine (copy pasted). I downloaded a spring framework zip and imported the jar files in to the folder and created the project and xml files.

If I try to run the main as an application in eclipse I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory at org.springframework.core.CollectionFactory.<clinit>(CollectionFactory.java:64)



This is the line it traces back too.

Thanks for your help.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have the commons-logging jar?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you have downloaded Spring with full dependencies, you should have a folder called "lib" in your zip file. The Commons Logging library is in \jakarta-commons\commons-logging.jar.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic