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

Bug 353899

Summary: Using synthetic/scope class loader in web applications
Product: [RT] Virgo Reporter: Hristo Iliev <hsiliev>
Component: runtimeAssignee: Project Inbox <virgo-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.0.0.RC1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Hristo Iliev CLA 2011-08-04 10:42:08 EDT
See forum thread http://www.eclipse.org/forums/index.php/t/229437/

Synthetic classloader (CL) is not available in web applications since Tomcat sets the web app CL as thread context CL.

One option would be to provide API to get the synthetic CL. This has a drawback that users will have to take care to restore the TCCL in finally which may not always be possible due to different lifecycles.

Another option may be to hook into Tomcat (if possible at all).