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
Author

getting exception while loading servlet

Shivaprakash Shettihalli
Greenhorn

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.

exception

javax.servlet.ServletException: Servlet.init() for servlet firstconf threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:600)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1703)
java.lang.Thread.run(Thread.java:662)

root cause

java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:120)
javax.servlet.GenericServlet.init(GenericServlet.java:212)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:600)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1703)
java.lang.Thread.run(Thread.java:662)

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

thanks,
Shivaprakash
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
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 41060
    
  43
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: http://aspose.com/file-tools
 
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