This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes getting exception while loading servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getting exception while loading servlet" Watch "getting exception while loading servlet" New topic

getting exception while loading servlet

Shivaprakash Shettihalli

Joined: Nov 20, 2007
Posts: 18
Im seeing the following exception while accessing the application.Please help me with what might have gone wrong.

type Exception report

message Servlet.init() for servlet firstconf threw exception

description The server encountered an internal error that prevented it from fulfilling this request.


javax.servlet.ServletException: Servlet.init() for servlet firstconf threw exception

root cause

java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.36 logs.

here are the environment details:
spring 3 framework
apache tomcat app server

Priya chek
Ranch Hand

Joined: Feb 12, 2013
Posts: 44
I think it is a 405 error -method not found exception. check your init() method.

shivam singhal
Ranch Hand

Joined: Jul 15, 2012
Posts: 215

what did you do exactly??

do you override init method, checkout did you correctly override the init method..
Shivaprakash Shettihalli

Joined: Nov 20, 2007
Posts: 18
I'm tring to load the DispatcherServlet in Spring mvc framework.
I think tomcat is failing to load DispatcherServlet here.
But why? What might have gone wrong is my worry..
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41060
Sounds like you're not using the correct versions of some libraries. Make sure you only have jar file versions in the classpath that go with one another, not any other ones.

Ping & DNS - my free Android networking tools app
I agree. Here's the link:
subject: getting exception while loading servlet
Similar Threads
Servlet throws Unload Exception
Automatically Generating ID
jsp servlet sql server
Problems with Tomcat 5.12 and 5.14
exception at first startup