You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Francisco J. León" <fl...@cantv.net> on 2005/04/22 00:26:23 UTC

Re: Tomcat "forgets" a session attribute when reloading context

> It's possible that your User object is not serializing correctly.  As I
> understand things: when contexts are reloaded, the sessions are 
> serialized
> first, the context reloads, and the sessions are restored from their
> serialized form.   If one of your attributes doesn't make it through 
> this
> process, then the Session itself is not invalidated; you just don't 
> get that
> particular attribute back.  I've seen this happen on my own web-app.
>
>
Yes, this was indeed the problem. The fact that Strings are serialized, 
explains why
i was having this issue only with one object. I fixed this, thanks for 
all your answers

Francisco


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


running multiple tomcat instances as windows service

Posted by Jaynika Barot <ja...@gmail.com>.
we are using tomcat 5.0.28 on windows server.  I have been trying to
install multiple tomcat instances . Our goal is to run multiple
instances on port 80 of virtual IPs. But for testing, i'm using
differnt port numbers instead of ips..

Here r the steps i performed, 

(a) installed tomcat on c:\TC1
(b) copied conf,logs,shared,temp,webapps, work  folders from c:\TC1 into c:\TC2 
(c) changed port entries into TC2\conf\server.xml  
 <Server port=8006 , <Connector port=8081
(d) on cmd prompt 

c:\TC1\bin> set CATALINA_BASE=C:\TC2
 c:\TC1\bin>service.bat install TC2

This will install the TC2 windows service, but the service won't start
. If i check the properites of the service, it's pointing to  
C:\TC1\bin\tomcat5.exe //RS//tc2

What is wrong??

I couldn't find any step by step guide to setup multiple instances of
tomcat as windows service on Tomcat users list or any other web
resource.

Any pointers will be appreciated.

Thanks,
Jaynika

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