Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crystal report viewer under Linux Suse

Status
Not open for further replies.

ceccina

IS-IT--Management
Nov 18, 2002
22
IT
Hi,
I have a J2EE application which uses Crystal Report for JBuilder 2005 to display reports developed with Crystal Report 10.
I put that on a Tomcat 5.5.9 server installed on a SLES 9 machine (Kernel version 2.6.5-7.97-smp).
When I call the jsp page wich calls the viewer, I get this exception the first time:
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:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.viewreport.myviewer_jsp._jspService(org.apache.jsp.viewreport.myviewer_jsp:174)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.---- Error code:-2147467259 Error code name:failed
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.JPEReportSource.<init>(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Source)
org.apache.jsp.viewreport.myviewer_jsp._jspService(org.apache.jsp.viewreport.myviewer_jsp:74)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.

-------------------------------------------

and this exception the second time:

javax.servlet.ServletException: sun/awt/motif/MToolkit
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.viewreport.myviewer_jsp._jspService(org.apache.jsp.viewreport.myviewer_jsp:174)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: sun/awt/motif/MToolkit---- Error code:-2147467259 Error code name:failed
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.JPEReportSource.<init>(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Source)
org.apache.jsp.viewreport.myviewer_jsp._jspService(org.apache.jsp.viewreport.myviewer_jsp:74)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)




Can you help me?
 
Hi,
Given this error ( which seesm to be at the root of al the others):

Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.


Have you checked that your X11 server is up and that you can access it with those settings ?



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Now it works after having installed KDE interface.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top