Hi, I have integrated BIRT (version 2.6.0) with our web application and have had successfully started and generated reports on Tomcat (5.5 & 6) and WebLogic, but it fails to start up on WebSphere.<br />
<br />
The error is:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>SEVERE The BIRT Report Platform threw an error: Can not startup the OSGI framework</pre>
<br />
The log file also contains the stacktrace:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
Permission:
org.osgi.framework.system.packages : Access denied (java.util.PropertyPermission org.osgi.framework.system.packages write)
Code:
org.eclipse.osgi.framework.internal.core.FrameworkProperties in {file:/var/WebSphere/profiles/testProfile2/installedApps/localhostNode01Cell/MyProject.ear/MyProject-beta11.war/WEB-INF/ReportEngine/plugins/org.eclipse.osgi_3.6.0.v20100517.jar}
Stack Trace:
java.security.AccessControlException: Access denied (java.util.PropertyPermission org.osgi.framework.system.packages write)
at java.security.AccessController.checkPermission(AccessController.java:104)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:189)
at org.eclipse.osgi.framework.internal.core.FrameworkProperties.clearProperty(FrameworkProperties.java:64)
at org.eclipse.core.runtime.adaptor.EclipseStarter.setInitialProperties(EclipseStarter.java:1435)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.birt.core.framework.osgi.OSGILauncher.doStartup(OSGILauncher.java:173)
at org.eclipse.birt.core.framework.osgi.OSGILauncher.access$0(OSGILauncher.java:94)
at org.eclipse.birt.core.framework.osgi.OSGILauncher$1.run(OSGILauncher.java:79)
at java.security.AccessController.doPrivileged(AccessController.java:241)
at org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:75)
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:79)
...
</pre>
<br />
I have found <a class='bbc_url' href='
http://stackoverflow.com/questions/935218/birt-websphere-java-2-security'>this</a> post on another forum which seems to be identical to the issue we have. While the suggested solution here is to disable Java 2 security (and this fixes our issue too) it is not an option since other components of our application rely on Java 2 security...any ideas?<br />
<br />
Thanks in advance.