I'm having trouble getting BIRT (http://www.eclipse.org/birt/phoenix/) running and I was hoping for some help. I've searched around a lot to try and resolve my issues, but I can't find anyone else who's installed BIRT onto a TurnKey VM so I though maybe someone on this board might be able to shed some light on the process. I'm generally experienced working on and managing Linux servers, but this is the first time that I've done anything with Java, so I'm trying to get it set up the simplest way I can. I'm using the "Tomcat on Apache" virtual appliance. I had thought that using a VM image would simplify the process, but I'm still running into problems. Let me describe the steps I've taken and the problems I've run into.
- Download and install the VM. This worked fine
- Start the VM. This works fine, and I'm able to SSH into the VM. I'm also able to see the following pages without errors:
(Note, these addresses seem to be different than the default Tomcat addresses, which use a different port- 8080 or 8180. Could this be a problem? Is BIRT looking for something at a specific port?)
- Download BIRT and move WebViewerExample into the Tomcat path, restart Tomcat:
cd /opt/ mkdir download cd /opt/download wget http://carroll.aset.psu.edu/pub/eclipse/birt/downloads/drops/R-R1-2_6_1-201009171723/birt-runtime-2_6_1.zip unzip birt-runtime-2_6_1.zip cd birt-runtime-2_6_1 cp -a WebViewerExample /var/lib/tomcat5.5/webapps mv /var/lib/tomcat5.5/webapps/WebViewerExample/ /var/lib/tomcat5.5/webapps/birt-viewer
- After doing this and viewing the Tomcat Web Application Manager (https://10.4.20.51/manager/html), I can see /birt-viewer listed under the Applications, but its state is Stop. If I click Start, the Message report:
FAIL - Application at context path /birt-viewer could not be started
- At this point I started searching around. One thing I found is that when I restarted Tomcat, a bunch of errors got written to /var/log/syslog. The first was:
Nov 27 03:53:52 tomcat-apache jsvc.exec: Nov 27, 2010 3:53:52 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.eclipse.birt.report.listener.ViewerServletContextListener java.security.AccessControlException: access denied (java.util.PropertyPermission birt.designer read) ^Iat java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) ^Iat java.security.AccessController.checkPermission(AccessController.java:546) ^Iat java.lang.SecurityManager.checkPermission(SecurityManager.java:532) ^Iat java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285) ^Iat java.lang.System.getProperty(System.java:650) ^Iat org.eclipse.birt.report.utility.ParameterAccessor.initParameters(ParameterAccessor.java:1459) ^Iat org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.java:56) ^Iat org.apache.catalina.core.StandardContext.listenerStart(StandardCont
Searching for this error lead me to posts that pointed to TOMCAT5_SECURITY. Following those instructions, I found that if I disable TOMCAT5_SECURITY (by setting TOMCAT5_SECURITY=no in /etc/default/tomcat5.5) and restart Tomcat, then the error goes away and Application Manager page shows birt-viewer as running. So that's good. But if I click on the /birt-viewer link to open the page (https://10.4.20.51/birt-viewer), I get a 404. So that's bad. So my first question is, is disabling TOMCAT5_SECURITY a requirement to get BIRT running, or is it indicative of a different problem with my installation? For example, is this the result of something else that I don't have set up correctly (like bad permissions on something)? I've tried chmod'ing everything in birt-viewer to 777 but that didn't help. Also, I don't know anything about TOMCAT5_SECURITY, but the config file says not to disable it unless you know what you're doing, which I don't.
My obvious second question is, why does the Web Application Manager say that birt-viewer is running, but the application page returns a 404? Is it really running and I just can't see the page, or is it not really running?
Once I get this all figured out I'd like to write up a how-to, since this seems like using a TurnKey VM should be a nice quick way to get BIRT up and running. Thanks for any help you can provide in resolving my issues.