一颗开花的树

谈笑但看风云起,龙腾尚待惊蛰春.

 

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 虚拟机 >    -Djava.awt.headless=true

posted on 2008-08-31 18:01 泽来-王者之剑 阅读(991) 评论(1)  编辑  收藏 所属分类: j2se

评论

# re: hp unix, weblogic. aix webSphere Ireport面函无法显示 2009-10-11 20:28 zhangweibd@hotmail.com

请教,如何把iReport部署到Weblogic里

最初的需求是这样,要让客户自己设计报表的样式,如果自己开发一个类似iReport或水晶报表一样的工具给客户用太麻烦了。又不可能让每个客户机装iReport。
所以考虑iReport是开源的,所以想把它部署到Weblogic上,让客户可以直接在html页里直接使用iReport,直接做报表的template

如果可能,加我MSN: zhangweibd@hotmail.com  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 

导航

统计

常用链接

留言簿(4)

随笔分类

随笔档案

友情链接

搜索

最新评论