Hi Rickard,
Thursday, December 21, 2000, 12:30:22 PM, you wrote:
R�> Hi!
R�> Ingo Bruell wrote:
>> Thursday, December 21, 2000, 12:09:47 PM, you wrote:
>>
>> R�> Try getting the pk and print out its classloader (without casting it):
>> R�> out.println(ectx.getPrimaryKey().getClass().getClassLoader());
>> R�> and then print out the cl of the PK class:
>> R�> out.println(PersonPK.class.getClassLoader());
>>
>> R�> and see what your results are.
>>
>> PersonPK.class.getClassLoader():
>> java.net.URLClassLoader@3a1ec6
>>
>> ectx.getPrimaryKey().getClass().getClassLoader():
>> java.net.URLClassLoader@38f8eb
R�> As expected (i.e. wrong).
R�> And what is result of Thread.currentThread().getContextClassLoader()?
R�> /Rickard
PersonPK.class.getClassLoader():
java.net.URLClassLoader@6a48be
ectx.getPrimaryKey().getClass().getClassLoader():
java.net.URLClassLoader@76ba0f
Thread.currentThread().getContextClassLoader():
java.net.URLClassLoader@7aece8
so long
Ingo Bruell
---
<[EMAIL PROTECTED]>
<ICQ# 40377720>
Oldenburg PGP-Fingerprint: 9DD0 1776 DF4D 5B16 A532 C2A1 4701 EEA2
Germany PGP-Public-Key available at pgpkeys.mit.edu