You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Chaudhuri, Hiran" <Hi...@softwareag.com> on 2005/12/07 08:03:19 UTC

Tomcat session serialisation & work directory

Hi there.

In my special setup I need Tomcat to use a different work directory.
This is set in server.xml with the context attribute workDir.
Tomcat will compile all JSPs in the desired location, so far so good.

But I also see the file SESSIONS.ser being created after each Tomcat
run, and that file is in the default work dir location. I need not have
the file, but I must not have it inside my tomcat installation
directory. I tried to deactivate session persistence as documented but
the file always gets created. Meanwhile I created a new Manager that
just does nothing in its load() and store() methods, but still the
SESSIONS.ser file gets created.

How can I completely deactivate that file, or move it to the context's
work directory?

Hiran

Re: Tomcat session serialisation & work directory

Posted by Mark Thomas <ma...@apache.org>.
This thread belongs on the users list, not on the dev list.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Tomcat session serialisation & work directory

Posted by Yoav Shapira <yo...@apache.org>.
Hi,
What Tomcat version are you using?

On Tomcat 5.5, the default Manager's pathname attribute is relative to the
context's workDir, so simply setting the custom workDir as you're doing
should be sufficient.  (The file will be created, but where you want it).
Alternatively setting pathname to the empty string "" should also work.

Yoav

On 12/7/05, Chaudhuri, Hiran <Hi...@softwareag.com> wrote:
>
> Hi there.
>
> In my special setup I need Tomcat to use a different work directory.
> This is set in server.xml with the context attribute workDir.
> Tomcat will compile all JSPs in the desired location, so far so good.
>
> But I also see the file SESSIONS.ser being created after each Tomcat
> run, and that file is in the default work dir location. I need not have
> the file, but I must not have it inside my tomcat installation
> directory. I tried to deactivate session persistence as documented but
> the file always gets created. Meanwhile I created a new Manager that
> just does nothing in its load() and store() methods, but still the
> SESSIONS.ser file gets created.
>
> How can I completely deactivate that file, or move it to the context's
> work directory?
>
> Hiran
>
>


--
Yoav Shapira
System Design and Management Fellow
MIT Sloan School of Management
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com