关于linux下,tomcat应用中,利用jasper导出报表的错误!
我原来的系统跑在HP-UX下,完全没问题,然后我把tomcat目录和应用程序目录拷贝到了一个linux下,运行正常,但就是以前的导出excel和pdf文件的方法报错。如下:
HTTP Status 500 -
--------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
com.cnc.oss.ttms.TtmsFilter.doFilter(TtmsFilter.java:21)
root cause
java.lang.NoClassDefFoundError sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:108)
java.security.AccessController.doPrivileged(Native Method)
sun.java2d.SunGraphicsEnvironment. <init> (SunGraphicsEnvironment.java:78)
sun.awt.X11GraphicsEnvironment. <init> (X11GraphicsEnvironment.java:150)
sun.reflect.GeneratedConstructorAccessor202.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
java.lang.Class.newInstance0(Class.java:306)
java.lang.Class.newInstance(Class.java:259)
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGraphEnv(JRGraphEnvInitializer.java:58)
net.sf.jasperreports.engine.fill.JRBaseFiller. <init> (JRBaseFiller.java:182)
net.sf.jasperreports.engine.fill.JRVerticalFiller. <init> (JRVerticalFiller.java:82)
net.sf.jasperreports.engine.fill.JRVerticalFiller. <init> (JRVerticalFiller.java:74)
net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:107)
net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:428)
com.cnc.oss.ttms.search.MyJasper.doExecute(MyJasper.java:132)
com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:109)
com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:258)
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:182)
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
com.opensymphony.xwork.DefaultActionInvocation.in