How to check if the client dropped the connection

2009-09-28 Thread aaime74
Hi, I'm working on the development of an open source application, GeoServer, implementing the Web Map Service specification. The specification allows a client to request maps using simple GET requests like:

Non-http tcp protocol

2009-09-28 Thread Sergio Bello
Hi all, I'm trying to figure out how to use tomcat as a TCP server. The basic idea is to receive tcp connections, through a given port, process them and return a response. Has anyone done it? I've googling but I've not found much information. Which do you think is the best/simplest way to do

Tomcat JK connection problem ?

2009-09-28 Thread Ashika Umanga Umagiliya
Greetings all, I have configured JK connector to bridge Apache to my Tomcat server. I am getting weird behaviour for a one particular servlet. For a random client , it seems that Apache serves some cached page.Seems it shows some kind of cached page of JSP page called 'Error.jsp'. I have

Re: Tomcat JK connection problem ?

2009-09-28 Thread Peter Crowther
2009/9/28 Ashika Umanga Umagiliya auma...@biggjapan.com Any tips ? When posting about a complex environment such as httpd + mod_jk + Tomcat, a good tip is to include version information - we're far more likely to be able to help you! - Operating system and version - Java version (and whether

Re: Tomcat JK connection problem ?

2009-09-28 Thread Rainer Jung
On 28.09.2009 11:08, Ashika Umanga Umagiliya wrote: Greetings all, I have configured JK connector to bridge Apache to my Tomcat server. I am getting weird behaviour for a one particular servlet. For a random client , it seems that Apache serves some cached page.Seems it shows some kind of

Re: Tomcat JK connection problem ?

2009-09-28 Thread Ashika Umanga Umagiliya
H Peter , Thank you for the reply. I have given in-line answers. - Operating system and version Server : Debian Lenny 64bit - Java version (and whether it's a JDK or a JRE) JDK 1.6.0_16 - Tomcat version (right down to the last digit - 6.0.20, not Tomcat 6.0) Tomcat 6 - mod_jk

Re: Tomcat JK connection problem ?

2009-09-28 Thread Ashika Umanga Umagiliya
Sorry , full tomcat version is : Tomcat 6.0.20 **Ashika Umanga Umagiliya wrote: H Peter , Thank you for the reply. I have given in-line answers. - Operating system and version Server : Debian Lenny 64bit - Java version (and whether it's a JDK or a JRE) JDK 1.6.0_16 - Tomcat version

Re: Tomcat JK connection problem ?

2009-09-28 Thread Rainer Jung
As far as I can see, the log file contains the same situation as when I connet to the URL with a browser. I do successfully get the main page, but the page includes two invalid references: - for style.css (should be maybe css/style.css) - and inside css/style.css which is also used in addition to

Re: Non-http tcp protocol

2009-09-28 Thread Leon Rosenberg
hello, take the simpliest example from a java book. this is one: public class BasicTCPServer extends AbstractServer implements Runnable{ /** * The port to listen on. */ private int port; /** * The listening socket. */ private

Re: Non-http tcp protocol

2009-09-28 Thread Tim Funk
Don't - there are other apache projects which can do that much better than Tomcat. -Tim Sergio Bello wrote: Hi all, I'm trying to figure out how to use tomcat as a TCP server. The basic idea is to receive tcp connections, through a given port, process them and return a response. Has anyone

Re: Non-http tcp protocol

2009-09-28 Thread Sergio Bello
Tim Funk escribió: Don't - there are other apache projects which can do that much better than Tomcat. -Tim Sergio Bello wrote: Hi all, I'm trying to figure out how to use tomcat as a TCP server. The basic idea is to receive tcp connections, through a given port, process them and return a

Re: Non-http tcp protocol

2009-09-28 Thread Stefan Zoerner
I was thinking on tomcat to take advantage of several features (request and thread management, etc) that I know have been tested for years, but I'm not tied to the use of tomcat. If you know another project (java/opensource) I can rely on, could you tell me its name, please? If you prefer

blocked / hanging on call to HandlerRequest.checkRequest

2009-09-28 Thread Simon Papillon
Hi I'm running tomcat 5.5.25 on debian sarge 32 bit linux (2.6.8 kernel) with ~ 1.5GB ram on a pentium 4 2GHz with a mysql db 5.0.27 I've got a configuration with apache mod_jk 1.2.25 balancing to 2 tomcats which are both running running on jdk 1.6.0_16 -Xmx=256M periodically, generally at

Apache/Tomcat with SSL

2009-09-28 Thread Miguel Ortiz
I recently setup a SSL cert on our Apache/Tomcat server. When I load our page, I can see the lock in my browser with all the SSL info, but the page only loads as a the jsp script and not the full page. Is there some configuration setting that I have missed. I can provide snippets from the

Re: Apache/Tomcat with SSL

2009-09-28 Thread Peter Crowther
2009/9/28 Miguel Ortiz miguel.or...@macneillgroup.com I recently setup a SSL cert on our Apache/Tomcat server. When I load our page, I can see the lock in my browser with all the SSL info, but the page only loads as a the jsp script and not the full page. Is there some configuration setting

RE: Apache/Tomcat with SSL

2009-09-28 Thread Miguel Ortiz
Peter, I have checked the httpd logs. I didn't find anything that says why the page isn't loading. Here is a copy of the results for the various log files. I am running Apache/httpd 2.2.3 and Tomcat 5. Also, I have contacted our web developer to check the css and links for the page. Thanks

RE: Apache/Tomcat with SSL

2009-09-28 Thread Jorge Medina
Hola Miguel, did you set up SSL in Apache ? Or did you do it in Tomcat ? Or in both ? I am assuming that you want Apache to be the exposed server, therefore SSL must be configured in Apache. You must also have configured Apache to forward the requests to Tomcat by using the Apache

RE: Apache/Tomcat with SSL

2009-09-28 Thread Jorge Medina
Also, in order to configure Apache with SSL you must have the module mod_ssl -Original Message- From: Jorge Medina [mailto:jmed...@e-dialog.com] Sent: Monday, September 28, 2009 10:40 AM To: Tomcat Users List Subject: RE: Apache/Tomcat with SSL Hola Miguel, did you set up SSL in

Re: Apache/Tomcat with SSL

2009-09-28 Thread André Warnier
Miguel Ortiz wrote: ... [u...@localhost conf.d]# tail -f /var/log/httpd/ssl_error_log [Mon Sep 28 08:51:41 2009] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/lib/tomcat5/webapps/favicon.ico [Mon Sep 28 08:51:44 2009] [error] [client xxx.xxx.xxx.xxx] File does not exist:

RE: Apache/Tomcat with SSL

2009-09-28 Thread Miguel Ortiz
André, This server was configured by our web development contractors. I was only tasked with setting up the SSL. When I go to the specified URL, firefox throws a server not found. Miguel Ortiz Network Engineer x4818 wk: 954-331-4818 bbry: 954-649-1863 miguel.or...@macneillgroup.com

RE: Apache/Tomcat with SSL

2009-09-28 Thread Miguel Ortiz
Jorge, I have setup the SSL through Apache and Tomcat, if there is a different procedure for mod_ssl, I will try that as well. The site comes up fine when I access it without the https, however when I use the https, all I see is the jsp script. Miguel Ortiz Network Engineer x4818 wk:

Re: How to check if the client dropped the connection

2009-09-28 Thread Jason Brittain
Hi Andrea. When the client disconnects, and your servlet tries to write to the output stream, Tomcat will throw a ClientAbortException (you may have already seen this): http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/connector/ClientAbortException.html Tomcat appears to only

Re: Apache/Tomcat with SSL

2009-09-28 Thread André Warnier
Miguel Ortiz wrote: André, This server was configured by our web development contractors. I was only tasked with setting up the SSL. When I go to the specified URL, firefox throws a server not found. When I mentioned the URL http://your-hostname/ROOT/WEB-INF/web.xml I meant for you to

RE: Apache/Tomcat with SSL

2009-09-28 Thread Miguel Ortiz
André, That is what I did and it still came up with server not found. If you would like to verify. Our site is http://fun.macneillgroup.com. The site we are currently testing is http://fun.macneillgroup.com/focus/common/Index.jsp. This page works, however the https form doesn't seem to produce

Re: How to check if the client dropped the connection

2009-09-28 Thread Markus Meyer
Jason Brittain schrieb: The first time you call flush, it will send the HTTP response headers to the client, so you would need to first set the headers before flushing. That sounds difficult for you to do because you're writing an image, and one of the headers would be Content-Length, which you

Re: How to check if the client dropped the connection

2009-09-28 Thread aaime74
jasonb wrote: Hi Andrea. When the client disconnects, and your servlet tries to write to the output stream, Tomcat will throw a ClientAbortException (you may have already seen this): http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/connector/ClientAbortException.html

Upgrade from 5.5.9 to 5.5.20 Help

2009-09-28 Thread Corrin, Simon P
Hello, I have never upgraded Tomcat before and need to upgrade it from version 5.5.9 to 5.5.20 for application compatibility. I had a search through the documentation and didn't come across a section on how to do this type of thing (maybe I missed it). Can someone point me in the right

Re: How to check if the client dropped the connection

2009-09-28 Thread aaime74
Markus Meyer wrote: Jason Brittain schrieb: The first time you call flush, it will send the HTTP response headers to the client, so you would need to first set the headers before flushing. That sounds difficult for you to do because you're writing an image, and one of the headers would

Re: How to check if the client dropped the connection

2009-09-28 Thread Markus Meyer
aaime74 schrieb: Well, something like that has actually been done already, it's called tile caching, and works under the restrictive conditions that you can force the client to make requests in predetermined sizes and tiles. As for applying this to the general case, I invite you to have a look

RE: Apache/Tomcat with SSL

2009-09-28 Thread Jorge Medina
As suggested by André, you may want to join the Apache User's list and ask there your question. You need to configure SSL in your Apache web server. To configure SSL Apache Web server, the first thing you need to do is to verify that the module mod_ssl is available. You may want to consider

RE: How to check if the client dropped the connection

2009-09-28 Thread Martin Gainty
could you explain just a bit more what is a tile? Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte

[OT] Re: How to check if the client dropped the connection

2009-09-28 Thread André Warnier
Martin Gainty wrote: could you explain just a bit more what is a tile? http://en.wikipedia.org/wiki/Tile It's the same idea, but for images. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

Re: How to check if the client dropped the connection

2009-09-28 Thread Markus Meyer
Martin Gainty schrieb: could you explain just a bit more what is a tile? If you have a very large image, say 1 million x 1 million pixels or something like that, it is more efficient to split the image into tiles, that is small images of, say, 256 x 256 pixels. If a certain portion of the

Re: Upgrade from 5.5.9 to 5.5.20 Help

2009-09-28 Thread Pid
On 28/09/2009 20:34, Corrin, Simon P wrote: Hello, I have never upgraded Tomcat before and need to upgrade it from version 5.5.9 to 5.5.20 for application compatibility. I had a search through the documentation and didn't come across a section on how to do this type of thing (maybe I missed

Re: tomcat url rewrite

2009-09-28 Thread WILLIAMer
to Christopher Schultz-2: I try to rewrite some relative path to absolute path for CSS and image. And it work!!! So i think i find the solution for this. The / char will not let me get error, just check the relative path. Thanks for your help! -- View this message in context:

Re: blocked / hanging on call to HandlerRequest.checkRequest

2009-09-28 Thread Bill Barker
Simon Papillon simon.papil...@gmail.com wrote in message news:e9cf50b20909280512o2905849fref38fc97a06dd...@mail.gmail.com... Hi I'm running tomcat 5.5.25 on debian sarge 32 bit linux (2.6.8 kernel) with ~ 1.5GB ram on a pentium 4 2GHz with a mysql db 5.0.27 I've got a configuration with

Re: Apache/Tomcat with SSL

2009-09-28 Thread Bill Barker
The most common cause of this is that you haven't copied your JkMount etc configuration statements to the SSL VirtualHost. In this case, mod_jk doesn't think that it should be serving the .jsp file, so Apache (httpd) serves it instead. Since httpd knows nothing about JSP, it just serves it

Re: Apache/Tomcat with SSL

2009-09-28 Thread Crypto Sal
Miguel, Do you have Tomcat serving up Port 80 traffic or is that Apache's httpd? I suggest you have one web server handle both normal web traffic and SSL traffic (if possible), since this page is a login page, you might want to FORCE https on that page and not allow HTTP. It would almost