Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342243 - ClassLoader.getResourceAsStream() fails on the server
Summary: ClassLoader.getResourceAsStream() fails on the server
Status: CLOSED INVALID
Alias: None
Product: Riena
Classification: RT
Component: communication (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Stefan Liebig CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 284564
  Show dependency tree
 
Reported: 2011-04-08 04:28 EDT by Stefan Liebig CLA
Modified: 2016-10-04 08:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).