| Summary: | ViewServlet gets the wrong fully qualified path on JBoss | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | ThomasS <tos> |
| Component: | BIRT | Assignee: | Birt-ReportViewer <Birt-ReportViewer-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | bluesoldier |
| Version: | unspecified | ||
| Target Milestone: | 3.7.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
ThomasS
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.
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? |