PDA

View Full Version : Can't connect to X11 window server using ':0.0' ....



razer
01-29-2007, 12:01 PM
Hi all...

I am creating a dashboard and trying to run it on debian+tomcat 5.
Running at windows, it works fine. But at linux I receive the following
exception.

Anybody knows what is thi?

Thanks in advance.

Razer


javax.servlet.ServletException: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.jsp.PrdDashboard_jsp._jspService(PrdDashboard_jsp.java:392)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.pentaho.core.system.SystemStatusFilter.doFilter(SystemStatusFilter.java:53)

root cause

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
sun.awt.X11GraphicsEnvironment.<clinit>(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.<init>(Font.java:344)
org.jfree.chart.title.TextTitle.<clinit>(TextTitle.java:127)
org.pentaho.plugin.jfreechart.PieDatasetChartDefinition.<init>(PieDatasetChartDefinition.java:59)
org.pentaho.plugin.jfreechart.PieDatasetChartDefinition.<init>(PieDatasetChartDefinition.java:112)
org.pentaho.plugin.jfreechart.PieDatasetChartDefinition.<init>(PieDatasetChartDefinition.java:121)
org.pentaho.ui.component.charting.PieDatasetChartComponent.createChart(PieDatasetChartComponent.java:91)
org.pentaho.ui.component.charting.PieDatasetChartComponent.getXmlContent(PieDatasetChartComponent.java:162)
org.pentaho.ui.XmlComponent.getContent(XmlComponent.java:39)
org.pentaho.ui.ChartHelper.doPieChart(ChartHelper.java:125)
org.apache.jsp.jsp.PrdDashboard_jsp._jspService(PrdDashboard_jsp.java:210)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.pentaho.core.system.SystemStatusFilter.doFilter(SystemStatusFilter.java:53)

malonso1976
01-29-2007, 12:20 PM
The XServer is down or not configured... normally, servers don't start X (to cut down expensive resources), but you will easily overcome this error adding the following to your application servers configuration:

"-Djava.awt.headless=true"

It is a common java vm option.

razer
01-29-2007, 01:29 PM
Thank you very much.

Now it presents my page, and I can see that it load all data.

But, the graphics appears like a white box, that is, when I pass the mouse over this box, I can see a link inside (eg, a pie chart with link), but the graphic is not shown.

Do you have some suggestion?

Thanks a lot.

Razer.

razer
01-30-2007, 12:39 PM
Hi all...

Problem solved... The url at web.xml was wrong....

Thank you all

Razer