PDA

View Full Version : Reports won't show images



dharmapurikar
09-20-2006, 08:45 AM
Hi,

I am getting a strage problem in Pentaho RC3. On Windows its running absolutely fine but failing on Linux. I have attached the stack trace from server log.

Any pointers on solving particular problem?

Please help, this is really urgent. http://forums.pentaho.org/archived_att/files/trace.txt

wseyler
09-20-2006, 11:48 AM
Hello,

We were unable to reproduce this in our current codeline in Suse linux 10.1 using MySQL as the database. However we have made some recent changes to the MDX datasource. Those changes were incoporated last night. If you would like to try that version it might cure your problem.

If it doesn't could you send a trace along with the following information

db or filebased repository
what database your using
and any other configuration changes you've made.

thanks,

Bill

dharmapurikar
09-21-2006, 01:22 AM
Bill,

As you said, I downloaded the latest snapshot from the ftp://community.pentaho.org. Still the problem is same.

Here are the details you requested:

db or filebased repository: File based Repository
what database your using: MySQL 4.x
and any other configuration changes you've made.: I haven't changed anything specific. I use RHEL 4 and JDK 1.4.x

You can watch the error mesage online at:

http://209.34.253.226:8080/pentaho/


The server.log file is attached containing exception and other details.

In case you need anything else, please let me know.

Thanks,
Sachin
http://forums.pentaho.org/archived_att/files/cecb9e2ec6118c8f9b2ae514aaf06ea5.log

dharmapurikar
09-22-2006, 10:17 PM
I think I have found the root cause of the bug.

When I am installing the demo on local machine, it is working absolutely fine, be it Fedora Core 4 or Windows XP. But as soon as I am installing it on my remote server (RHEL 4) it fails.

The reason is, to access from remote machine, I use

run.sh -b MY_IP_ADDRESS &

Now the Jboss binds the HTTP connector to that IP address. But all servlets / pages and urls in the pentaho are having URLs of absolute form:

http://localhost:8080/pentaho/getImage?....

To check this please right click on the image and view properties.

Now since I am accessing it from remote machine, this always fails and no image is displayed on my browsers!

Can you please tell me how I can modify all occurances of localhost to my address or relative path like "/pentaho/getImage?..."?

Any pointers will be appriciated!

Regards,
Sachin

mbatchelor
09-25-2006, 07:11 PM
Have you set the base-url property in the web.xml? Our advanced installation guide covers this I believe.

The base-url property in the web.xml is crucial to deploying in a server (i.e. non-demo) environment.

If you open xxxx/jboss/server/default/deploy/pentaho.war/WEB-INF/web.xml, you'll find the following:



<context-param>
<param-name>base-url</param-name>
<param-value>http://localhost:8080/pentaho/</param-value> </context-param>


Note that after RC2, we've had to modify a couple of samples that had hard-coded localhost references. But by-and-large, the above is the source of your problems.

The reason we need a base-url? Well, we generate content that shows up in e-mail deliveries. We need to know the base URL to use to generate that content.

Take care,

Marc