Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » BIRT_VIEWER_WORKING_FOLDER root linux and windows(BIRT web.xml)
BIRT_VIEWER_WORKING_FOLDER root linux and windows [message #647174] Tue, 04 January 2011 20:46 Go to next message
James Mising name is currently offline James Mising nameFriend
Messages: 26
Registered: November 2010
Junior Member
Hello,

I have everything in my web.xml in order for our web app to run birt reports. it works great on a windows server, but am having a difficult time with getting it to run on linux, and I believe it has to do with the absolute root file path.

here is my configuration in web.xml

<context-param>
<param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
<param-value>c:/opt/folder/reports/</param-value>
</context-param>

i tried putting slashes "\" and "/" (dont know if that is the problem or not). files must be store in this folder. I am using birt 2.6.1

Thanks,

James

[Updated on: Tue, 04 January 2011 20:49]

Report message to a moderator

Re: BIRT_VIEWER_WORKING_FOLDER root linux and windows [message #647184 is a reply to message #647174] Tue, 04 January 2011 21:07 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

James,

remove the c:

Jason


On 1/4/2011 3:46 PM, James wrote:
> Hello,
>
> I have everything in my web.xml in order for our web app to run birt
> reports. it works great on a windows server, but am having a difficult
> time with getting it to run on linux, and I believe it has to do with
> the root file path.
> here is my configuration in web.xml
>
> <context-param>
> <param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
> <param-value>c:/opt/folder/reports/</param-value>
> </context-param>
>
> i tried putting slashes "\" and "/" (dont know if that is the problem or
> not). files must be store in this folder. I am using birt 2.6.1
>
> Thanks,
>
> James
Re: BIRT_VIEWER_WORKING_FOLDER root linux and windows [message #647268 is a reply to message #647184] Wed, 05 January 2011 13:38 Go to previous messageGo to next message
James Mising name is currently offline James Mising nameFriend
Messages: 26
Registered: November 2010
Junior Member
Jason,

I tried that and now get an error that looks like this (windows server):

The report file : C:\..\BIRT\.metadata\.plugins\org.eclipse.wst.server.core\tm p2\wtpwebapps\PROJECT\opt\tcrdms\reports/REPORT_test.rptdesi gn does not exist or contains errors. Its like if i take out the c: then it looks within the context of the project. Is there another configuration I need to set to make it look from the root dir? Thanks for your help.


James


[Updated on: Wed, 05 January 2011 13:38]

Report message to a moderator

Re: BIRT_VIEWER_WORKING_FOLDER root linux and windows [message #647962 is a reply to message #647174] Mon, 10 January 2011 15:51 Go to previous messageGo to next message
James Mising name is currently offline James Mising nameFriend
Messages: 26
Registered: November 2010
Junior Member
How do I set absolute path in web.xml so that it will work in both linux and windows? it should look something like this

<context-param>
<param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
<param-value>\opt\folder\reports\</param-value>
</context-param>


Thanks

[Updated on: Mon, 10 January 2011 15:52]

Report message to a moderator

Re: BIRT_VIEWER_WORKING_FOLDER root linux and windows [message #647986 is a reply to message #647962] Mon, 10 January 2011 17:03 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Do you have to use absolute? If you are deploying it you should be able
to start it with a / and that should be relative to the context.

Jason

On 1/10/2011 10:51 AM, James wrote:
> How do I set absolute path in web.xml so that it will work in both linux
> and windows?
>
>
> Thanks
Re: BIRT_VIEWER_WORKING_FOLDER root linux and windows [message #647990 is a reply to message #647986] Mon, 10 January 2011 17:18 Go to previous messageGo to next message
James Mising name is currently offline James Mising nameFriend
Messages: 26
Registered: November 2010
Junior Member
Unfortunately, the report files that are being stored and used have to be outside of the application in a separate folder on the file system (c:/opt/tcrdms/reports/).BIRT_VIEWER_WORKING_FOLDER setting appears to work ok on windows server, but not on linux and appears to look for file within context of application where it does not exist. Just trying to figure out how or even if its possible to make the same setting so that it will work on linux if that makes any sense. Thanks so much for your help.
Re: BIRT_VIEWER_WORKING_FOLDER root linux and windows [message #648004 is a reply to message #647990] Mon, 10 January 2011 17:26 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you use different web.xml files for each environment?

On 1/10/2011 12:18 PM, James wrote:
> Unfortunately, the report files that are being stored and used have to
> be outside of the application in a separate folder on the file system
> (c:/opt/tcrdms/reports/).BIRT_VIEWER_WORKING_FOLDER setting appears to
> work ok on windows server, but not on linux and appears to look for file
> within context of application where it does not exist. Just trying to
> figure out how or even if its possible to make the same setting so that
> it will work on linux if that makes any sense. Thanks so much for your
> help.
Re: BIRT_VIEWER_WORKING_FOLDER root linux and windows [message #648005 is a reply to message #648004] Mon, 10 January 2011 17:58 Go to previous messageGo to next message
James Mising name is currently offline James Mising nameFriend
Messages: 26
Registered: November 2010
Junior Member
Do you mean use a different web.xml file for each war file? for example if deploying on to windows or to linux you would have a different one for each? If that is what you are saying then no cannot. Thanks again for your help.


James
Re: BIRT_VIEWER_WORKING_FOLDER root linux and windows [message #716796 is a reply to message #648005] Thu, 18 August 2011 13:41 Go to previous messageGo to next message
James Mising name is currently offline James Mising nameFriend
Messages: 26
Registered: November 2010
Junior Member
I have returned to this issue again, and am not sure how to get around setting an absolute path outside of the application. Are there any other options for retrieving report design files from outside of the application?

-James

[Updated on: Thu, 18 August 2011 13:44]

Report message to a moderator

Re: BIRT_VIEWER_WORKING_FOLDER root linux and windows [message #716810 is a reply to message #716796] Thu, 18 August 2011 14:02 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

James,

I am not sure what the issue is. You can put a full path in the working
folder setting in the web.xml.

Jason

On 8/18/2011 9:41 AM, James wrote:
> Hello,
>
> I am running into the same situation where i need to define the absolute
> path to retrieve the design files from outside of the application. Was
> there a solution to this problem? The only other option I can think of
> is retrieving report files from the database, but not real sure how to
> approach that without doing some custom coding. Right now I have birt
> configured to run through web.xml without any custom coding.
>
> Thanks
Re: BIRT_VIEWER_WORKING_FOLDER root linux and windows [message #716905 is a reply to message #716810] Thu, 18 August 2011 18:16 Go to previous message
Eclipse UserFriend
Originally posted by: Donkey Hottie

Yes, and there (web.xml) is some Boolean value too, to allow ANY path.
Bu default it does not allow anything (for security).

18.8.2011 17:02, Jason Weathersby kirjoitti:
> James,
>
> I am not sure what the issue is. You can put a full path in the working
> folder setting in the web.xml.
>
> Jason
>
> On 8/18/2011 9:41 AM, James wrote:
>> Hello,
>>
>> I am running into the same situation where i need to define the absolute
>> path to retrieve the design files from outside of the application. Was
>> there a solution to this problem? The only other option I can think of
>> is retrieving report files from the database, but not real sure how to
>> approach that without doing some custom coding. Right now I have birt
>> configured to run through web.xml without any custom coding.
>>
>> Thanks
>


--

Few things are harder to put up with than the annoyance of a good example.
-- "Mark Twain, Pudd'nhead Wilson's Calendar"
Previous Topic:Create new report based on existing one
Next Topic:BIRT WITH JAXB
Goto Forum:
  


Current Time: Fri Mar 29 10:42:54 GMT 2024

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

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

Back to the top