|
realtimedemo.jsp throwing classnotfoundexception |
Posted by Rahul Ashok on Apr-09-2014 19:06 |
|
Hi ,
I have been running the realtimedemo.jsp page for quite some time now. But today,it
unexpectedly threw the classnotfoundexception and the chart is not loading. I have
pasted the trace below. Please help!!
SEVERE: Servlet.service() for servlet [jsp] in context with path [/chartdir_java_v5] threw
exception [javax.servlet.ServletException: java.lang.NoClassDefFoundError:
ChartDirector/XYChart] with root cause
java.lang.ClassNotFoundException: ChartDirector.XYChart
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:126)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)
at
org.apache.jsp.jspdemo.realtimechart_005f3_jsp._jspService(realtimechart_005f3_jsp.java
:141)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.jav
a:1023)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtoco
l.java:589)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Regards
Rahul |
Re: realtimedemo.jsp throwing classnotfoundexception |
Posted by Peter Kwan on Apr-10-2014 01:42 |
|
Hi Rahul,
The error means that the JSP cannot find ChartDirector. This is usually caused by
ChartDirector not being installed for your web application.
Have you double-checked that "ChartDirector.jar" is in the "WEB-INF/lib" subdirectory of
your web application?
Regards
Peter Kwan |
Re: realtimedemo.jsp throwing classnotfoundexception |
Posted by Rahul Ashok on Apr-11-2014 14:00 |
|
Hi Peter,
The issue is resolved. Yes, it was because of the wrong jar file inside lib folder.
Thanks a lot!!
Rahul Ashok,
Researcher
SUTD
Singapore |
|