RE: Session persistance
Any luck Anu? I have exactly the same request... I need to serialize the session (HttpSession to a byte array) and save it to a blob in MySql (i use Hibernate). I have tried, for example; ... ByteArrayOutputSream baos = new ByteArrayOutputstream(); ObjectOutputStream oos = new ObjectOutputStream(boas); oos.writeObject(session); //-- it fails here, nothing in the logs byte[] sessionAsBytes = baos.toByteArray(); ... I need this to give the user the option to restore a previous session (where they where before they last logged out, with all the session variables required to restore to that point). I guess that's what you need it for as well. By the way, hibernate's createBlob also doesn't do he trick. Something to do with the session. I'm thinking of creating a bean (and store it in session) to keep track of my app and then just serializing/deserializing that bean from/to the session on logout/login. I prefer the session though. Thanks, Johan. -Original Message- From: Anu Mathew [mailto:[EMAIL PROTECTED] Sent: Friday, April 16, 2004 7:37 AM To: Tomcat Users List Subject: Re: Session persistance I already RTFM. From the manual I understood that you are also part of developing TFM. But in TFM, restoring of the session is mentioned as automatic when the applicatio/server restarts. But I want to control both storing and restoring of the session using my code. Is this possible? Thanks, Anu Mathew - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 15, 2004 6:45 PM Subject: RE: Session persistance Hi, I need to 1. Store the session object in a database (I can trigger this operation from a jsp say logoff.jsp ) 2. Retrieve the session object from the database (I can trigger this operation from a jsp say login.jsp ) Thoughts?? Here's one thought: RTFM. JDBC store for sessions: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Apache Tomcat 5.0.9 Beta released
HOT! Any spec's available on setting up and running under Apache? Did it really change all that much? Thanks from a loyal supporter. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 2.0.46 / Tomcat 5.0.3
Has anyone got Tomcat 5.0.3 working with Apache 2.0.46 (using mod_jk2)? Especialy concerning struts... I just cannot get the actions (*.do) to work whithout it giving me a 404 not found. It works file Tomcat standalone. All other *.jsp, images, etc. loads fine via Apache. If it's a Tomcat thing I'll probably have to go back a step to v4.x, but it just seems so much effort lost so far. Regards, Johan.
RE: Apache-Tomcat-Struts 404 Not Found
Nope, that didn't solve the problem. But let it be known that I'm not realy a guru when it comes to configuring this lot. Heres some extracts: httpd.conf- VirtualHost * ServerAdmin [EMAIL PROTECTED] ServerName localhost ErrorLog logs/local-error.log CustomLog logs/local-access.log common /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot C:\Apache\Tomcat 5.0\webapps\itdiv ServerName www.itdiv.com ErrorLog logs/www.itdiv.com-error.log CustomLog logs/www.itdiv.com-access.log common /VirtualHost ### Tomcat 5 Connector include C:/Apache/Tomcat 5.0/conf/mod_jk.conf mod_jk.conf- # JkMount /* ajp13 JkMount /*.do ajp13 JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 http://localhost/struts-example/logon.do- results in a 404. http://localhost:8080/struts-example/logon.do - works! http://www.itdiv.com/logon.do - results in a 404. http://www.itdiv.com:8080/logon.do - works! Regards, and thanks. Johan. -Original Message- From: Johan Wasserman - CPX Mngd Services Sent: Wednesday, August 20, 2003 7:42 AM To: Tomcat Users List Subject: RE: Apache-Tomcat-Struts 404 Not Found Thanks John, no I didn't. But I did have JkMount /* ajp13, wouldn't that do it? I'll try specifying it the way you suggest. Thanks again. Johan. -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 10:30 PM To: Tomcat Users List Subject: Re: Apache-Tomcat-Struts 404 Not Found Tomcat 4 and Tomcat 5 configuration with mod_jk are the same. Do you have something like this in your httpd.conf file? JkMount /*.do ajp13 John Johan Wasserman - CPX Mngd Services wrote: Hi, I got Tomcat and Apache configured according to documentation (still referencing TC4x) I found on the web. It seemed to work fine but while testing struts I found that the actions (*do) resulted in a 404 Not found. When I test via Tomcat only (localhost:8080) it works fine. I have probably only been looking in the wrong places but cannot seem to find documentation or a download area for mod_jk to do a config on the following versions: Tomcat v. 5.0.3 Apache v. 2.0.46 So, my curent versions are configured using Tomcat v 4x documentation (and mod_jk). Have anyone done this successfully on the newer versions, and where can I download the required bin's and doc's? Thanks! Johan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache2, mod_jk2, tomcat4.1.27: server has been restarted or reset this connection
Chris, where do I get mod_jk2 (binery) and some kind of documentation to tell me how to set up. I have Tomcat v. 5.0.3 Apache v. 2.0.46 but the setup does not work too well. Thanks. Johan. -Original Message- From: Chris Joelly [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 3:43 PM To: [EMAIL PROTECTED] Subject: apache2, mod_jk2, tomcat4.1.27: server has been restarted or reset this connection Hello all! i have setup apache2 with mod_jk2 and tomcat4.1.27 and all works fine, but the following log messages is written to the mod_jk log file: 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection as i can see this log message is written on every request, so i can change the log level or if there is a real problem would appreciate solving the problem. is this a real problem? and if yes, does anybody know whats the problem? i have tried several things with WORKER.sockt_keepalive and WORKER.socket_timeout, but things don't change... thx, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache-Tomcat-Struts 404 Not Found
Hi, I got Tomcat and Apache configured according to documentation (still referencing TC4x) I found on the web. It seemed to work fine but while testing struts I found that the actions (*do) resulted in a 404 Not found. When I test via Tomcat only (localhost:8080) it works fine. I have probably only been looking in the wrong places but cannot seem to find documentation or a download area for mod_jk to do a config on the following versions: Tomcat v. 5.0.3 Apache v. 2.0.46 So, my curent versions are configured using Tomcat v 4x documentation (and mod_jk). Have anyone done this successfully on the newer versions, and where can I download the required bin's and doc's? Thanks! Johan.
RE: Apache-Tomcat-Struts 404 Not Found
Thanks John, no I didn't. But I did have JkMount /* ajp13, wouldn't that do it? I'll try specifying it the way you suggest. Thanks again. Johan. -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 10:30 PM To: Tomcat Users List Subject: Re: Apache-Tomcat-Struts 404 Not Found Tomcat 4 and Tomcat 5 configuration with mod_jk are the same. Do you have something like this in your httpd.conf file? JkMount /*.do ajp13 John Johan Wasserman - CPX Mngd Services wrote: Hi, I got Tomcat and Apache configured according to documentation (still referencing TC4x) I found on the web. It seemed to work fine but while testing struts I found that the actions (*do) resulted in a 404 Not found. When I test via Tomcat only (localhost:8080) it works fine. I have probably only been looking in the wrong places but cannot seem to find documentation or a download area for mod_jk to do a config on the following versions: Tomcat v. 5.0.3 Apache v. 2.0.46 So, my curent versions are configured using Tomcat v 4x documentation (and mod_jk). Have anyone done this successfully on the newer versions, and where can I download the required bin's and doc's? Thanks! Johan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]