7

I am putting spring.jar file in my lib folder but still there is error like

 at org.apache.jsp.index_jsp._jspInit(index_jsp.java:23)
 at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
 at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Unknown Source)

and webpage give me error like

HTTP Status 500 -

How do I resolved it?

2
  • possible duplicate of War deployment error related to classloading. Please do not repost your questions; edit the original post instead if needed. Or if there is a significant difference between the two, please state the difference clearly in the 2nd post :-) Jan 6, 2011 at 13:05
  • @org, oops, sorry, I may have been too quick to react, mislead by the title :-( Jan 6, 2011 at 13:09

3 Answers 3

17

If you want to configure load time weaving on Tomcat, you need to place org.springframework.instrument.tomcat.jar into lib folder of Tomcat installation directory, as described in the documentation.

Otherwise, if you don't need it and accidentially used wrong context.xml, you need to remove <Loader> element from it.

2

The org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader is now located in the spring-instrument-tomcat.jar, which can be downloaded from Maven Central or Spring Source.

0

Whenever you see an exception with something of this effect (i.e. a ClassNotFoundException):

java.lang.ClassNotFoundException: xx.xxx.class.ClassName

You must know that the (from JavaDoc of ClassNotFoundException):

no definition for the class with the specified name could be found.

In this case, com.vaannila.service.UserServiceImpl cannot be found (from error log: java.lang.ClassNotFoundException: com.vaannila.service.UserServiceImpl).

Make sure you have the jar file included in your project (containing com.vaanila.service.UserServiceImpl).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.