org.apache.struts.actions

Class RedeployableActionServlet

public class RedeployableActionServlet extends ActionServlet

WebLogic (at least v6 and v7) attempts to serialize the TilesRequestProcessor when re-deploying the Webapp in development mode. The TilesRequestProcessor is not serializable, and loses the Tiles definitions. This results in NullPointerException and/or NotSerializableException when using the app after automatic redeploy.

This bug report proposes a workaround for this problem, in the hope it will help others and maybe motivate an actual fix.

The attached class extends the Struts Action servlet and fixes the problem by reloading the Tiles definitions when they have disappeared.

For background discussion see http://issues.apache.org/bugzilla/show_bug.cgi?id=26322

Since: 1.2.1

Version: $Rev: 54954 $ $Date: 2004-10-17 07:40:12 +0100 (Sun, 17 Oct 2004) $

Field Summary
TilesRequestProcessortileProcessor
Method Summary
protected RequestProcessorgetRequestProcessor(ModuleConfig config)

Field Detail

tileProcessor

private TilesRequestProcessor tileProcessor

Method Detail

getRequestProcessor

protected RequestProcessor getRequestProcessor(ModuleConfig config)
Copyright © 2000-2008 - The Apache Software Foundation