Shapira, Yoav wrote:

Hi,



No I am using the default out-of-the-box manager. It worried me that I
didn't see Session.ser (or whatever) anywhere which is what made me
think I somehow
farkled the permissions.



I mispelled the file name, it's sessions.ser as others have pointed out. (Don't delete .cer files if you have them, as they might be security certificates, that's what I had in mind when writing my message, too much multitasking on my part ;))



public final class UploadAction extends Action {
private Log log = LogFactory.getLog(this.getClass());



Make it static. Someone else pointed out how the above will lead to your error: Log (the commons-logging interface) may have non-serializable implementations, making UploadAction itself not serializable, and therefore not suitable as a session attribute.

Tomcat 5 is more restrictive about enforcing serializable session
attributes than tomcat 4 was.

When you make it static you can't use the this.getClass() construct
unfortunately.  You can use private static Log log =
LogFactory.getLog(UploadAction.class).



Thanks :-) I made the logs static and another class in another ActionForm static and I don't get the errors on "autodeploying". However, the really wierd thing is that my $CATALINA_HOME/work/Catalina/localhost/myapp still doesn't show a SESSIONS.ser when I stop tomcat and as is to be expected, my session doesn't persist when I start it again. I am not using any funny Manager. I also tried nesting
<Manager distributable="true"/> in my context .xml but it didn't do anything.


Mark Shifman

Yoav Shapira





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



Reply via email to