This week's book giveaway is in the Cloud forum.
We're giving away four copies of Terraform in Action and have Scott Winkler on-line!
See this thread for details.
Win a copy of Terraform in Action this week in the Cloud forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

java.lang.ClassNotFoundException: org.slf4j.impl.MessageFormatter

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

This is Ram. I am new to spring framework. I have created a new spring application with hibernate integration. when i try to run this application got some errors.

Please help me to solve this issue.

My Code is Here :

dispatcher-servlet.xml



web.xml file:





LoginController.java :



EmpLogin.Java :



loginform.jsp :





Error Message:



I expect your suggestions

Thanks
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hibernate uses slf4j to do the logging. You need to make sure slf4j is in classpath. How are you building your war? Are you using maven or ant or deploying from IDE? You need to make sure you have added all the required libraries in the WAR

Generally it is reccomended that for Spring/Hibernate based applications, you use a build tool that can do dependency management; for example, maven or gradle. Ivy can be used to do dependency management for ant based builds. Using a build tool that can do dependency management means that the build tool will figure out which other jars need to be packaged in the war and it will automatically package them. You don;t have to break your head tracking missing jars.
 
reply
    Bookmark Topic Watch Topic
  • New Topic