SAS Web Report Studio in a Headless Configuration

By | February 11, 2009

saslogo We ran into a problem recently in SAS Web Report Studio 3.1 where our web reports that contained graphs produced java errors while our table-only reports did not.  Our platform is SAS Enterprise Business Intelligence Server 9.1.3 Service Pack 4 running Solaris 10 on Sun SPARC Servers.  Our web server is Apache Tomcat 4.1.18.  The error we received looked like this:

Error messages:There is a problem with the current page. Error Rendering the Report
 
Root Cause: java.lang.NoClassDefFoundError
  at com.sas.servlet.tbeans.graphics.BaseBarChart.(BaseBarChart.java:23)
  at com.sas.servlet.tbeans.olapgraphics.html.OLAPBarChart.(OLAPBarChart.java:83)
  at com.sas.servlet.tbeans.olapgraphics.html.OLAPBarChart.(OLAPBarChart.java:74)
  at com.sas.servlet.tbeans.olapgraphics.html.OLAPBarChartComposite.(OLAPBarChartComposite.java:57)
  at com.sas.servlet.tbeans.olapgraphics.html.OLAPBarChartComposite.(OLAPBarChartComposite.java:43)

 

I contacted SAS tech support and they had the answer instantly.  When running in a headless environment (a server that does not have a display (monitor) attached to it), Tomcat requires the following option in its startup script:

Djava.awt.headless=true

 

Once I added the option to the Tomcat startup script and restarted Tomcat and SAS Remote Services, no more errors and we were getting our graph output in Web Report Studio again.

Leave a Reply

Your email address will not be published. Required fields are marked *