• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
What are your superhero powers? Go ahead and try them on this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic