Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Wierd issue with Birt 3.7.0
Wierd issue with Birt 3.7.0 [message #725058] Tue, 13 September 2011 16:16 Go to next message
jyo  is currently offline jyo
Messages: 34
Registered: June 2011
Member
Hi, my application is J2EE web application based on struts/spring and hibernate. I am using BIRT Report Viewer for the reporting needs as it has very cool features embedded. I am able to successfully integrate the BIRT VIEWER 2.6.2 to my application and the report I created showing up fine and recently migrated to 3.7.0 runtime.

I am facing an environment setup issue (I didn't face this issue with 2.6.2)-
I use tomcat 6.0.20 and I deploy 2 applications (applications have different context root, the source code in both applications same, just some environment settings diffrent like directories of log files creation, etc) on that server. Both applications use Birt Viewer, Birt Viewer working in only from one application but not from other application. When I issue below url -

http://<server>:8080/<Appcontextroot>/frameset?__report=report/userCert.rptdesign&__overwrite=true&runTime=true&__parameterpage=true

the birt viewer is invoking in another winodw, but it is redirecting back to my application login page...

http://<server>:8080/<Appcontextroot>/Login.do

What could be the reason for that? I really appreciate any input on this.

Thank you,
Jyothi

[Updated on: Tue, 13 September 2011 16:23]

Report message to a moderator

Re: Wierd issue with Birt 3.7.0 [message #725068 is a reply to message #725058] Tue, 13 September 2011 16:33 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Are you getting anything in the logs? Set the log level to FINE.

Jason


On 9/13/2011 4:16 PM, jyo wrote:
> Hi, my application is J2EE web application based on struts/spring and
> hibernate. I am using BIRT Report Viewer for the reporting needs as it
> has very cool features embedded. I am able to successfully integrate the
> BIRT VIEWER 2.6.2 to my application and the report I created showing up
> fine and recently migrated to 3.7.0 runtime.
> I am facing an environment setup issue (I didn't face this issue with
> 2.6.2)- I use tomcat 6.0.20 and I deploy 2 applications (applications
> have different context root) on that server. Both applications use Birt
> Viewer, Birt Viewer working in only one application but not from other
> application. When I issue below url -
> http://<server>:8080/<Appcontextroot>/frameset?__report=report/userCert.rptdesign&__overwrite=true&runTime=true&__parameterpage=true
>
>
> the birt viewer is invoking in another winodw, but it is redirecting
> back to my application login page...
>
> http://<server>:8080/<Appcontextroot>/Login.do
>
> What could be the reason for that? I really appreciate any input on this.
> Thank you,
> Jyothi
>
>
Re: Wierd issue with Birt 3.7.0 [message #725081 is a reply to message #725068] Tue, 13 September 2011 17:44 Go to previous messageGo to next message
jyo  is currently offline jyo
Messages: 34
Registered: June 2011
Member
Jason Weathersby wrote on Tue, 13 September 2011 16:33
Are you getting anything in the logs? Set the log level to FINE.

Jason


Jason, Thank you for the reply.
yes, some log messages are writing to ReportEngine.log file when I set the log level to FINE. Here I am attaching the two files for your reference.

ReportEngine_IST_App2.log file is the file of application that is having issues.
ReportEngine_DEV_App1.log is the file of the application that is working.

It appears that initiliazation happening fine, but it is abruptly stopping and redirecting back to login page...Point me to the right direction.

Thanks,
Jyothi
Re: Wierd issue with Birt 3.7.0 [message #725137 is a reply to message #725081] Wed, 14 September 2011 00:44 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Does the process that is running the viewer have write permission to the
documents folder. If you look at your working system you can see the
next thing that happens is a write to:

/apps/tomcat/webapps/etrantest/documents/

Is anything being created in the documents folder on the non working system?

Jason

On 9/13/2011 5:44 PM, jyo wrote:
> Jason Weathersby wrote on Tue, 13 September 2011 16:33
>> Are you getting anything in the logs? Set the log level to FINE.
>>
>> Jason
>
>
> Jason, Thank you for the reply.
> yes, some log messages are writing to ReportEngine.log file when I set the log level to FINE. Here I am attaching the two files for your reference.
>
> ReportEngine_IST_App2.log file is the file of application that is having issues.
> ReportEngine_DEV_App1.log is the file of the application that is working.
>
> It appears that initiliazation happening fine, but it is abruptly stopping and redirecting back to login page...Point me to the right direction.
>
> Thanks,
> Jyothi
Re: Wierd issue with Birt 3.7.0 [message #725318 is a reply to message #725137] Wed, 14 September 2011 10:04 Go to previous messageGo to next message
jyo  is currently offline jyo
Messages: 34
Registered: June 2011
Member
Jason Weathersby wrote on Wed, 14 September 2011 00:44
Does the process that is running the viewer have write permission to the
documents folder. If you look at your working system you can see the
next thing that happens is a write to:

/apps/tomcat/webapps/etrantest/documents/

Is anything being created in the documents folder on the non working system?

Jason



Jason, I checked the permissions on documents folder for both applications, both have same permissions as below (I am running applications in Linux environment)... I even set the 777 on documents folder on non-working appliation, still the same issue. One more wired thing is, it is working randomly sometimes for non-working application as well. So, I am lost here, why sometimes (very randomly)birtviewer coming up fine and why it is redirecting back to loging page mostly??? What settings I have to check??

drwxr-x--x 2 etrnos etrnos 1024 Sep 13 14:54 documents

and also, I am interested to know whether BirtViewer is shared between applications, if they are deployed in same tomcat server??

Thanks again for your help on this...


[Updated on: Wed, 14 September 2011 11:04]

Report message to a moderator

Re: Wierd issue with Birt 3.7.0 [message #725351 is a reply to message #725318] Wed, 14 September 2011 10:58 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Are you using JNDI on these reports? Also set your log level to FINEST
and post the results again.

Jason

On 9/14/2011 10:04 AM, jyo wrote:
> Jason Weathersby wrote on Wed, 14 September 2011 00:44
>> Does the process that is running the viewer have write permission to
>> the documents folder. If you look at your working system you can see
>> the next thing that happens is a write to:
>>
>> /apps/tomcat/webapps/etrantest/documents/
>>
>> Is anything being created in the documents folder on the non working
>> system?
>>
>> Jason
>
>
> Jason, I checked the permissions on documents folder for both
> applications, both have same permissions as below (I am running
> applications in Linux environment)... I even set the 777 on documents
> folder on non-working appliation, still the same issue. One more wired
> thing is, it is working randomly sometimes for non-working application
> as well. So, I am lost here, why sometimes (very randomly)birtviewer
> coming up fine and why it is redirecting back to loging page mostly???
> What settings I have to check??
>
> drwxr-x--x 2 etrnos etrnos 1024 Sep 13 14:54 documents
>
> Thanks again for your help on this...
>
>
>
Re: Wierd issue with Birt 3.7.0 [message #725375 is a reply to message #725351] Wed, 14 September 2011 11:52 Go to previous messageGo to next message
jyo  is currently offline jyo
Messages: 34
Registered: June 2011
Member
Jason Weathersby wrote on Wed, 14 September 2011 10:58
Are you using JNDI on these reports? Also set your log level to FINEST
and post the results again.

Jason



Jason, yes, I am using JNDI on these reports. Here I am attaching the log files from both application after setting the log level to FINEST.

ReportEngine_DEV_App1.log file is for application that has no issues.
ReportEngine_IST_App2.log file is for application that has issues..

Thanks again!
Re: Wierd issue with Birt 3.7.0 [message #725389 is a reply to message #725375] Wed, 14 September 2011 12:12 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

On the ist machine can you try to use /preview instead of /frameset?

Jason

On 9/14/2011 11:52 AM, jyo wrote:
> Jason Weathersby wrote on Wed, 14 September 2011 10:58
>> Are you using JNDI on these reports? Also set your log level to FINEST
>> and post the results again.
>>
>> Jason
>
>
> Jason, yes, I am using JNDI on these reports. Here I am attaching the log files from both application after setting the log level to FINEST.
>
> ReportEngine_DEV_App1.log file is for application that has no issues.
> ReportEngine_IST_App2.log file is for application that has issues..
>
> Thanks again!
>
Re: Wierd issue with Birt 3.7.0 [message #725405 is a reply to message #725389] Wed, 14 September 2011 13:18 Go to previous messageGo to next message
jyo  is currently offline jyo
Messages: 34
Registered: June 2011
Member
Jason Weathersby wrote on Wed, 14 September 2011 12:12
On the ist machine can you try to use /preview instead of /frameset?

Jason




yes, preview is working. but it don't have the toolbar, navigation bar and table of contents and parameter page icon etc...It appears that AJAX is not working properly when I user frameset url pattern???

Re: Wierd issue with Birt 3.7.0 [message #725678 is a reply to message #725405] Thu, 15 September 2011 09:47 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

The AJAX code uses a web service. I wonder if this is causing the
issue. BTW you can also try the /run mapping which I assume will fail
as well because it uses AJAX.

Jason

On 9/14/2011 1:18 PM, jyo wrote:
> Jason Weathersby wrote on Wed, 14 September 2011 12:12
>> On the ist machine can you try to use /preview instead of /frameset?
>>
>> Jason
>
>
>
> yes, preview is working. but it don't have the toolbar, navigation bar
> and table of contents and parameter page icon etc...It appears that AJAX
> is not working properly when I user frameset url pattern???
>
>
Re: Wierd issue with Birt 3.7.0 [message #725773 is a reply to message #725678] Thu, 15 September 2011 14:09 Go to previous messageGo to next message
jyo  is currently offline jyo
Messages: 34
Registered: June 2011
Member
Jason Weathersby wrote on Thu, 15 September 2011 09:47
The AJAX code uses a web service. I wonder if this is causing the
issue. BTW you can also try the /run mapping which I assume will fail
as well because it uses AJAX.

Jason



So, how to resolve AJAx issue then? I am adding below url pattersn in my application security filter:
/frameset
/run
/preview
/download
/parameter
/document
/output
/extract
/webcontent
/birt.tld

Now, the BirtViewer initializinf and coming up fine first time when the user logs in, but when the user tries to open the report second time it is redirecting to my application home page, and from next attempt again it is working fine. only second attempt is failing. Can point me if there any other Birt related url pattern (that Birt runtime uses internally) I should add to ignore list of applciation security filter? Thanks for all the help...
Re: Wierd issue with Birt 3.7.0 [message #726111 is a reply to message #725773] Fri, 16 September 2011 11:36 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

The AJAX code uses those same servlets as well as SOAP request calling
GetUpdatedObjects SOAP Method. I am not exactly sure how you would open
this up. It is on the same port. Any chance you can open a bugzilla
entry for this?

Jason

On 9/15/2011 2:09 PM, jyo wrote:
> Jason Weathersby wrote on Thu, 15 September 2011 09:47
>> The AJAX code uses a web service. I wonder if this is causing the
>> issue. BTW you can also try the /run mapping which I assume will fail
>> as well because it uses AJAX.
>>
>> Jason
>
>
> So, how to resolve AJAx issue then? I am adding below url pattersn in my
> application security filter:
> /frameset
> /run /preview /download
> /parameter
> /document
> /output /extract
> /webcontent
> /birt.tld
>
> Now, the BirtViewer initializinf and coming up fine first time when the
> user logs in, but when the user tries to open the report second time it
> is redirecting to my application home page, and from next attempt again
> it is working fine. only second attempt is failing. Can point me if
> there any other Birt related url pattern (that Birt runtime uses
> internally) I should add to ignore list of applciation security filter?
> Thanks for all the help...
Previous Topic:Sun JVM birt problem
Next Topic:Rendering the rptDocument while its being generated
Goto Forum:
  


Current Time: Thu Aug 21 06:14:03 EDT 2014

Powered by FUDForum. Page generated in 0.01770 seconds