hp unix, weblogic. aix webSphere Ireport面函无法显示

hp unix, weblogic. aix webSphere Ireport面函无法显示
 

ava.lang.NoClassDefFoundError

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:141)

        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)

        at net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGraphEnv(JRGraphEnvInitializer.java:58)

        at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:311)

        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:92)

        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:74)

        at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)

        at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:57)

        at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)

        at com.amerisia.ebills.reports.ViewReportAction.createJasperPrint(ViewReportAction.java:155)

        at com.amerisia.ebills.reports.ViewReportAction.execute(ViewReportAction.java:44)

        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)

        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)

        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)

        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

        at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)

        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)

        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)

        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)

        at com.amerisia.ebills.commons.web.EncodingFilter.doFilter(EncodingFilter.java:25)

        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)

        at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:326)

        at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)

        at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)

        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)

        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)

        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

        at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)

        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)

        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)

        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)

        at com.amerisia.ebills.commons.web.EncodingFilter.doFilter(EncodingFilter.java:25)

        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)

        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)

        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)

        at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)

        at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)

        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)

        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

解决方案:使用jdk处理图形,在startWebLogic.sh${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Dweblogic.ProductionModeEnabled=${PRODUCTION_MODE} -Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" weblogic.Server 添加:

-Djava.awt.headless=true



AIX, WEBSPHERE下错误信息为:
Error 500: sun/awt/X11GraphicsEnvironment
解决方案:使用jdk处理图形,进入应用程序服务器 > server1 > 进程定义 > Java 虚拟机 > 一般 JVM 自变量   -Djava.awt.headless=true

你可能感兴趣的:(hp unix, weblogic. aix webSphere Ireport面函无法显示)