-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Nilf,
nlif wrote:
| Here is the code of the Wrapper:
Nice workaround. I'm not entirely sure why the ClassLoader tree is
fighting you in this case, but it's nice to know that you can beat it
into submission when necessary ;)
- -chris
-BEGIN PGP
Hi Chris,
Thanks for the link. I found the following workaround: instead of placing my
Proxy object in the HttpSession, I put it in a serializable wrapper class
first, and then put the wrapper in the HttpSession. The wrapper overrides
the default de-serialization to set a different class-loader a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Nilf,
nlif wrote:
|> Are you sure you put your test class on all of the servers?
|
| Yes. I am sure. It's there, and this happens either when replicating from
| Node A to Node B or the other way around.
Hmm... so it always fails on the receiving end
Christopher Schultz-2 wrote:
>
>
> This doesn't look like the proxy is failing; it looks like the TestBean
> class is not available to the receiving Tomcat instance. This happens on
> the /other/ Tomcat, right (i.e. not the one where the object was put
> into the session)?
>
> Are you sure you
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Naaman,
nlif wrote:
| I am using Tomcat 6, and running in a cluster, with session-replication.
| When I put in the session a JDK dynamic proxy, the serialization
fails, like
| so:
|
| Apr 3, 2008 2:09:24 PM org.apache.catalina.ha.session.DeltaManager