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

Bug 342243

Summary: ClassLoader.getResourceAsStream() fails on the server
Product: [RT] Riena Reporter: Stefan Liebig <Stefan.Liebig>
Component: communicationAssignee: Stefan Liebig <Stefan.Liebig>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: christian.campo
Version: 2.1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 284564    

Description Stefan Liebig CLA 2011-04-08 04:28:58 EDT
In Riena remote service calls ClassLoader.getResourceAsStream() fails. It seems that the wrong class loader is used.
Comment 1 Stefan Liebig CLA 2011-04-08 04:30:39 EDT
This behavior is related to the changes introduced with bug #284564.
Comment 2 Stefan Liebig CLA 2011-04-08 05:32:17 EDT
The context class cloader that is set in the RienaHessianDispatchServlet now uses the original context class loader as a parent which resolves the resource loading.
Comment 3 Stefan Liebig CLA 2011-04-08 08:11:10 EDT
TCCL causes problems wit log4j: http://articles.qos.ch/classloader.html
Comment 4 Stefan Liebig CLA 2011-06-16 04:32:33 EDT
The usage of the TCCL within the RienaHessianDispatchServlet has been removed, because it causes problems with log4j (see comment #3).

As a result, the server side still requires buddy class loading (see related bug #284564).