Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
problem for delpoy EAR to was6.1
TADY6
Hi all,
Anybody faced the error?
Error info:
Cant startup the OSGI framework.
The ear struction :
my.ear
|---birt.jar
|---BirtEngineHome
|---com.tady.MyEngine.jave
|---other jar files
The code call BirtEngine in MyEngine.java.
Following is part info of the MyEngine.java
EngineConfig config = new EngineConfig();
config.setEngineHome = ("BirtEngineHome");
config.setLogConfig(null,Level.FINE);
config.getAppContext.put(EngineContants.APPCONTEXT_CLASSLOADER_KEY, MyEngine.class.getClassLoader());
Platform.startup(config);
I can confirm the problem is the setting of birtengine home incorrect, and How to set the birtengine home for my.ear?
Find more posts tagged with
Comments
cypherdj
Does your web application contain WEB-INF/platform and its subfolders?<br />
<br />
Also in my own web app, I set BirtEngineHome to an empty string.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
IPlatformContext platformCtx = new PlatformServletContext(context.getServletContext());
EngineConfig engineConfig = new EngineConfig();
engineConfig.setEngineHome("");
engineConfig.setPlatformContext(platformCtx);
engineConfig.setResourcePath(MyEngine.class.getResource("/").getPath());
Platform.startup(engineConfig);
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
IReportEngine reportEngine = factory.createReportEngine(engineConfig);
</pre>
<br />
Hope that helps,<br />
Cedric
TADY6
Hi Cedric,<br />
Thanks for your advice! but my.ear package have not included web application, and birt engine is called by ejb, and i packed birt engine with ejb to my.ear package, then provides the service for other applications.<br />
<br />
<blockquote class='ipsBlockquote' data-author="cypherdj"><p>Does your web application contain WEB-INF/platform and its subfolders?<br />
<br />
Also in my own web app, I set BirtEngineHome to an empty string.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
IPlatformContext platformCtx = new PlatformServletContext(context.getServletContext());
EngineConfig engineConfig = new EngineConfig();
engineConfig.setEngineHome("");
engineConfig.setPlatformContext(platformCtx);
engineConfig.setResourcePath(MyEngine.class.getResource("/").getPath());
Platform.startup(engineConfig);
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
IReportEngine reportEngine = factory.createReportEngine(engineConfig);
</pre>
<br />
Hope that helps,<br />
Cedric</p></blockquote>