On Thu, 10 Jul 2003, Hohlen, John C wrote:

> Date: Thu, 10 Jul 2003 14:04:31 -0500
> From: "Hohlen, John C" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> Subject: RE: Struts 1.1 Bug? "PlugIn" Objects Not Serializable
>
> We're using WebLogic 6.1?  Should I really consider it broken?
>

Feel free to point at this message thread if you report a bug to them :-).

I have not heard any convincing justification for why this choice was
made -- why should applications be disallowed from storing
non-serializable resources there?

> I've submitted a Bugzilla Enhancement as per your suggestion:
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=21476
>
> In the meantime, I'm thinking of extending the Plugins that I'm using
> (Validator and Tiles) to simply implement "serializable".
>
> public class SerializableValidatorPlugIn extends ValidatorPlugIn
> implements Serializable {
>
> }
>
> Then I'll specify my plug-ins in the Struts config file.  Do you think
> this will work in the meantime?
>

It's worth a shot, but just adding "implements Serializable" to a class
does not guarantee that serialization will be successful.  It would still
fail, for example, if the PlugIn class had instance variables that are not
themselves serializable.

> Thanks,
>
> JOHN

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to