I get the following server error for a horizontal graph. I've never had problems on linux and windows for the same program.
root cause
java.lang.NoClassDefFoundError
at
com.jrefinery.chart.HorizontalCategoryAxis.(HorizontalCategoryAxis.java:94)
at
com.jrefinery.chart.ChartFactory.createVerticalBarChart(ChartFactory.java:77)
at
com.proteusmobile.campaignapp.web.analyze.DrawChart.createChart(DrawChart.java:154)
at
com.proteusmobile.campaignapp.web.analyze.DrawChart.doGet(DrawChart.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)
intermittent server errors with tomcat on solaris
Re: intermittent server errors with tomcat on solaris
Hi,
My problem is bigger then this. I am running the catalina from a telnet terminal. But the JfreeChart needs the servlet container to be run from the X-environment. And when I run the servlet container from the telnet JVM crashes aborting the tomcat.
Is it not uncessary to use the X-windows for runing a servlet container? Is it not possible to use the JFreeCharts libs in servlets without running from X?
Any suggestions please?
Raj Saini
My problem is bigger then this. I am running the catalina from a telnet terminal. But the JfreeChart needs the servlet container to be run from the X-environment. And when I run the servlet container from the telnet JVM crashes aborting the tomcat.
Is it not uncessary to use the X-windows for runing a servlet container? Is it not possible to use the JFreeCharts libs in servlets without running from X?
Any suggestions please?
Raj Saini
Re: intermittent server errors with tomcat on solaris
See thread "Error running serlvet"
http://www.object-refinery.com/phorum-3 ... 615&t=1615
Particularly comments by Hari
http://www.object-refinery.com/phorum-3 ... 615&t=1615
Particularly comments by Hari
Re: intermittent server errors with tomcat on solaris
I did verify that X-Windows is present on the system.
Also, whenever I restart the tomcat server everything runs smoothly, and then at random the graph doesn't appear and I get the mentioned server error.
Also, whenever I restart the tomcat server everything runs smoothly, and then at random the graph doesn't appear and I get the mentioned server error.
Re: intermittent server errors with tomcat on solaris
Upon further investigation the problem did turn out to be X-Windows based. What made it difficult was since Tomcat was started from a windows xterm, everything ran fine until the Windows box was unplugged.