Hi.
Thanks for the classloader/jar hint.
I'll check for that.
Stephen McConnell schrieb am 12.01.2004 um 15:14:18:
>...
>So, the instance of the class in the container ("there")
2730814, the one returned by lookup()
>is different to
>the instance of the class that you are using ("here").
23361497, the interface defining the services for the
component that should be returned
Are you sure, that the interface and the component should
have equal hash codes,
even though the components interface is not equal to the
component itself?
Did you mean perhaps, that I should check
loggerInst.debug("here : " + System.identityHashCode(
MyComponentImpl.class ) );
instead?
Cheers,
Joerg
>This means that
>when you attempt narrow the container supplied instance of
>2730814 to
>and instance of 2730814, the cast fails because 2730814 is
>not
>assignable to 2730814.
>
>I.e. you have a classloader conflict somewhere. Perhaps
>you have you
>application jars inside Phoenix classloader space or
>something like
>that. I can't really help with suggestions on how to fix
>the problem
>other than to play around until you get "here" == "there".
>
>Cheers, Steve.
>
>--
>
>|------------------------------------------------|
>| Magic by Merlin |
>| Production by Avalon |
>| |
>| http://avalon.apache.org/merlin |
>| http://dpml.net/merlin/distributions/latest |
>|------------------------------------------------|
>
>-----------------------------------------------------------
>----------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail:
>[EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]