Session Timeout / SocketException / Coyote
Hi list, I am sorry if this is an off topic. I am just not sure where my problem really is located. I have a web application which I start through web start. I do set the session timeout to 30 min for security reasons. So when the session is expired and the client tries to access again the server I sent back a session expired object. On the client I can see that the object was read from the input stream and that the stream is closed. I even can access some stuff in that object. But on the server I get the following exception Jul 17, 2003 5:25:12 PM org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler processConnection INFO: SocketException reading request, ignored I also have the problem that my web application just hangs after this but it does not by the same action and the server has still a valid session. So, can my hanging application be connected to this Socket Exception message? Thanks for any info. Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log4j / ConsoleLogger
Hi list, I am using Log4j for my web apps. Now I would like to set up Tomcat's Console Logger to use Log4j. I know I just can put the required classes on system startup path (e.q. JAVA_HOME/jre/lib for libs or JAVA_HOME/jre/classes for classes). Then just edit the JAVA_HOME/jre/lib/logging.properties. This is all okay. But how can I configure Log4j for a specific Layout pattern. Not setting the patern is the problem. But where could I set this that already the first messages on the console are coming with the specified pattern? Could it be done with a servlet which is loaded at start up time or just what is the best way to this? Any hints are appreciated Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Conflict of Kazaa and Tomcat
By default Kazaa starts a http services on port 80. But you can change this in Kazaa. In Kazza Tools -- Options On tab Firewall disable the check box at the bottom for incoming connections to use port 80. Then just above put in a port (8080) which is not used on your machine. Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 David [EMAIL PROTECTED] .net.sg To 'Tomcat Users List' 25.06.2003 09:21 [EMAIL PROTECTED] cc Please respond to Subject Tomcat Users RE: Conflict of Kazaa and Tomcat List [EMAIL PROTECTED] rta.apache.org But if I want my friends to access my website at http://www.david.com http://www.david.com/ and not http://www.david.com:8080 http://www.david.com:8080/ what should I do. I would like my website address to be a nice and elegant one. That is, one that does not require to specify the port no. By default, http://www.david.com http://www.david.com/ automatically opens the port 80 and thus I do not need to specify the port. Is there a way that I can run my Kazaa AND my tomcat at the same time yet allowing my webserver to host a website at port 80 ? Regards David -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 1:40 AM To: 'Tomcat Users List' Subject: RE: Conflict of Kazaa and Tomcat I'm pretty sure Kazaa starts a webserver on port 80. That's also how Kazza's theatre (preview a downloading movie file) works. If you've modified Tomcat to start on port 80, then change it back to 8080. Or... if I'm remembering wrong, and it's kazza that starts on 8080, then change Tomcat to 80. -Original Message- From: David [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 12:37 PM To: Tomcat User Subject: Conflict of Kazaa and Tomcat Hi guys, I am a newbie to Tomcat. I followed all the instructions on how to set up the tomcat server. I managed to test if it is working and stuff. I setup the server properly. Ran the test page, I managed to get the to Tomcat set up test page correctly displayed. PROBLEM: All the set up and test were done with my Kazaa switched off. When my kazaa is running, this is where the problem lies. If I were to let my Kazaa to run, I find that my Tomcat server can be successful started up. When I try to access my localhost site on my IE, it turns out that the Download folder of Kazaa is the root for my localhost address. I am using Windows XP. Does anyone know why when I am running Kazaa, the tomcat server cannot be started ? Regards David - 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: InstanceListener
Hi Angus, Could it be that the class you want to get an instace of is just loaded under your web application path? For me it looks like a class loader issure you may have. I wrotte a littel JSP to show the class loaded by TC. You may want to check if your class is really loaded and under which path. Regards, (See attached file: ClassLoad.zip) Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 Angus Mezick [EMAIL PROTECTED] r.org To [EMAIL PROTECTED] 25.06.2003 19:02 cc Subject Please respond to InstanceListener Tomcat Users List [EMAIL PROTECTED] rta.apache.org Has anyone here created an instance listener? If so, where did you put the .class file? I am currently getting a classnotfound error. I tried classes in both server and common. Anyone have an example of some code that implements InstanceListener? I can't find anything on this class in the archives except checkins. Thanks! Angus Mezick GuideStar - Philanthropic Research Inc. 427 Scotland St. Williamsburg, Virginia 23185 PHONE: (757)299-4631 x35 FAX:(757)229-8912 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.guidestar.org http://www.guidestar.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ClassLoad.zip Description: Zip archive - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to access a specific session in a servlet
Hi list, I am pretty newbie with servlets and I got stock now. How can I access a specific session from Servlet? Is this possible? I need to do this because by a prevoius request I stored some objects in the session which I need to access again later in other servlets. I am running Tomcat 4.1.18 Any hints links are welcome and appreciated Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Set System properties at TC startup
Hi list, I have several web applications running. All of them have some properties equal. They are also important in order to the web applications working appropriatly. Is there a way at TC startup time to set these properties (just Strings) and in case the properties are not found to let TC immediately crash. I am not really an expert in this and there may be a totally different way how to do this. Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 Bill Barker [EMAIL PROTECTED] .com To Sent by: news [EMAIL PROTECTED] [EMAIL PROTECTED] cc org Subject Re: Set System properties at TC 19.06.2003 09:45 startup Please respond to Tomcat Users List [EMAIL PROTECTED] rta.apache.org Assuming that you are using TC 4.x (TC 3.3 has a different way of doing this), then you create a file called setenv.(bat|sh) (of course, bat for Windows, sh for *nix). In this file you set the environment variable CATALINA_OPTS to define the system properties that you need. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi list, I have several web applications running. All of them have some properties equal. They are also important in order to the web applications working appropriatly. Is there a way at TC startup time to set these properties (just Strings) and in case the properties are not found to let TC immediately crash. I am not really an expert in this and there may be a totally different way how to do this. Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - 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: Set System properties at TC startup [SOLVED]
Thanks to all for the helpful hints. Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 John Turner [EMAIL PROTECTED] turner.comTo Tomcat Users List 19.06.2003 14:44 [EMAIL PROTECTED] cc Please respond to Subject Tomcat Users Re: Set System properties at TC List startup [EMAIL PROTECTED] rta.apache.org This looks pretty recent...is it? John On Thu, 19 Jun 2003 07:05:04 -0400, Tim Funk [EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim [EMAIL PROTECTED] wrote: Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - 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]
Off topic / webapp listener
Hi list, Does anyone know about a resource how to write webapp listeners? Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClassLoad diagnostic JSP
Hi list, I was struggeling already many times with class loading (NoClassDefFoundErr) issues due to company history. So I wrote a JSP which tells which class are loaded from where. It also looks inside of jar files. Feel free to use and edit it the to met your needs. I just do not guarantee for corectness due I am not an expert in class loading. But for me it works great and helped me already many times. I attached a zip file containig the JSP. In case the zip goes not through the mail list you also can download it from http://www.urbaplan.com/ClassLoad.zip Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Query string / InputStream
Hi list, I have a question to servlets with TC. I set up a easy web site with a form and request method POST. The action is then a call to a servlet. In this servlet I implemented doPost and doGet while doPost just calls doGet. Now when the servlet gets called the query string is null. This I also can see in the server log file. Also there is no no query string. I figured out that the actual query string can be read from the InputStream in the servlet. But why is this so? Did I set up something wrong? What do I need to do to just get the query string? On the web site I tried both methods POST and GET with the same effect. I am running TC 4.1.18 as a standalone web server. Any suggestions are welcome because I tried so many things now and do not know where the point is. Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help neede on QueryString
Hi list, I have a simple htm form which has some input fields. This form is working fine on a Notes HHTTP Server. But if I use the same for with Tomcat Standalone the query string is always null in the servlet. Does any one know what is wrong? I am running Tomcat 4.1.18 on Win2K. Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help neede on QueryString
This is the tsrange thing. I tried with POST and with GET. But both ways I do not have a query string. I also do not have any parameters or attributes. Also in the server log is not query string noted by either POST and GET. It is a really odd situation. Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 Shapira, Yoav [EMAIL PROTECTED] .com To Tomcat Users List 12.06.2003 16:53 [EMAIL PROTECTED] cc Please respond to Subject Tomcat Users RE: Help neede on QueryString List [EMAIL PROTECTED] rta.apache.org Howdy, Could it be the form parameters are being passed in the HTTP headers, i.e. your form is submitted via a POST rather than GET requests? Post the form element from your HTML, and your servlet that processes it. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:10 AM To: [EMAIL PROTECTED] Subject: Help neede on QueryString Hi list, I have a simple htm form which has some input fields. This form is working fine on a Notes HHTTP Server. But if I use the same for with Tomcat Standalone the query string is always null in the servlet. Does any one know what is wrong? I am running Tomcat 4.1.18 on Win2K. Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
socket closed
) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Version
Hello, Can anyone help me how to figure out which tomcat version is installed. I need to know if it is 4.1.12 or 4.1.18? Thanks Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IE6 crashes / Netscape works
Hello, I have a web application where I let users log in through an applet. If the user is verified I call another website from the applet like this AppletContext appletContext = getAppletContext(); appletContext.showDocument(URL,_self); Now I have a big problem and I am not sure where it actually is. On my local machine (Win2k prof) all is workrng fine and the new site is loaded. This works in IE6 and Netscape 7. But I also have a Win2k server where I also runTomcat. There it just works with Netscape. If I try to log in in IE, it crashes and is even not responding anymore. It crashes right after the showDocument call. I was testing it with Tomcat 4.18 and 4.12. Same effect. I also tried with ports 8080 or 80 or whatever. Same thing. Does anyone know where the problem is? Is it IE, Tomcat or Win server? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JVM and Browser are crashing
Hello, I try to load a new web page from an applet: AppletContext appletContext = getAppletContext(); appletContext.showDocument(URL,_self); the function showDocument of appletContext crashes the JVM and IE6 without any error message. But Tomcat is still running. But this works in Netscape. I do not know where the problem is. Could it be a connector problem? Any help is greatly appreciated. Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JVM and Browser are crashing
I know this. The strange thihng is that I also have Tomcat running on my local machine. Then when I access through the browser the local applet it works. But if I access the applet on the server it crashes me all. I also checked the server.xml doc. All is the same except the ports and address. So I really do not know where is the problem. It is also strange that it is working in Netscape local and on the server. Regrads, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 Tim Funk [EMAIL PROTECTED] rgTo Tomcat Users List 25.02.2003 18:23 [EMAIL PROTECTED] cc Please respond to Subject Tomcat Users Re: JVM and Browser are crashing List [EMAIL PROTECTED] rta.apache.org A browser crashing is always the fault of the browser, regardless of who distributes the browser. A browser should handle any content coming back from a webserver gracefully w/out crashing. Anyhoo, since its IE - there are wacky advanced options that allow you to use the MS JVM vs other jvms, or you can try upgrading JVM's and see if that adds stability to the browser. -Tim [EMAIL PROTECTED] wrote: Hello, I try to load a new web page from an applet: AppletContext appletContext = getAppletContext(); appletContext.showDocument(URL,_self); the function showDocument of appletContext crashes the JVM and IE6 without any error message. But Tomcat is still running. But this works in Netscape. I do not know where the problem is. Could it be a connector problem? Any help is greatly appreciated. - 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: JVM and Browser are crashing
Well I thought the same too already. But I checked in the browser settings all too. There is no difference. But the big question is for me why does it work when I access the local host (http://localhost:8080/...) and it does not work when I access the real server (www.urbaplan.net/Urbaplan/upIndex.htm). For me there must be a problem on the server. But I do not have any error message. So I also do not know where to start. Is there a possibility that the JVM dumps something? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 Tim Funk [EMAIL PROTECTED] rgTo Tomcat Users List 02/25/2003 06:39 [EMAIL PROTECTED] PM cc Subject Please respond to Re: JVM and Browser are crashing Tomcat Users List [EMAIL PROTECTED] rta.apache.org You might have security settings enabled that don't allow applets to do everything you want them to. Look at the security tab of IE and maybe add your server as a trusted server. (Just a guess) -Tim [EMAIL PROTECTED] wrote: I know this. The strange thihng is that I also have Tomcat running on my local machine. Then when I access through the browser the local applet it works. But if I access the applet on the server it crashes me all. I also checked the server.xml doc. All is the same except the ports and address. So I really do not know where is the problem. It is also strange that it is working in Netscape local and on the server. Regrads, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 Tim Funk [EMAIL PROTECTED] rg To Tomcat Users List 25.02.2003 18:23 [EMAIL PROTECTED] cc Please respond to Subject Tomcat Users Re: JVM and Browser are crashing List [EMAIL PROTECTED] rta.apache.org A browser crashing is always the fault of the browser, regardless of who distributes the browser. A browser should handle any content coming back from a webserver gracefully w/out crashing. Anyhoo, since its IE - there are wacky advanced options that allow you to use the MS JVM vs other jvms, or you can try upgrading JVM's and see if that adds stability to the browser. -Tim [EMAIL PROTECTED] wrote: Hello, I try to load a new web page from an applet: AppletContext appletContext = getAppletContext(); appletContext.showDocument(URL,_self); the function showDocument of appletContext crashes the JVM and IE6 without any error message. But Tomcat is still running. But this works in Netscape. I do not know where the problem is. Could it be a connector problem? Any help is greatly appreciated. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JVM and Browser are crashing
Do not worry. Thanks for your suggestions. If I find the problem I will let you know. If I could avoid to use applets I would. But this is really not possible and also the customer wants it like this. Well life is going on. Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]