CMDBuild Forum

Jasper reports failing on fresh install on Ubuntu 12.04

I have installed 1.5.4 on Ubuntu 12.04 and got it (mostly) working by performing the fixes specified elsewhere  (newer postgresql-9.1-902.jdbc4.jar, vanilla tomcat-dbcp.jar).

However Reports in any format fail to generate.

Looking at cmdbuild.log I see:-

{{{

INFO  2012-05-22 17:48:47 [jsonrpc ] Calling url /management/modreport/createreportfactory
ERROR 2012-05-22 17:48:47 [jsonrpc ] A java.lang.NoClassDefFoundError occurred calling method class org.cmdbuild.servlets.json.management.ModReport.createReportFactory: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
}}}

Whenever I click on one of the report type icons.

I have checked and "net.sf.jasperreports.engine.util.JRStyledTextParser" is in jasperreports-3.7.1.jar which in turn is in "/var/lib/tomcat6/webapps/cmdbuild/WEB-INF/lib" do not sure why it cannot be found.

catalina.out has nothing, the last entry being hours earlier:-

{{{

22-May-2012 15:47:35 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
22-May-2012 15:47:35 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
22-May-2012 15:47:35 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
22-May-2012 15:47:35 org.apache.catalina.startup.Catalina start
INFO: Server startup in 9729 ms

}}}

Tim ha scritto:

I have installed 1.5.4 on Ubuntu 12.04 and got it (mostly) working by performing the fixes specified elsewhere  (newer postgresql-9.1-902.jdbc4.jar, vanilla tomcat-dbcp.jar).

However Reports in any format fail to generate.

Looking at cmdbuild.log I see:-

{{{

INFO  2012-05-22 17:48:47 [jsonrpc ] Calling url /management/modreport/createreportfactory
ERROR 2012-05-22 17:48:47 [jsonrpc ] A java.lang.NoClassDefFoundError occurred calling method class org.cmdbuild.servlets.json.management.ModReport.createReportFactory: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
}}}

Whenever I click on one of the report type icons.

I have checked and "net.sf.jasperreports.engine.util.JRStyledTextParser" is in jasperreports-3.7.1.jar which in turn is in "/var/lib/tomcat6/webapps/cmdbuild/WEB-INF/lib" do not sure why it cannot be found.

OK I think I have solved my own problem. By default Ubuntu server doesn't install libfont-java which seems to be needed to enable fonts to be used by tomcat. Also its worth installing a few fonts to avoid errors of "font not found" if you want more than basic font types in pdf's..