I've done a lot of searching for integration of the Report Engine with WebSphere relating to the error: org.eclipse.birt.core.exception.BirtException: error.CannotStartupOSGIPlatform.<br />
<br />
I'm at a loss. Any help would be greatly appreciated.<br />
<br />
Environment:<br />
-Spring based Web app integrated with Birt Report engine 3.7<br />
-Websphere 8 on Windows<br />
-Java 6<br />
<br />
Birt engine Code snippet:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
@Service("birtService")
public class BirtServiceImpl implements BirtService
{
private IReportEngine engine = null;
@PostConstruct
public void startBirt() throws Exception
{
engine = null;
EngineConfig config = null;
config = new EngineConfig();
Platform.startup( config );
IReportEngineFactory factory = ( IReportEngineFactory ) Platform.createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
engine = factory.createReportEngine( config );
}
@PreDestroy
public void cleanUp() throws Exception
{
if ( engine != null )
{
engine.destroy();
}
Platform.shutdown();
RegistryProviderFactory.releaseDefault();
engine = null;
}
...
}</pre>
<br />
WEB-INF/lib folder contents:<br />
see attachment libcontents.txt (we use batik jars already so i removed the ones bundled with the report engine to resolve duplicate jars)<br />
<br />
I removed the following jars:<br />
org.apache.xerces_2.9.0.v201101211617.jar<br />
org.apache.xml.resolver_1.2.0.v201005080400.jar<br />
org.apache.xml.serializer_2.7.1.v201005080400.jar<br />
org.eclipse.core.resources_3.7.100.v20110510-0712.jar<br />
<br />
I also tried removing these jars (in both scenarios with and without it still failed)<br />
org.eclipse.osgi.services_3.3.0.v20110513.jar<br />
org.eclipse.osgi_3.7.2.v20120110-1415.jar<br />
<br />
Is there something that i'm missing in my configuration that i'm missing? Are there too many jars that i removed or too little?<br />
<br />
Thanks <br />
<br />
P.S. If you want the full stack trace i can attach that too but it's pretty much what everyone else has posted on other forums. I'm not deploying the viewer so the POJO deployment wiki doc wasn't too much help for me.