• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
It's a pleasure to see superheros taking such an interest in science. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic