[jboss-user] [JBoss Portal] - Problem wiht JFree charts in linux environment with JBOSS as

kiran_pvm do-not-reply at jboss.com
Fri Feb 20 00:07:22 EST 2009


Using JBoss as application server in struts frame work. We used jfree charts to get the graphical reports. It is working fine in windows, the same is not working in linux environment. It is giving below error while accessing the graphs please guide me to resolve the issue its very very very urgent for me
NOTE: Xwindows is installed in my linux system.

ERROR
----------------------------------------------
javax.servlet.ServletException: Can't connect to X11 window server using 'localhost:1.0' as the value of the DISPLAY variable.
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
	org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp._jspService(org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp:295)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
	org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	com.adp.common.utils.SessionValidateFilter.doFilter(SessionValidateFilter.java:121)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


root cause 

java.lang.InternalError: Can't connect to X11 window server using 'localhost:1.0' as the value of the DISPLAY variable.
	sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
	sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:134)
	java.lang.Class.forName0(Native Method)
	java.lang.Class.forName(Class.java:141)
	java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
	java.awt.Font.initializeFont(Font.java:308)
	java.awt.Font.(Font.java:344)
	org.jfree.chart.axis.Axis.(Axis.java:132)
	org.jfree.chart.StandardChartTheme.(StandardChartTheme.java:219)
	org.jfree.chart.ChartFactory.(ChartFactory.java:222)
	de.laures.cewolf.taglib.CewolfChartFactory.getChartInstance(CewolfChartFactory.java:167)
	de.laures.cewolf.taglib.SimpleChartDefinition.produceChart(SimpleChartDefinition.java:30)
	de.laures.cewolf.taglib.AbstractChartDefinition.getChart(AbstractChartDefinition.java:121)
	de.laures.cewolf.taglib.ChartImageDefinition.ensureRendered(ChartImageDefinition.java:137)
	de.laures.cewolf.taglib.ChartImageDefinition.getRenderingInfo(ChartImageDefinition.java:126)
	de.laures.cewolf.taglib.tags.ChartImgTag.getRenderingInfo(ChartImgTag.java:205)
	de.laures.cewolf.taglib.tags.ChartMapTag.doStartTag(ChartMapTag.java:91)
	org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp._jspx_meth_cewolf_map_0(org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp:460)
	org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp._jspx_meth_cewolf_img_0(org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp:434)
	org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp._jspService(org.apache.jsp.jsp.LeaveNew.LeaveTransactions.LeaveUtilizationChart_jsp:225)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
	org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	com.adp.common.utils.SessionValidateFilter.doFilter(SessionValidateFilter.java:121)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211682#4211682

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211682



More information about the jboss-user mailing list