You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ge...@wellsfargo.com on 2005/12/22 17:22:23 UTC

WebLogic serializing ServletContext

Is anyone successfully using Struts on a WebLogic Managed Server?

We are seeing errors like this:

<Oct 26, 2005 10:20:31 PM MST> <Error> <HTTP> <BEA-101309>
	<[ServletContext(id=18877050,name=servicerlink,context-path=)] 
	could not deserialize the context attribute 
	"org.apache.struts.action.PLUG_INS"
java.io.NotSerializableException:
org.apache.struts.validator.ValidatorPlugIn
	at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)

and

<Nov 2, 2005 12:26:55 PM MST> <Error> <HTTP> <BEA-101309> 
	<[ServletContext(id=3031962,name=direct,context-path=/direct)] 
	could not deserialize the context attribute 
	"org.apache.struts.tiles.DEFINITIONS_FACTORY"
java.io.NotSerializableException:
com.wellsfargo.link.view.controllers.IndexController
	at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)

We started down the path of wrapping objects in wrapper classes that
implement Serializable, but that seemed like a never-ending quest.  This
looks like exactly the same problem as that described in
http://issues.apache.org/bugzilla/show_bug.cgi?id=28868.  It appears to
be somewhat different from bug 26322, and I don't think bug 28868 is
really a duplicate of 26322.

I do not know why BEA is serializing the ServletContext, and my reading
of the Servlet 2.2 and 2.3 specs gives me doubt that they should be
doing so.  Perhaps it's due to a misconfiguration on our part.  It
occurs to me, however, that there must be others successfully using
Struts on WebLogic.  If so, I'd like to hear from you.

 - George

--
 George Dinwiddie
 410-884-6473
 george.dinwiddie@wellsfargo.com
 gdinwiddie@idiacomputing.com

"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies."  -- C. A. R. Hoare

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org