Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Can't get BIRT installed on TurnKey Linux VM(Either can't be started, or results in 404 page)
Can't get BIRT installed on TurnKey Linux VM [message #642057] Mon, 29 November 2010 12:21 Go to next message
BradU Missing name is currently offline BradU Missing name
Messages: 3
Registered: November 2010
Junior Member
I'm having trouble getting BIRT running and I was hoping for some help. 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 trying to install it onto the "Tomcat on Apache" virtual appliance from Turnkey linux:

http://www.turnkeylinux.org/tomcat-apache

According to the documentation, this includes:
tomcat5.5 5.5.25-5ubuntu1.2
JVM Version 1.6.0_22-b04
sun-java6-jdk 6-16-0ubuntu1.8.04
sun-java6-jre 6-16-0ubuntu1.8.04
ant 1.7.0-3
apache2-mpm-worker 2.2.8-1ubuntu0.11
libapache2-mod-jk 1:1.2.25-2
Ubuntu 8.04.3 LTS

I had thought that using a Turnkey virtual machine (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:
https://10.4.20.51/admin/frameset.jsp
https://10.4.20.51/manager/html
https://10.4.20.51/host-manager/html

(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. Once 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[9634]: 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 it should be a nice quick way to get BIRT up and running. Thanks for any help you can provide in resolving my issues.
Re: Can't get BIRT installed on TurnKey Linux VM [message #642254 is a reply to message #642057] Tue, 30 November 2010 10:43 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Brad,

Can you open a bug for this?

Jason

On 11/29/2010 12:21 PM, BradU wrote:
> I'm having trouble getting BIRT running and I was hoping for some help.
> 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 trying to install it onto
> the "Tomcat on Apache" virtual appliance from Turnkey linux:
>
> http://www.turnkeylinux.org/tomcat-apache
>
> According to the documentation, this includes:
> tomcat5.5 5.5.25-5ubuntu1.2
> JVM Version 1.6.0_22-b04
> sun-java6-jdk 6-16-0ubuntu1.8.04
> sun-java6-jre 6-16-0ubuntu1.8.04
> ant 1.7.0-3
> apache2-mpm-worker 2.2.8-1ubuntu0.11
> libapache2-mod-jk 1:1.2.25-2
> Ubuntu 8.04.3 LTS
>
> I had thought that using a Turnkey virtual machine (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:
> https://10.4.20.51/admin/frameset.jsp
> https://10.4.20.51/manager/html
> https://10.4.20.51/host-manager/html
>
> (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. Once 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[9634]: 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.ViewerServletContextListene r
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission birt.designer read) ^Iat
> java.security.AccessControlContext.checkPermission(AccessCon trolContext.java:323)
> ^Iat
> java.security.AccessController.checkPermission(AccessControl ler.java:546) ^Iat
> java.lang.SecurityManager.checkPermission(SecurityManager.ja va:532) ^Iat
> java.lang.SecurityManager.checkPropertyAccess(SecurityManage r.java:1285)
> ^Iat java.lang.System.getProperty(System.java:650) ^Iat
> org.eclipse.birt.report.utility.ParameterAccessor.initParame ters(ParameterAccessor.java:1459)
> ^Iat
> org.eclipse.birt.report.listener.ViewerServletContextListene r.contextInitialized(ViewerServletContextListener.java:56)
> ^Iat org.apache.catalina.core.StandardContext.listenerStart(Stand ardCont
>
>
> 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 it should be a nice quick way to get BIRT up and
> running. Thanks for any help you can provide in resolving my issues.
>
Re: Can't get BIRT installed on TurnKey Linux VM [message #643210 is a reply to message #642057] Sun, 05 December 2010 22:17 Go to previous messageGo to next message
BradU Missing name is currently offline BradU Missing name
Messages: 3
Registered: November 2010
Junior Member
I will file a bug report for this, but I wanted to do some more testing first. I tried starting from scratch using a newer VM from TurnKey (their RC version) that contains the following:
Apache Tomcat/6.0.24
JVM Version 1.6.0_20-b20

and now I can start Tomcat without the errors (without having to disable any security features) and with birt-viewer showing as running in the Application Manager page, so I'm making progress. Here's a screenshot of the page:

http://img.skitch.com/20101206-j5qc8dufbk3c22rcr8s3hirwjc.jp g

However I still can't see the birt-viewer page (I get a 404). One thing I'm thinking it might be is the port that Tomcat is using. On the TurnKey VM, they have it set up to use port 80, not 8080. So the Application Manager page is:

http://10.4.20.72/manager/html

(Note 10.4.20.72 is the IP of the VM on my box) If I try to access it via any other ports (e.g., http://10.4.20.72:8080/manager/html) I can't connect to the server, so I'm guessing that birt-viewer needs to be accessed via 80 as well. But going to this link:
http://10.4.20.72/birt-viewer

gives me the 404. Note I've also installed the commons logging library using:
cd /opt/download
wget http://www.devlib.org/apache//commons/logging/binaries/commons-logging-1.1.1-bin.zip
unzip commons-logging-1.1.1-bin.zip
cp /opt/download/commons-logging-1.1.1/commons-logging-1.1.1.jar /var/lib/tomcat6/webapps/birt-viewer/WEB-INF/lib/
/etc/init.d/tomcat6 restart

Here's what I'm seeing in the log files:

root@tomcat-apache log/apache2# tail -n1 /var/log/apache2/error.log
[Mon Dec 06 02:19:46 2010] [error] [client 192.168.2.100] File does not exist: /var/www/birt-viewer, referer: https://10.4.20.72/manager/html

root@tomcat-apache log/apache2# tail -n1 /var/log/apache2/other_vhosts_access.log
127.0.1.1:80 192.168.2.100 - - [06/Dec/2010:02:32:02 +0000] "GET /birt-viewer HTTP/1.1" 404 503 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"

Could it be that birt-viewer is hard-wired to run at a port other than 80? Are there any other things I could look at to figure out what's going wrong (like other logs)? Thanks for any help.
Re: Can't get BIRT installed on TurnKey Linux VM [message #643415 is a reply to message #643210] Mon, 06 December 2010 14:06 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

This looks like apached ws location:
/var/www/birt-viewer

I assume the viewer does not exist in that location.

What exist in this directory
/var/www

Jason

On 12/5/2010 10:17 PM, BradU wrote:
> I will file a bug report for this, but I wanted to do some more testing
> first. I tried starting from scratch using a newer VM from TurnKey
> (their RC version) that contains the following:
> Apache Tomcat/6.0.24
> JVM Version 1.6.0_20-b20
>
> and now I can start Tomcat without the errors (without having to disable
> any security features) and with birt-viewer showing as running in the
> Application Manager page, so I'm making progress. Here's a screenshot of
> the page:
>
> http://img.skitch.com/20101206-j5qc8dufbk3c22rcr8s3hirwjc.jp g
>
> However I still can't see the birt-viewer page (I get a 404). One thing
> I'm thinking it might be is the port that Tomcat is using. On the
> TurnKey VM, they have it set up to use port 80, not 8080. So the
> Application Manager page is:
>
> http://10.4.20.72/manager/html
>
> (Note 10.4.20.72 is the IP of the VM on my box) If I try to access it
> via any other ports (e.g., http://10.4.20.72:8080/manager/html) I can't
> connect to the server, so I'm guessing that birt-viewer needs to be
> accessed via 80 as well. But going to this link:
> http://10.4.20.72/birt-viewer
>
> gives me the 404. Note I've also installed the commons logging library
> using:
> cd /opt/download
> wget
> http://www.devlib.org/apache//commons/logging/binaries/commo ns-logging-1.1.1-bin.zip
>
> unzip commons-logging-1.1.1-bin.zip
> cp /opt/download/commons-logging-1.1.1/commons-logging-1.1.1.ja r
> /var/lib/tomcat6/webapps/birt-viewer/WEB-INF/lib/
> /etc/init.d/tomcat6 restart
>
> Here's what I'm seeing in the log files:
>
> root@tomcat-apache log/apache2# tail -n1 /var/log/apache2/error.log
> [Mon Dec 06 02:19:46 2010] [error] [client 192.168.2.100] File does not
> exist: /var/www/birt-viewer, referer: https://10.4.20.72/manager/html
>
> root@tomcat-apache log/apache2# tail -n1
> /var/log/apache2/other_vhosts_access.log
> 127.0.1.1:80 192.168.2.100 - - [06/Dec/2010:02:32:02 +0000] "GET
> /birt-viewer HTTP/1.1" 404 503 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac
> OS X 10_6_5; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko)
> Version/5.0.3 Safari/533.19.4"
>
> Could it be that birt-viewer is hard-wired to run at a port other than
> 80? Are there any other things I could look at to figure out what's
> going wrong (like other logs)? Thanks for any help.
>
Re: Can't get BIRT installed on TurnKey Linux VM [message #643426 is a reply to message #642057] Mon, 06 December 2010 14:51 Go to previous messageGo to next message
BradU Missing name is currently offline BradU Missing name
Messages: 3
Registered: November 2010
Junior Member
Correct, there's just an index page there:

root@tomcat-apache ~# ls -l /var/www
total 4
-rw-r--r-- 1 root root 177 Oct 19 02:24 index.html

So why would would Tomcat be looking for things to be in /var/www instead of in /var/lib/tomcat6/webapps/ where I installed it (as per the Eclipse/BIRT instructions)?

root@tomcat-apache ~# ls -l /var/lib/tomcat6/webapps/
total 8
drwxr-xr-x 7 root root 4096 Sep 17 14:46 birt-viewer
drwxr-xr-x 6 root root 4096 Oct 19 02:26 cp

Note that if I I go to this address:
http://10.4.20.72/cp/
it will be successfully accessing the /var/lib/tomcat6/webapps/cp/ directory. But when I go to this address:
http://10.4.20.72/birt-viewer/
it tries to access the /var/www/birt-viewer/ directory (and fails).

I'm sorry I'm asking such simplistic questions- this is my first time using Tomcat and doing anything with Java (I usually just do Apache/PHP development), so I haven't yet figured out the basic mechanisms of how these applications work. If there's any other information I can provide please let me know.
Re: Can't get BIRT installed on TurnKey Linux VM [message #643437 is a reply to message #643426] Mon, 06 December 2010 15:17 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Brad,

Do you have access to the
httpd.conf file on the appache install?

If so can you email it to me?
jasonweathersby at windstream dot net


Jason

On 12/6/2010 2:51 PM, BradU wrote:
> Correct, there's just an index page there:
>
> root@tomcat-apache ~# ls -l /var/www
> total 4
> -rw-r--r-- 1 root root 177 Oct 19 02:24 index.html
>
> So why would would Tomcat be looking for things to be in /var/www
> instead of in /var/lib/tomcat6/webapps/ where I installed it (as per the
> Eclipse/BIRT instructions)?
>
> root@tomcat-apache ~# ls -l /var/lib/tomcat6/webapps/
> total 8
> drwxr-xr-x 7 root root 4096 Sep 17 14:46 birt-viewer
> drwxr-xr-x 6 root root 4096 Oct 19 02:26 cp
>
> Note that if I I go to this address:
> http://10.4.20.72/cp/
> it will be successfully accessing the /var/lib/tomcat6/webapps/cp/
> directory. But when I go to this address:
> http://10.4.20.72/birt-viewer/
> it tries to access the /var/www/birt-viewer/ directory (and fails).
>
> I'm sorry I'm asking such simplistic questions- this is my first time
> using Tomcat and doing anything with Java (I usually just do Apache/PHP
> development), so I haven't yet figured out the basic mechanisms of how
> these applications work. If there's any other information I can provide
> please let me know.
>
Previous Topic:Problems with 2 webapps in one BEA Weblogic
Next Topic:Scripted DataSet problems
Goto Forum:
  


Current Time: Tue Jul 22 05:20:12 EDT 2014

Powered by FUDForum. Page generated in 0.01683 seconds