• 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 wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic