Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » BIRT Servlet: The change of the location of the platform folder?
BIRT Servlet: The change of the location of the platform folder? [message #630554] Mon, 04 October 2010 06:07 Go to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 55
Registered: July 2010
Member
Hello,

Is it possible to change the location of the platform folder of the BIRT servlet?

Currently it seems to be hard coded to the
WEB-INF\platform\

Is it possible to change the location of the:

1) WEB-INF\platform\

2) WEB-INF\platform\plugins\

3) WEB-INF\platform\configuration\

folders outside of the war package.

BR,

Mika



[Updated on: Mon, 04 October 2010 07:27]

Report message to a moderator

Re: Change the location of the platform folder of the BIRT Servlet? [message #630709 is a reply to message #630554] Mon, 04 October 2010 15:29 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Currently this is hard coded in the viewer. You can check out the code
and change it or write your own servlet using the engine. The
configuration directory which is written to by osgi can be changed with
an osgi parameter in the config.ini. If you want to do this see this link:
http://www.birt-exchange.org/org/forum/index.php/topic/20613 -birt-26-and-ibm-websphere-can-not-startup-the-osgi-framewor k/page__gopid__68935&#entry68935

Jason

On 10/4/2010 2:07 AM, mika.tapanainen@digia.com wrote:
> Hello,
>
> Is it possible to change the location of the platform folder of the BIRT
> servlet?
>
> Currently it seems to be hard coded to the
> WEB-INF\platform\
>
> Is it possible to change the location of the:
>
> 1) WEB-INF\platform\
>
> 2) WEB-INF\platform\plugins\
>
> 3) WEB-INF\platform\configuration\
>
> folders outside of the war package.
>
> BR,
>
> Mika
>
>
>
>
Re: Change the location of the platform folder of the BIRT Servlet? [message #631128 is a reply to message #630709] Wed, 06 October 2010 09:47 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 55
Registered: July 2010
Member
Hello,

I tried to use

osgi.install.area=file:/c:/birtRuntimePlugins2_6_1/

but it didn't work. There was an exception:

[5.10.2010 10:03:36:476 EEST] 0000003d SystemErr     R org.eclipse.birt.core.exception.BirtException: error.CannotStartupOSGIPlatform
[5.10.2010 10:03:36:492 EEST] 0000003d SystemErr     R        at org.eclipse.birt.core.framework.Platform.startup(Platform.java:92)
[5.10.2010 10:03:36:492 EEST] 0000003d SystemErr     R        at pdf.BirtEngine.getBirtEngine(BirtEngine.java:82)
[5.10.2010 10:03:36:492 EEST] 0000003d SystemErr     R        at pdf.PDFServlet.init(PDFServlet.java:275)



My servlet is based on the BIRT 2.5 example on the page:

http://wiki.eclipse.org/Servlet_Example_%28BIRT%29_2.1

Is it possible to have a plugins folder outside of the war package and use osgi.install.area or other configuration parameter?

BR,

Mika
Re: Change the location of the platform folder of the BIRT Servlet? [message #631204 is a reply to message #631128] Wed, 06 October 2010 14:55 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Mika,

In that example if you do not want to use the web-inf/platform folder do
not create the PlatformServletContext and set a birt home ie:

config.setEngineHome("c:/mybirtplugins");
//IPlatformContext context = new PlatformServletContext( sc );
//config.setPlatformContext( context );


Jason


On 10/6/2010 5:47 AM, mika.tapanainen@digia.com wrote:
> Hello,
>
> I tried to use
>
> osgi.install.area=file:/c:/birtRuntimePlugins2_6_1/
>
> but it didn't work. There was an exception:
>
>
> [5.10.2010 10:03:36:476 EEST] 0000003d SystemErr R
> org.eclipse.birt.core.exception.BirtException:
> error.CannotStartupOSGIPlatform
> [5.10.2010 10:03:36:492 EEST] 0000003d SystemErr R at
> org.eclipse.birt.core.framework.Platform.startup(Platform.ja va:92)
> [5.10.2010 10:03:36:492 EEST] 0000003d SystemErr R at
> pdf.BirtEngine.getBirtEngine(BirtEngine.java:82)
> [5.10.2010 10:03:36:492 EEST] 0000003d SystemErr R at
> pdf.PDFServlet.init(PDFServlet.java:275)
>
>
>
> My servlet is based on the BIRT 2.5 example on the page:
>
> http://wiki.eclipse.org/Servlet_Example_%28BIRT%29_2.1
>
> Is it possible to have a plugins folder outside of the war package and
> use osgi.install.area or other configuration parameter?
>
> BR,
>
> Mika
Re: Change the location of the platform folder of the BIRT Servlet? [message #631384 is a reply to message #631204] Thu, 07 October 2010 11:10 Go to previous message
Missing name Missing name is currently offline Missing name Missing name
Messages: 55
Registered: July 2010
Member
Thanks, this is working
Previous Topic:use Hibernate connection pool
Next Topic:Arabic fonts are not rendered
Goto Forum:
  


Current Time: Wed Oct 01 12:14:02 GMT 2014

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

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