Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341742 - ViewServlet gets the wrong fully qualified path on JBoss
Summary: ViewServlet gets the wrong fully qualified path on JBoss
Status: RESOLVED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: 3.7.0   Edit
Assignee: Birt-ReportViewer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-04 04:13 EDT by ThomasS CLA
Modified: 2011-05-26 13:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ThomasS CLA 2011-04-04 04:13:09 EDT
Build Identifier: 2.6.2.r262_v20110214

I have upgraded from 2.3.2 to 2.6.2, only changing the Birt files, and now I get an error saying that Birt could not find my report.

The report file : C:\jboss\jboss-4.3.GA_CP07\server\default\.\tmp\deploy\tmp992098034010147889sync.ear-contents\admin-exp.war\filestore\reports/my_report.rptdesign does not exist or contains errors.

The reports are upon deploying copied to:
C:\jboss\jboss-4.3.GA_CP07\server\default\filestore\reports\ but for some reason Birt gets path wrong.

For more on what I have tried to solve this issue please read:
http://www.birt-exchange.org/org/forum/index.php/topic/21956-upgrading-to-latest-results-in-exception/

Reproducible: Always
Comment 1 Xiaoying Gu CLA 2011-04-06 06:19:59 EDT
BIRT_VIEWER_WORKING_FOLDER variable in web.xml needs to be set to the directory where reports locates. And BIRT_VIEWER_WORKING_FOLDER is a relative path to the web application's root.

For Jboss ear deploying, the ear file will be extract to C:\jboss\jboss-4.3.GA_CP07\server\default\.\tmp\deploy\... folder, so if you set BIRT_VIEWER_WORKING_FOLDER = filestore\reports, viewer will searching report designs under C:\jboss\jboss-4.3.GA_CP07\server\default\.\tmp\deploy\tmp992098034010147889sync.ear-contents\admin-exp.war\filestore\reports, which is the expected behavior.

If you copy the birt war folder directly to C:\jboss\jboss-4.3.GA_CP07\server\default\birt.war, the report design is expected to be located under  C:\jboss\jboss-4.3.GA_CP07\server\default\birt.war\${BIRT_VIEWER_WORKING_FOLDER}.

BIRT have no clue to find where the C:\jboss\jboss-4.3.GA_CP07\server\default\filestore\reports\ is, so you will have to add ../../../ before the "filestor\reports" according to your local deployment.
Comment 2 ThomasS CLA 2011-04-07 02:19:13 EDT
Thank you for your answer.
It only leaves me puzzled why we had no problem in version 2.3.2? To me it means that something must have changed. 
Do you think that using ../../../ is the best solution when you have to deploy Birt together with another application?