[EMAIL PROTECTED] wrote:

> Hello,
>
> I'm trying to run the example included in  STRUTS on IPLANET AS 6.0/IWS4 in
> order to evaluate if we can use
> STRUTS in our company.
>
> I have difficulties in executing the following statement in
> ActionServlet.class
>
>         getServletContext().setAttribute(Action.MESSAGES_KEY, application)
>
> because MessageResources.class is not serializable and the Servlet-Engine of
> IAS trys to serialize when
> setting attributes.
>
> Message: SERVLET-put_nonserial: Putting non-serializable object when using
> NAS session
>
> Do you know if STRUTS runs on IAS6.0 with the included Servlet-Engine or
> what do I wrong ?
>

Requiring servlet context attributes to be Serializable is an application server
specific restriction, currently imposed by WebLogic 6.0 and (now) IAS, and
apparently would be preferred by most app server containers.  The current
implementation of the message resources has a nested reference to a
non-Serializable class, which causes the message you get above.  This is a high
priority issue for development, and will be fixed before 1.0 is released.

NOTE:  At present, the Struts example application still uses a non-Serializable
servlet context attribute, and will not run in an environment that requires them
(even though apps you write will work fine, after the bug fix mentioned in the
previous paragraph).

>
> Thanks a lot
>
> Regards
> Oliver Lauer
> AXA Insurance
> Germany

Craig McClanahan


Reply via email to