Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » running BIRT viewer within my application(having the BIRT viewer run from within my application)
running BIRT viewer within my application [message #755579] Tue, 08 November 2011 20:44 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 36
Registered: November 2011
Member
hello all,

I have recently started working with BIRT and have created several rptdesigns from within my struts application on a JBOSS server. I have everything installed and have made it so that one of my action classes sends the rptdesign to the birt.war file and it then displays perfectly in my jsp page. up to this point I have not had one bit of trouble, however, I now am faced with the following issue:

the birt.war file is located in my C:\jboss-5.1.0.GA\server\default\deploy folder, while my application is located in C:\Documents and Settings\John\workspace\JohnsApp folder. This is fine and well when testing and running on my own machine because it deploys the viewer through localhost, however, for what I am attempting I need the viewer to be a part of my application. I have searched left, right, up, down and middle on the net and found many situations like this, but unless im misunderstanding some things, I havnt found one that shows where to place what files, or what code to isert into my application to make the viewer a part of my app.

if there is anyone who is familiar with any way to tie the Birt Viewer into a dynamic web application using struts in eclipse I have hit a wall and I am open to any helpful suggestions.


thanks a lot!

-John
Re: running BIRT viewer within my application [message #755594 is a reply to message #755579] Tue, 08 November 2011 21:39 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

John,

I may be misunderstanding what you need, but BIRT does have a download
for WTP integration to deploy the viewer in a dynamic web app. Look at
the full build for the release. For example on 3.7.1
http://download.eclipse.org/birt/downloads/build.php?build=R-R1-3_7_1-201109131734

Jason


On 11/8/2011 3:44 PM, jahits88 wrote:
> hello all,
>
> I have recently started working with BIRT and have created several
> rptdesigns from within my struts application on a JBOSS server. I have
> everything installed and have made it so that one of my action classes
> sends the rptdesign to the birt.war file and it then displays perfectly
> in my jsp page. up to this point I have not had one bit of trouble,
> however, I now am faced with the following issue:
>
> the birt.war file is located in my
> C:\jboss-5.1.0.GA\server\default\deploy folder, while my application is
> located in C:\Documents and Settings\John\workspace\JohnsApp folder.
> This is fine and well when testing and running on my own machine because
> it deploys the viewer through localhost, however, for what I am
> attempting I need the viewer to be a part of my application. I have
> searched left, right, up, down and middle on the net and found many
> situations like this, but unless im misunderstanding some things, I
> havnt found one that shows where to place what files, or what code to
> isert into my application to make the viewer a part of my app.
>
> if there is anyone who is familiar with any way to tie the Birt Viewer
> into a dynamic web application using struts in eclipse I have hit a wall
> and I am open to any helpful suggestions.
>
>
> thanks a lot!
>
> -John
Re: running BIRT viewer within my application [message #755792 is a reply to message #755594] Wed, 09 November 2011 15:36 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 36
Registered: November 2011
Member
Jason,

first off thanks for your help, however, I did download the updated version and I am still having the same issue. Ill try to explain it better as I can see that my question from before might not make sense.

my issue is that I have my application in a workspace folder. I create the rptdesign files from the application, and store the files within my application. from one of my jsp pages I call the viewer and it is supposed to display the charts. It does, however, it only displays the charts if I copy thier .rptdesign file and paste it in the Birt.war folder( which is located in the JBOSS folder on my C drive ). My problem is that I am trying to have everything work from within my application, so that it will be accesible to anyone using my application, not just the localhost/my computer.

So in essence, i simply need to have the BirtViewer run from within my application, instead of running from out of the Birt.war folder. Is there anyway that I am able to accomplish this so that the files within my application can run from within my application without having to be copied over to a different folder?
Re: running BIRT viewer within my application [message #755866 is a reply to message #755792] Wed, 09 November 2011 21:45 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Is your application a web app or an rcp based application? You can have
the birt.war reference design files outside of the war, but you will
need to set the url report path policy in the web.xml:

<!--
Settings for how to deal with the url report path. e.g.
"http://host/repo/test.rptdesign".

Following values are supported:

<all> - All paths.
<domain> - Only the paths with host matches current domain. Note the
comparison is literal, "127.0.0.1" and "localhost" are considered as
different hosts.
<none> - URL paths are not supported.

Defaults to "domain".
-->
<context-param>
<param-name>URL_REPORT_PATH_POLICY</param-name>
<param-value>domain</param-value>
</context-param>

Jason

On 11/9/2011 10:36 AM, jahits88 wrote:
> Jason,
>
> first off thanks for your help, however, I did download the updated
> version and I am still having the same issue. Ill try to explain it
> better as I can see that my question from before might not make sense.
>
> my issue is that I have my application in a workspace folder. I create
> the rptdesign files from the application, and store the files within my
> application. from one of my jsp pages I call the viewer and it is
> supposed to display the charts. It does, however, it only displays the
> charts if I copy thier .rptdesign file and paste it in the Birt.war
> folder( which is located in the JBOSS folder on my C drive ). My problem
> is that I am trying to have everything work from within my application,
> so that it will be accesible to anyone using my application, not just
> the localhost/my computer.
> So in essence, i simply need to have the BirtViewer run from within my
> application, instead of running from out of the Birt.war folder. Is
> there anyway that I am able to accomplish this so that the files within
> my application can run from within my application without having to be
> copied over to a different folder?
Re: running BIRT viewer within my application [message #756083 is a reply to message #755866] Thu, 10 November 2011 19:42 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 36
Registered: November 2011
Member
jason,

it is a regular web app. I will try to alter my web XML accordingly.

thanks,

john
Re: running BIRT viewer within my application [message #760253 is a reply to message #755866] Thu, 01 December 2011 17:05 Go to previous messageGo to next message
Eclipse UserFriend
I have a similar requirement as John (aka jahits88) does.

My app is an RCP, and would like to add to the RCP the Report Viewer
Servlet http service, but one that I can modify it's configurations like
BIRT_VIEWER_WORKING_FOLDER and BIRT_RESOURCE_PATH so that they are
customized for the localhost environment that my RCP app is installed
on. (To standardize locations and eliminate the need to use absolute
paths within URL parameters when calling the servlet.)

When I install BIRT in my RCP app, I see that I do have a generic
Report Viewer Servlet available as a http service. Is there anyway to
modify it's configuration (via extension points?) and reuse it for my
above requirements?

thanks for any help,
John

On 11/09/2011 03:45 PM, Jason Weathersby wrote:
> Is your application a web app or an rcp based application? You can have
> the birt.war reference design files outside of the war, but you will
> need to set the url report path policy in the web.xml:
>
> <!--
> Settings for how to deal with the url report path. e.g.
> "http://host/repo/test.rptdesign".
>
> Following values are supported:
>
> <all> - All paths.
> <domain> - Only the paths with host matches current domain. Note the
> comparison is literal, "127.0.0.1" and "localhost" are considered as
> different hosts.
> <none> - URL paths are not supported.
>
> Defaults to "domain".
> -->
> <context-param>
> <param-name>URL_REPORT_PATH_POLICY</param-name>
> <param-value>domain</param-value>
> </context-param>
>
> Jason
>
> On 11/9/2011 10:36 AM, jahits88 wrote:
>> Jason,
>>
>> first off thanks for your help, however, I did download the updated
>> version and I am still having the same issue. Ill try to explain it
>> better as I can see that my question from before might not make sense.
>>
>> my issue is that I have my application in a workspace folder. I create
>> the rptdesign files from the application, and store the files within my
>> application. from one of my jsp pages I call the viewer and it is
>> supposed to display the charts. It does, however, it only displays the
>> charts if I copy thier .rptdesign file and paste it in the Birt.war
>> folder( which is located in the JBOSS folder on my C drive ). My problem
>> is that I am trying to have everything work from within my application,
>> so that it will be accesible to anyone using my application, not just
>> the localhost/my computer.
>> So in essence, i simply need to have the BirtViewer run from within my
>> application, instead of running from out of the Birt.war folder. Is
>> there anyway that I am able to accomplish this so that the files within
>> my application can run from within my application without having to be
>> copied over to a different folder?
>
Re: running BIRT viewer within my application [message #760263 is a reply to message #760253] Thu, 01 December 2011 17:30 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

The BIRT designer uses the Jetty app server installed in Eclipse to
launch the viewer for previewing reports. Is this what you want your
app to do?

Jason

On 12/1/2011 12:05 PM, John E. Conlon wrote:
> I have a similar requirement as John (aka jahits88) does.
>
> My app is an RCP, and would like to add to the RCP the Report Viewer
> Servlet http service, but one that I can modify it's configurations like
> BIRT_VIEWER_WORKING_FOLDER and BIRT_RESOURCE_PATH so that they are
> customized for the localhost environment that my RCP app is installed
> on. (To standardize locations and eliminate the need to use absolute
> paths within URL parameters when calling the servlet.)
>
> When I install BIRT in my RCP app, I see that I do have a generic Report
> Viewer Servlet available as a http service. Is there anyway to modify
> it's configuration (via extension points?) and reuse it for my above
> requirements?
>
> thanks for any help,
> John
>
> On 11/09/2011 03:45 PM, Jason Weathersby wrote:
>> Is your application a web app or an rcp based application? You can have
>> the birt.war reference design files outside of the war, but you will
>> need to set the url report path policy in the web.xml:
>>
>> <!--
>> Settings for how to deal with the url report path. e.g.
>> "http://host/repo/test.rptdesign".
>>
>> Following values are supported:
>>
>> <all> - All paths.
>> <domain> - Only the paths with host matches current domain. Note the
>> comparison is literal, "127.0.0.1" and "localhost" are considered as
>> different hosts.
>> <none> - URL paths are not supported.
>>
>> Defaults to "domain".
>> -->
>> <context-param>
>> <param-name>URL_REPORT_PATH_POLICY</param-name>
>> <param-value>domain</param-value>
>> </context-param>
>>
>> Jason
>>
>> On 11/9/2011 10:36 AM, jahits88 wrote:
>>> Jason,
>>>
>>> first off thanks for your help, however, I did download the updated
>>> version and I am still having the same issue. Ill try to explain it
>>> better as I can see that my question from before might not make sense.
>>>
>>> my issue is that I have my application in a workspace folder. I create
>>> the rptdesign files from the application, and store the files within my
>>> application. from one of my jsp pages I call the viewer and it is
>>> supposed to display the charts. It does, however, it only displays the
>>> charts if I copy thier .rptdesign file and paste it in the Birt.war
>>> folder( which is located in the JBOSS folder on my C drive ). My problem
>>> is that I am trying to have everything work from within my application,
>>> so that it will be accesible to anyone using my application, not just
>>> the localhost/my computer.
>>> So in essence, i simply need to have the BirtViewer run from within my
>>> application, instead of running from out of the Birt.war folder. Is
>>> there anyway that I am able to accomplish this so that the files within
>>> my application can run from within my application without having to be
>>> copied over to a different folder?
>>
>
Re: running BIRT viewer within my application [message #760266 is a reply to message #760263] Thu, 01 December 2011 17:35 Go to previous messageGo to next message
Eclipse UserFriend
Yes, to access the Report Viewer running in Jetty.

John


On 12/01/2011 11:30 AM, Jason Weathersby wrote:
> The BIRT designer uses the Jetty app server installed in Eclipse to
> launch the viewer for previewing reports. Is this what you want your app
> to do?
>
> Jason
>
> On 12/1/2011 12:05 PM, John E. Conlon wrote:
>> I have a similar requirement as John (aka jahits88) does.
>>
>> My app is an RCP, and would like to add to the RCP the Report Viewer
>> Servlet http service, but one that I can modify it's configurations like
>> BIRT_VIEWER_WORKING_FOLDER and BIRT_RESOURCE_PATH so that they are
>> customized for the localhost environment that my RCP app is installed
>> on. (To standardize locations and eliminate the need to use absolute
>> paths within URL parameters when calling the servlet.)
>>
>> When I install BIRT in my RCP app, I see that I do have a generic Report
>> Viewer Servlet available as a http service. Is there anyway to modify
>> it's configuration (via extension points?) and reuse it for my above
>> requirements?
>>
>> thanks for any help,
>> John
>>
>> On 11/09/2011 03:45 PM, Jason Weathersby wrote:
>>> Is your application a web app or an rcp based application? You can have
>>> the birt.war reference design files outside of the war, but you will
>>> need to set the url report path policy in the web.xml:
>>>
>>> <!--
>>> Settings for how to deal with the url report path. e.g.
>>> "http://host/repo/test.rptdesign".
>>>
>>> Following values are supported:
>>>
>>> <all> - All paths.
>>> <domain> - Only the paths with host matches current domain. Note the
>>> comparison is literal, "127.0.0.1" and "localhost" are considered as
>>> different hosts.
>>> <none> - URL paths are not supported.
>>>
>>> Defaults to "domain".
>>> -->
>>> <context-param>
>>> <param-name>URL_REPORT_PATH_POLICY</param-name>
>>> <param-value>domain</param-value>
>>> </context-param>
>>>
>>> Jason
>>>
>>> On 11/9/2011 10:36 AM, jahits88 wrote:
>>>> Jason,
>>>>
>>>> first off thanks for your help, however, I did download the updated
>>>> version and I am still having the same issue. Ill try to explain it
>>>> better as I can see that my question from before might not make sense.
>>>>
>>>> my issue is that I have my application in a workspace folder. I create
>>>> the rptdesign files from the application, and store the files within my
>>>> application. from one of my jsp pages I call the viewer and it is
>>>> supposed to display the charts. It does, however, it only displays the
>>>> charts if I copy thier .rptdesign file and paste it in the Birt.war
>>>> folder( which is located in the JBOSS folder on my C drive ). My
>>>> problem
>>>> is that I am trying to have everything work from within my application,
>>>> so that it will be accesible to anyone using my application, not just
>>>> the localhost/my computer.
>>>> So in essence, i simply need to have the BirtViewer run from within my
>>>> application, instead of running from out of the Birt.war folder. Is
>>>> there anyway that I am able to accomplish this so that the files within
>>>> my application can run from within my application without having to be
>>>> copied over to a different folder?
>>>
>>
>
Re: running BIRT viewer within my application [message #760308 is a reply to message #760266] Thu, 01 December 2011 20:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jason,

So is it possible to change the BIRT_VIEWER_WORKING_FOLDER and
BIRT_RESOURCE_PATH on the Report Viewer Servlet running in the BIRT
designer's Jetty app server?

If not could I just create a second http Report Viewer Service, one that
I could change these configuration vars?

thanks,
John


On 12/01/2011 11:35 AM, John E. Conlon wrote:
> Yes, to access the Report Viewer running in Jetty.
>
> John
>
>
> On 12/01/2011 11:30 AM, Jason Weathersby wrote:
>> The BIRT designer uses the Jetty app server installed in Eclipse to
>> launch the viewer for previewing reports. Is this what you want your app
>> to do?
>>
>> Jason
>>
>> On 12/1/2011 12:05 PM, John E. Conlon wrote:
>>> I have a similar requirement as John (aka jahits88) does.
>>>
>>> My app is an RCP, and would like to add to the RCP the Report Viewer
>>> Servlet http service, but one that I can modify it's configurations like
>>> BIRT_VIEWER_WORKING_FOLDER and BIRT_RESOURCE_PATH so that they are
>>> customized for the localhost environment that my RCP app is installed
>>> on. (To standardize locations and eliminate the need to use absolute
>>> paths within URL parameters when calling the servlet.)
>>>
>>> When I install BIRT in my RCP app, I see that I do have a generic Report
>>> Viewer Servlet available as a http service. Is there anyway to modify
>>> it's configuration (via extension points?) and reuse it for my above
>>> requirements?
>>>
>>> thanks for any help,
>>> John
>>>
>>> On 11/09/2011 03:45 PM, Jason Weathersby wrote:
>>>> Is your application a web app or an rcp based application? You can have
>>>> the birt.war reference design files outside of the war, but you will
>>>> need to set the url report path policy in the web.xml:
>>>>
>>>> <!--
>>>> Settings for how to deal with the url report path. e.g.
>>>> "http://host/repo/test.rptdesign".
>>>>
>>>> Following values are supported:
>>>>
>>>> <all> - All paths.
>>>> <domain> - Only the paths with host matches current domain. Note the
>>>> comparison is literal, "127.0.0.1" and "localhost" are considered as
>>>> different hosts.
>>>> <none> - URL paths are not supported.
>>>>
>>>> Defaults to "domain".
>>>> -->
>>>> <context-param>
>>>> <param-name>URL_REPORT_PATH_POLICY</param-name>
>>>> <param-value>domain</param-value>
>>>> </context-param>
>>>>
>>>> Jason
>>>>
>>>> On 11/9/2011 10:36 AM, jahits88 wrote:
>>>>> Jason,
>>>>>
>>>>> first off thanks for your help, however, I did download the updated
>>>>> version and I am still having the same issue. Ill try to explain it
>>>>> better as I can see that my question from before might not make sense.
>>>>>
>>>>> my issue is that I have my application in a workspace folder. I create
>>>>> the rptdesign files from the application, and store the files
>>>>> within my
>>>>> application. from one of my jsp pages I call the viewer and it is
>>>>> supposed to display the charts. It does, however, it only displays the
>>>>> charts if I copy thier .rptdesign file and paste it in the Birt.war
>>>>> folder( which is located in the JBOSS folder on my C drive ). My
>>>>> problem
>>>>> is that I am trying to have everything work from within my
>>>>> application,
>>>>> so that it will be accesible to anyone using my application, not just
>>>>> the localhost/my computer.
>>>>> So in essence, i simply need to have the BirtViewer run from within my
>>>>> application, instead of running from out of the Birt.war folder. Is
>>>>> there anyway that I am able to accomplish this so that the files
>>>>> within
>>>>> my application can run from within my application without having to be
>>>>> copied over to a different folder?
>>>>
>>>
>>
>
Re: running BIRT viewer within my application [message #760521 is a reply to message #760308] Fri, 02 December 2011 16:49 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

John,

Are you including the Report Designer in your project? Or do you just
want the viewer? If you have the designer installed you can set the
resource folder as a preference (Window->preferences->Report
Design->Resource) If you deploy the viewer as part of your app you can
set the resource folder with code. The working folder is a bit more
complicated.

Jason

On 12/1/2011 3:09 PM, John E. Conlon wrote:
> Hi Jason,
>
> So is it possible to change the BIRT_VIEWER_WORKING_FOLDER and
> BIRT_RESOURCE_PATH on the Report Viewer Servlet running in the BIRT
> designer's Jetty app server?
>
> If not could I just create a second http Report Viewer Service, one that
> I could change these configuration vars?
>
> thanks,
> John
>
>
> On 12/01/2011 11:35 AM, John E. Conlon wrote:
>> Yes, to access the Report Viewer running in Jetty.
>>
>> John
>>
>>
>> On 12/01/2011 11:30 AM, Jason Weathersby wrote:
>>> The BIRT designer uses the Jetty app server installed in Eclipse to
>>> launch the viewer for previewing reports. Is this what you want your app
>>> to do?
>>>
>>> Jason
>>>
>>> On 12/1/2011 12:05 PM, John E. Conlon wrote:
>>>> I have a similar requirement as John (aka jahits88) does.
>>>>
>>>> My app is an RCP, and would like to add to the RCP the Report Viewer
>>>> Servlet http service, but one that I can modify it's configurations
>>>> like
>>>> BIRT_VIEWER_WORKING_FOLDER and BIRT_RESOURCE_PATH so that they are
>>>> customized for the localhost environment that my RCP app is installed
>>>> on. (To standardize locations and eliminate the need to use absolute
>>>> paths within URL parameters when calling the servlet.)
>>>>
>>>> When I install BIRT in my RCP app, I see that I do have a generic
>>>> Report
>>>> Viewer Servlet available as a http service. Is there anyway to modify
>>>> it's configuration (via extension points?) and reuse it for my above
>>>> requirements?
>>>>
>>>> thanks for any help,
>>>> John
>>>>
>>>> On 11/09/2011 03:45 PM, Jason Weathersby wrote:
>>>>> Is your application a web app or an rcp based application? You can
>>>>> have
>>>>> the birt.war reference design files outside of the war, but you will
>>>>> need to set the url report path policy in the web.xml:
>>>>>
>>>>> <!--
>>>>> Settings for how to deal with the url report path. e.g.
>>>>> "http://host/repo/test.rptdesign".
>>>>>
>>>>> Following values are supported:
>>>>>
>>>>> <all> - All paths.
>>>>> <domain> - Only the paths with host matches current domain. Note the
>>>>> comparison is literal, "127.0.0.1" and "localhost" are considered as
>>>>> different hosts.
>>>>> <none> - URL paths are not supported.
>>>>>
>>>>> Defaults to "domain".
>>>>> -->
>>>>> <context-param>
>>>>> <param-name>URL_REPORT_PATH_POLICY</param-name>
>>>>> <param-value>domain</param-value>
>>>>> </context-param>
>>>>>
>>>>> Jason
>>>>>
>>>>> On 11/9/2011 10:36 AM, jahits88 wrote:
>>>>>> Jason,
>>>>>>
>>>>>> first off thanks for your help, however, I did download the updated
>>>>>> version and I am still having the same issue. Ill try to explain it
>>>>>> better as I can see that my question from before might not make
>>>>>> sense.
>>>>>>
>>>>>> my issue is that I have my application in a workspace folder. I
>>>>>> create
>>>>>> the rptdesign files from the application, and store the files
>>>>>> within my
>>>>>> application. from one of my jsp pages I call the viewer and it is
>>>>>> supposed to display the charts. It does, however, it only displays
>>>>>> the
>>>>>> charts if I copy thier .rptdesign file and paste it in the Birt.war
>>>>>> folder( which is located in the JBOSS folder on my C drive ). My
>>>>>> problem
>>>>>> is that I am trying to have everything work from within my
>>>>>> application,
>>>>>> so that it will be accesible to anyone using my application, not just
>>>>>> the localhost/my computer.
>>>>>> So in essence, i simply need to have the BirtViewer run from
>>>>>> within my
>>>>>> application, instead of running from out of the Birt.war folder. Is
>>>>>> there anyway that I am able to accomplish this so that the files
>>>>>> within
>>>>>> my application can run from within my application without having
>>>>>> to be
>>>>>> copied over to a different folder?
>>>>>
>>>>
>>>
>>
>
Re: running BIRT viewer within my application [message #760549 is a reply to message #760521] Fri, 02 December 2011 19:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jason,

Yes, I am including the Report Designer and yes and I have been using
> resource folder as a preference (Window->preferences->Report
> Design->Resource)

Sorry, guess I have not explained my use case very well - What I am
attempting to do is provide my users with Geo-spacial front ends (using
Google Earth or ...) that will allow them to choose a geo placemark
element and from the description balloon, launch element specific BIRT
reports via report parameters and the Report Viewer Servlet. This will
be no problem when our public servers are in place and we have BIRT and
all reports and libraries deployed to the server.

(FWI - To do these things I have already created a BIRT KML Emitter for
generating KML archive documents that build all the links to the Report
Servlet with standard and report specific parameters.)

But we do have scientists that wish to work offline from there own
workbench, since they will be doing the report design work and analysis
with BIRT on their desktop. In this mode from the BIRT Designer there is
absolutely no problem setting up a resource with libraries (using
preference) and launching reports from the Navigator Report popup
menus. Issue is when they wish to generate a KML file with links with
__report parameters that will work in a second localhost environment -
ie __report parms that are NOT absolute.

So we will need to create two different kinds of KML documents with two
different kind of link __report params:
1. Production KML reports with links to BIRT and the Report Viewer with
well known reports and library locations. (Solved)
2. Development KML reports with links to BIRT and the Report Viewer
running on the localhost Jetty. In this scenario, I would like to have
the designers saving dev reports to the BIRT_VIEWER_WORKING_FOLDER and
libraries to 2.1.8 BIRT_RESOURCE_PATH of their specific desktop. Then
the URL __report paramters can be created within the KML documents that
are relative and the __resourceFolder parameter can be omitted.

So I am trying to find out what configures the ReportViewer on the
localhost running under Jetty when the ReportDesigner is installed.
From what I have determined from looking at the configuration of my
Eclipse RCP after it boots:

birt.viewer.root.path=/opt/Verticon/tracker_0.8.0/tracker/plugins/org.eclipse.birt.report.viewer_3.7.1.v20110905/birt/


birt.viewer.working.path=/home/jconlon/workspace/.metadata/.plugins/org.eclipse.birt.report.viewer

Although the birt.viewer.working.path seems to be set, it also appears
to be ignored by the report viewer. Testing the localhost based Report
Viewer (there is a test.rptdesign file in it) shows that the
birt.viewer.root.path is the one that the Report Viewer uses for both
the BIRT_VIEWER_WORKING_FOLDER and BIRT_RESOURCE_PATH.

I tried changing the web.xml configuration in the root.path but that
also does not seem to change the real working path. Any ideas if this
default can be reconfigured from the default?

thanks for all the help,
John



On 12/02/2011 10:49 AM, Jason Weathersby wrote:
> John,
>
> Are you including the Report Designer in your project? Or do you just
> want the viewer? If you have the designer installed you can set the
> resource folder as a preference (Window->preferences->Report
> Design->Resource) If you deploy the viewer as part of your app you can
> set the resource folder with code. The working folder is a bit more
> complicated.
>
> Jason
>
> On 12/1/2011 3:09 PM, John E. Conlon wrote:
>> Hi Jason,
>>
>> So is it possible to change the BIRT_VIEWER_WORKING_FOLDER and
>> BIRT_RESOURCE_PATH on the Report Viewer Servlet running in the BIRT
>> designer's Jetty app server?
>>
>> If not could I just create a second http Report Viewer Service, one that
>> I could change these configuration vars?
>>
>> thanks,
>> John
>>
>>
>> On 12/01/2011 11:35 AM, John E. Conlon wrote:
>>> Yes, to access the Report Viewer running in Jetty.
>>>
>>> John
>>>
>>>
>>> On 12/01/2011 11:30 AM, Jason Weathersby wrote:
>>>> The BIRT designer uses the Jetty app server installed in Eclipse to
>>>> launch the viewer for previewing reports. Is this what you want your
>>>> app
>>>> to do?
>>>>
>>>> Jason
>>>>
>>>> On 12/1/2011 12:05 PM, John E. Conlon wrote:
>>>>> I have a similar requirement as John (aka jahits88) does.
>>>>>
>>>>> My app is an RCP, and would like to add to the RCP the Report Viewer
>>>>> Servlet http service, but one that I can modify it's configurations
>>>>> like
>>>>> BIRT_VIEWER_WORKING_FOLDER and BIRT_RESOURCE_PATH so that they are
>>>>> customized for the localhost environment that my RCP app is installed
>>>>> on. (To standardize locations and eliminate the need to use absolute
>>>>> paths within URL parameters when calling the servlet.)
>>>>>
>>>>> When I install BIRT in my RCP app, I see that I do have a generic
>>>>> Report
>>>>> Viewer Servlet available as a http service. Is there anyway to modify
>>>>> it's configuration (via extension points?) and reuse it for my above
>>>>> requirements?
>>>>>
>>>>> thanks for any help,
>>>>> John
>>>>>
>>>>> On 11/09/2011 03:45 PM, Jason Weathersby wrote:
>>>>>> Is your application a web app or an rcp based application? You can
>>>>>> have
>>>>>> the birt.war reference design files outside of the war, but you will
>>>>>> need to set the url report path policy in the web.xml:
>>>>>>
>>>>>> <!--
>>>>>> Settings for how to deal with the url report path. e.g.
>>>>>> "http://host/repo/test.rptdesign".
>>>>>>
>>>>>> Following values are supported:
>>>>>>
>>>>>> <all> - All paths.
>>>>>> <domain> - Only the paths with host matches current domain. Note the
>>>>>> comparison is literal, "127.0.0.1" and "localhost" are considered as
>>>>>> different hosts.
>>>>>> <none> - URL paths are not supported.
>>>>>>
>>>>>> Defaults to "domain".
>>>>>> -->
>>>>>> <context-param>
>>>>>> <param-name>URL_REPORT_PATH_POLICY</param-name>
>>>>>> <param-value>domain</param-value>
>>>>>> </context-param>
>>>>>>
>>>>>> Jason
>>>>>>
>>>>>> On 11/9/2011 10:36 AM, jahits88 wrote:
>>>>>>> Jason,
>>>>>>>
>>>>>>> first off thanks for your help, however, I did download the updated
>>>>>>> version and I am still having the same issue. Ill try to explain it
>>>>>>> better as I can see that my question from before might not make
>>>>>>> sense.
>>>>>>>
>>>>>>> my issue is that I have my application in a workspace folder. I
>>>>>>> create
>>>>>>> the rptdesign files from the application, and store the files
>>>>>>> within my
>>>>>>> application. from one of my jsp pages I call the viewer and it is
>>>>>>> supposed to display the charts. It does, however, it only displays
>>>>>>> the
>>>>>>> charts if I copy thier .rptdesign file and paste it in the Birt.war
>>>>>>> folder( which is located in the JBOSS folder on my C drive ). My
>>>>>>> problem
>>>>>>> is that I am trying to have everything work from within my
>>>>>>> application,
>>>>>>> so that it will be accesible to anyone using my application, not
>>>>>>> just
>>>>>>> the localhost/my computer.
>>>>>>> So in essence, i simply need to have the BirtViewer run from
>>>>>>> within my
>>>>>>> application, instead of running from out of the Birt.war folder. Is
>>>>>>> there anyway that I am able to accomplish this so that the files
>>>>>>> within
>>>>>>> my application can run from within my application without having
>>>>>>> to be
>>>>>>> copied over to a different folder?
>>>>>>
>>>>>
>>>>
>>>
>>
>
Re: running BIRT viewer within my application [message #760573 is a reply to message #760549] Sat, 03 December 2011 05:05 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

The issue is the jetty plugin does not use any of the init parameters.
If you set birt.viewer.root.path or
birt.viewer.working.path they will get seen by the system and set
initially. The issue is the resource folder gets overwritten with the
__resourceFolder url parameter which is appended automatically when you
preview the report. If you preview with an external browser(setting in
preferences) you will see it in the url and the location of the report
is self is retrieve from the filepath of the currently opened report.

Jason

On 12/2/2011 2:31 PM, John E. Conlon wrote:
> Hi Jason,
>
> Yes, I am including the Report Designer and yes and I have been using
>> resource folder as a preference (Window->preferences->Report
>> Design->Resource)
>
> Sorry, guess I have not explained my use case very well - What I am
> attempting to do is provide my users with Geo-spacial front ends (using
> Google Earth or ...) that will allow them to choose a geo placemark
> element and from the description balloon, launch element specific BIRT
> reports via report parameters and the Report Viewer Servlet. This will
> be no problem when our public servers are in place and we have BIRT and
> all reports and libraries deployed to the server.
>
> (FWI - To do these things I have already created a BIRT KML Emitter for
> generating KML archive documents that build all the links to the Report
> Servlet with standard and report specific parameters.)
>
> But we do have scientists that wish to work offline from there own
> workbench, since they will be doing the report design work and analysis
> with BIRT on their desktop. In this mode from the BIRT Designer there is
> absolutely no problem setting up a resource with libraries (using
> preference) and launching reports from the Navigator Report popup menus.
> Issue is when they wish to generate a KML file with links with __report
> parameters that will work in a second localhost environment - ie
> __report parms that are NOT absolute.
>
> So we will need to create two different kinds of KML documents with two
> different kind of link __report params:
> 1. Production KML reports with links to BIRT and the Report Viewer with
> well known reports and library locations. (Solved)
> 2. Development KML reports with links to BIRT and the Report Viewer
> running on the localhost Jetty. In this scenario, I would like to have
> the designers saving dev reports to the BIRT_VIEWER_WORKING_FOLDER and
> libraries to 2.1.8 BIRT_RESOURCE_PATH of their specific desktop. Then
> the URL __report paramters can be created within the KML documents that
> are relative and the __resourceFolder parameter can be omitted.
>
> So I am trying to find out what configures the ReportViewer on the
> localhost running under Jetty when the ReportDesigner is installed. From
> what I have determined from looking at the configuration of my Eclipse
> RCP after it boots:
>
> birt.viewer.root.path=/opt/Verticon/tracker_0.8.0/tracker/plugins/org.eclipse.birt.report.viewer_3.7.1.v20110905/birt/
>
>
>
> birt.viewer.working.path=/home/jconlon/workspace/.metadata/.plugins/org.eclipse.birt.report.viewer
>
>
> Although the birt.viewer.working.path seems to be set, it also appears
> to be ignored by the report viewer. Testing the localhost based Report
> Viewer (there is a test.rptdesign file in it) shows that the
> birt.viewer.root.path is the one that the Report Viewer uses for both
> the BIRT_VIEWER_WORKING_FOLDER and BIRT_RESOURCE_PATH.
>
> I tried changing the web.xml configuration in the root.path but that
> also does not seem to change the real working path. Any ideas if this
> default can be reconfigured from the default?
>
> thanks for all the help,
> John
>
>
>
> On 12/02/2011 10:49 AM, Jason Weathersby wrote:
>> John,
>>
>> Are you including the Report Designer in your project? Or do you just
>> want the viewer? If you have the designer installed you can set the
>> resource folder as a preference (Window->preferences->Report
>> Design->Resource) If you deploy the viewer as part of your app you can
>> set the resource folder with code. The working folder is a bit more
>> complicated.
>>
>> Jason
>>
>> On 12/1/2011 3:09 PM, John E. Conlon wrote:
>>> Hi Jason,
>>>
>>> So is it possible to change the BIRT_VIEWER_WORKING_FOLDER and
>>> BIRT_RESOURCE_PATH on the Report Viewer Servlet running in the BIRT
>>> designer's Jetty app server?
>>>
>>> If not could I just create a second http Report Viewer Service, one that
>>> I could change these configuration vars?
>>>
>>> thanks,
>>> John
>>>
>>>
>>> On 12/01/2011 11:35 AM, John E. Conlon wrote:
>>>> Yes, to access the Report Viewer running in Jetty.
>>>>
>>>> John
>>>>
>>>>
>>>> On 12/01/2011 11:30 AM, Jason Weathersby wrote:
>>>>> The BIRT designer uses the Jetty app server installed in Eclipse to
>>>>> launch the viewer for previewing reports. Is this what you want your
>>>>> app
>>>>> to do?
>>>>>
>>>>> Jason
>>>>>
>>>>> On 12/1/2011 12:05 PM, John E. Conlon wrote:
>>>>>> I have a similar requirement as John (aka jahits88) does.
>>>>>>
>>>>>> My app is an RCP, and would like to add to the RCP the Report Viewer
>>>>>> Servlet http service, but one that I can modify it's configurations
>>>>>> like
>>>>>> BIRT_VIEWER_WORKING_FOLDER and BIRT_RESOURCE_PATH so that they are
>>>>>> customized for the localhost environment that my RCP app is installed
>>>>>> on. (To standardize locations and eliminate the need to use absolute
>>>>>> paths within URL parameters when calling the servlet.)
>>>>>>
>>>>>> When I install BIRT in my RCP app, I see that I do have a generic
>>>>>> Report
>>>>>> Viewer Servlet available as a http service. Is there anyway to modify
>>>>>> it's configuration (via extension points?) and reuse it for my above
>>>>>> requirements?
>>>>>>
>>>>>> thanks for any help,
>>>>>> John
>>>>>>
>>>>>> On 11/09/2011 03:45 PM, Jason Weathersby wrote:
>>>>>>> Is your application a web app or an rcp based application? You can
>>>>>>> have
>>>>>>> the birt.war reference design files outside of the war, but you will
>>>>>>> need to set the url report path policy in the web.xml:
>>>>>>>
>>>>>>> <!--
>>>>>>> Settings for how to deal with the url report path. e.g.
>>>>>>> "http://host/repo/test.rptdesign".
>>>>>>>
>>>>>>> Following values are supported:
>>>>>>>
>>>>>>> <all> - All paths.
>>>>>>> <domain> - Only the paths with host matches current domain. Note the
>>>>>>> comparison is literal, "127.0.0.1" and "localhost" are considered as
>>>>>>> different hosts.
>>>>>>> <none> - URL paths are not supported.
>>>>>>>
>>>>>>> Defaults to "domain".
>>>>>>> -->
>>>>>>> <context-param>
>>>>>>> <param-name>URL_REPORT_PATH_POLICY</param-name>
>>>>>>> <param-value>domain</param-value>
>>>>>>> </context-param>
>>>>>>>
>>>>>>> Jason
>>>>>>>
>>>>>>> On 11/9/2011 10:36 AM, jahits88 wrote:
>>>>>>>> Jason,
>>>>>>>>
>>>>>>>> first off thanks for your help, however, I did download the updated
>>>>>>>> version and I am still having the same issue. Ill try to explain it
>>>>>>>> better as I can see that my question from before might not make
>>>>>>>> sense.
>>>>>>>>
>>>>>>>> my issue is that I have my application in a workspace folder. I
>>>>>>>> create
>>>>>>>> the rptdesign files from the application, and store the files
>>>>>>>> within my
>>>>>>>> application. from one of my jsp pages I call the viewer and it is
>>>>>>>> supposed to display the charts. It does, however, it only displays
>>>>>>>> the
>>>>>>>> charts if I copy thier .rptdesign file and paste it in the Birt.war
>>>>>>>> folder( which is located in the JBOSS folder on my C drive ). My
>>>>>>>> problem
>>>>>>>> is that I am trying to have everything work from within my
>>>>>>>> application,
>>>>>>>> so that it will be accesible to anyone using my application, not
>>>>>>>> just
>>>>>>>> the localhost/my computer.
>>>>>>>> So in essence, i simply need to have the BirtViewer run from
>>>>>>>> within my
>>>>>>>> application, instead of running from out of the Birt.war folder. Is
>>>>>>>> there anyway that I am able to accomplish this so that the files
>>>>>>>> within
>>>>>>>> my application can run from within my application without having
>>>>>>>> to be
>>>>>>>> copied over to a different folder?
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Re: running BIRT viewer within my application [message #764250 is a reply to message #760573] Sun, 11 December 2011 19:07 Go to previous messageGo to next message
singlepoint  is currently offline singlepoint Friend
Messages: 4
Registered: December 2011
Junior Member
Hi Jason,

I am getting following excpetion, have spent a lot of time on figuring out but of no avail, could you please let me know what I am doing wrong. I followed your tutorial for working with php/java bridge for brit reporting, followed every step and getting this error.


Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: ReferenceClass failed: new org.eclipse.birt.php.birtengine.BirtEngine. Cause: java.lang.ClassNotFoundException: org.eclipse.birt.php.birtengine.BirtEngine VM: 1.6.0_20
Re: running BIRT viewer within my application [message #764655 is a reply to message #764250] Mon, 12 December 2011 15:43 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Do you have birtEngine.jar in the WEB-INF/lib directory of the deployed
JavaBridge war?

Jason

On 12/11/2011 2:07 PM, singlepoint wrote:
> Hi Jason,
>
> I am getting following excpetion, have spent a lot of time on figuring
> out but of no avail, could you please let me know what I am doing wrong.
> I followed your tutorial for working with php/java bridge for brit
> reporting, followed every step and getting this error.
>
>
> Fatal error: Uncaught [[o:Exception]:"java.lang.Exception:
> ReferenceClass failed: new org.eclipse.birt.php.birtengine.BirtEngine.
> Cause: java.lang.ClassNotFoundException:
> org.eclipse.birt.php.birtengine.BirtEngine VM: 1.6.0_20
Re: running BIRT viewer within my application [message #764691 is a reply to message #764655] Mon, 12 December 2011 17:24 Go to previous messageGo to next message
singlepoint  is currently offline singlepoint Friend
Messages: 4
Registered: December 2011
Junior Member
Hi Jason,

Thanks for replying, I have javaBridge.jar but not birtEngine.jar? So, it means I don't have it there, how should I proceed ?

Regards
Re: running BIRT viewer within my application [message #764694 is a reply to message #764691] Mon, 12 December 2011 17:29 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

What jars do you have in the web-inf/lib?

Jason

On 12/12/2011 12:24 PM, singlepoint wrote:
> Hi Jason,
>
> Thanks for replying, I have javaBridge.jar but not birtEngine.jar? So,
> it means I don't have it there, how should I proceed ?
>
> Regards
>
Re: running BIRT viewer within my application [message #764720 is a reply to message #764694] Mon, 12 December 2011 18:44 Go to previous messageGo to next message
singlepoint  is currently offline singlepoint Friend
Messages: 4
Registered: December 2011
Junior Member
javaBridge.jar
php-servlet.jar
php-script.jar

I tried another thing, the javaBridge.war which comes bundled with the documentation at this location

sourceforge.net/projects/php-java-bridge/files/Binary%20package/php-java-bridge_6.2.1/

I tried to use this, it contained a lot of sample birt reports and corresponding .php files, then I copied the same directory to my htdocs (for apache), surprisingly, sample reports started working. That is, the php sample files you included are working fine when deployed in apache. And important point is that javaBridge.war contains a lot of jar files including birtEngine.jar (not only the above 3 in WEB-INF/lib). Should I consider this a successful working of php/java bridge. Only the sample reports you provided are working, the reports I designed aren't working, it simply says that "error in .rptdesign file etc". What is the difference between these javaBridge.war files.

Regards
Re: running BIRT viewer within my application [message #764737 is a reply to message #764720] Mon, 12 December 2011 19:13 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Yes it was successful. It is just an older version of BIRT and that is
why your new reports do not work. You could look at this post to see
how to update the BIRT version.
http://www.birt-exchange.org/org/devshare/deploying-birt-reports/743-calling-birt-from-php/


Jason

On 12/12/2011 1:44 PM, singlepoint wrote:
> javaBridge.jar
> php-servlet.jar
> php-script.jar
>
> I tried another thing, the javaBridge.war which comes bundled with the
> documentation at this location
>
> sourceforge.net/projects/php-java-bridge/files/Binary%20package/php-java-bridge_6.2.1/
>
>
> I tried to use this, it contained a lot of sample birt reports and
> corresponding .php files, then I copied the same directory to my htdocs
> (for apache), surprisingly, sample reports started working. That is, the
> php sample files you included are working fine when deployed in apache.
> And important point is that javaBridge.war contains a lot of jar files
> including birtEngine.jar (not only the above 3 in WEB-INF/lib). Should I
> consider this a successful working of php/java bridge. Only the sample
> reports you provided are working, the reports I designed aren't working,
> it simply says that "error in .rptdesign file etc". What is the
> difference between these javaBridge.war files.
>
> Regards
>
Previous Topic:Missing required plug-ins for RCP application with BIRT
Next Topic:Database Property Binding
Goto Forum:
  


Current Time: Thu Apr 18 23:32:45 GMT 2024

Powered by FUDForum. Page generated in 0.03140 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top