Herman Jansen wrote:
Check again if you have all the necessary classes from the iReports
lib directory.
Thank for your suggestion. I've actually re-installed everything from
ground zero, because I had tried everything to resolve this issue.
In the process I've upgraded to RoR ver 2.0 (I has been at 1.7). That
involved jumping through a few hoops. I re installed iReports 2.0.4 and
JasperReports 2.0.5(very recent release)
I had double checked the lib replication dimension, and they were
identical, save for a version indicator in one file :- Log4J
files...(two). I've used the latest version 1.2.13.
Just for the record....
Directory of C:\InstantRails\rails_apps.......jasper\lib
13/12/2006 10:20 188,671 commons-beanutils-1.7.jar
08/12/2003 20:50 165,119 commons-collections-2.1.jar
15/01/2008 20:32 26,388 commons-logging-1.0.2.jar
01/07/2005 13:21 1,553,403 itext-1.3.1.jar
15/01/2008 20:32 1,922,698 jasperreports-2.0.4.jar
20/12/2005 17:45 294,514 jcommon-1.0.0.jar
15/01/2008 20:32 1,212,369 jdt-compiler-3.1.1.jar
20/12/2005 17:45 1,072,312 jfreechart-1.0.0.jar
04/12/2005 18:00 358,180 log4j-1.2.13.jar
22/08/2007 15:48 909,270 poi-3.0.1-FINAL-20070705.jar
15/07/2004 22:46 1,781,922 xalan.jar
Directory of C:\jasper\iReport-2.0.4\lib
<snip>
15/01/2008 20:32 188,671 commons-beanutils-1.7.jar
15/01/2008 20:32 165,119 commons-collections-2.1.jar
15/01/2008 20:32 26,388 commons-logging-1.0.2.jar
15/01/2008 20:32 18,404 commons-logging-api-1.0.2.jar
15/01/2008 20:32 1,553,403 itext-1.3.1.jar
15/01/2008 20:32 1,922,698 jasperreports-2.0.4.jar
15/01/2008 20:32 1,212,369 jdt-compiler-3.1.1.jar
15/01/2008 20:32 1,072,312 jfreechart-1.0.0.jar
15/01/2008 20:32 352,668 log4j-1.2.8.jar
15/01/2008 20:32 352,291 log4j-1.2.9.jar
15/01/2008 20:32 909,270 poi-3.0.1-FINAL-20070705.jar
15/01/2008 20:32 1,781,922 xalan.jar
Having re-checked everything and still having an Adobe launch with a
corrupt file error, I tried it on another PC. It also has ROR version
2.0 , did NOT have ireports or Jasper installed, save for the files
copied to the ...app/jasper/lib.
Amazing ! It worked . Let joy be unconfined.
Now to figure out why that has happened ?
My PC is :- IntelDualCore , 4 Gig Ram, Win XP SR2 , Java version SE
1.6.0_05-b13. InternetExplorer ver 7.0.5730.11
(This PC is dual boot with Vista 64).
The other PC is;- IntelDualCore , 2 Gig Ram, Win XP SR1 , Java version
1.5.03. InternetExplorer ver 6.
The value set returned by Request.env are more detailed on the former...
I tested this by pasting some code into a view in mycookbook.com - as
the simplest available environment.
See http://wiki.rubyonrails.org/rails/pages/VariablesInRequestEnv
I'm still puzzled as to why it should work on one PC and not another.
Since the application was simply copied from one PC to the other as a
folder within the rails_apps directory - with additionally copying the
MySQL data folder.
If i do not resolve this, I could not deploy to any particular PC
without the overhead of checking this aspect for all possible reports to
generated... ?
Any thoughts on why the variance ? Seems like an environment issue ?
Sorry for goingon so long .
Thanks for your interests and contributions here
Regards,
Happy St. Patrick's day( tomorrow) from ireland
Denis