Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314373

Summary: setContextClassLoader() and WebSphere deployment
Product: z_Archived Reporter: Jim Garrison <jgarrison>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: RESOLVED WONTFIX QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: afarrell, bluesoldier, jouyang, wyan
Version: 2.5.2Keywords: core
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: Obsolete

Description Jim Garrison CLA 2010-05-25 18:27:48 EDT
Build Identifier: BIRT 2.5.2

We are trying to deploy the Web Viewer in a highly security-restricted WebSphere environment that does not allow setContextClassLoader(). Since setContextClassLoader() is called in a number of places within BIRT, we are effectively prevented from using BIRT in WebSphere.

A quick scan of the source reveals 27 references in 12 classes scattered about the following packages

* org.eclipse.birt.core
* org.eclipse.birt.report.engine
* org.eclipse.birt.report.viewer

as well as some in UI components, which aren't a conflict for us.

I posted the above as a question on the Community Forums site (http://www.eclipse.org/forums/index.php?t=msg&th=168802&start=0&) and was asked to submit a bug, so here it is.

Reproducible: Always
Comment 1 Jim Garrison CLA 2010-05-25 18:30:03 EDT
Set version, added keywords
Comment 2 Wei Yan CLA 2010-05-25 22:20:29 EDT
BIRT must invoke the setContextClassLoader to set the class loader as BIRT is running in the OSGi framework.
Comment 3 Jim Garrison CLA 2010-05-26 15:40:34 EDT
@wei yan: I'm not sure I understand.  Are you saying that all of OSGi and BIRT are fundamentally incompatible with a high-security container that disallows setContextClassLoader()?
Comment 4 Wei Yan CLA 2010-05-26 20:18:25 EDT
Correct.
Comment 5 Jun Ouyang CLA 2010-08-19 04:23:58 EDT
See comment 2.
Comment 6 Xiaoying Gu CLA 2010-11-17 03:26:35 EST
*** Bug 328025 has been marked as a duplicate of this bug. ***