我用JfreeChart画甘特图,写了一个GanttChart类,专么用于画图,ProjectUtils类,里面描述了项目的信息,在ProjetUtils里面提供了一个调用GanttChart的函数,用于画图。我在ProjectUtils类中调试完全没有问题,图也能正常画出来但是在通过JSP调用ProjectUtils中的方法的时候,就是一直出错
是在JFreeChart  chart = ChartFactory.createGanttChart的时候,产生如下的Exception 小弟有点想不通,为什么在java中调试没有问题,但是在jsp调用中能产生这个servletException谢谢
javax.servlet.ServletException: org.jfree.util.Log.createContext(Ljava/lang/Class;)Lorg/jfree/util/LogContext;
javax.servlet.ServletException: org.jfree.util.Log.createContext(Ljava/lang/Class;)Lorg/jfree/util/LogContext;
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at org.apache.jsp.project_0005fdefine$jsp._jspService(project_0005fdefine$jsp.java:507)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)