Re: Tomcat 6.0.32 ClientAbortException java.io.IOException

2011-08-04 Thread Alec Swan
: "Broken TCP. The acknowledge field is nonzero while the ACK flag is not set." Thanks, Alec On Thu, Aug 4, 2011 at 3:16 PM, Alec Swan wrote: > Thank you all for your suggestions. > > I've been sniffing TCP traffic all day today and noticed the following > pattern: >

Re: Tomcat 6.0.32 ClientAbortException java.io.IOException

2011-08-04 Thread Alec Swan
o idea how to go about tracking down where the connection gets dropped. I guess we could somehow track network hops? Any ideas on how to track this down? Thanks, Alec On Thu, Aug 4, 2011 at 1:52 PM, André Warnier wrote: > Alec Swan wrote: >> >> Hello, >> >> I agree

Re: Tomcat 6.0.32 ClientAbortException java.io.IOException

2011-08-04 Thread Alec Swan
exactly when that timeout is reached. > A standard browser would have a timeout of approx. 5 minutes, and then it > would display a page saying "the server is taking too long to respond.." > etc.. > Biut with other code, it depends on the code. > > > Alec Swan wrot

Tomcat 6.0.32 ClientAbortException java.io.IOException

2011-08-04 Thread Alec Swan
Hello, We are experiencing a problem on our production servers causing our HTTP clients to hang. I apologize for cross-posting with Metro forum but this is a critical problem for us. It looks like client SOAP HTTP requests get dropped/terminated by Tomcat or metro without notifying the client tha

SOLVED: Dedicated thread for Tomcat Manager

2011-01-14 Thread Alec Swan
Thank you for the good pointers. I consider my question answered and close this thread. On Fri, Jan 14, 2011 at 2:47 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Alec Swan [mailto:alecs...@gmail.com] > > Subject: Re: Dedicated thread for Tomcat

Re: Dedicated thread for Tomcat Manager

2011-01-14 Thread Alec Swan
Thank you everybody who contributed for explaining the pros and cons. We will go with the approach. I am assuming this new connector will serve all webapps, including Tomcat manager. Or can I configure it to serve just Tomcat Manager? Thanks On Fri, Jan 14, 2011 at 2:02 PM, André Warnier wrote

Re: Dedicated thread for Tomcat Manager

2011-01-14 Thread Alec Swan
dar...@unisys.com> wrote: > > From: Alec Swan [mailto:alecs...@gmail.com] > > Subject: Dedicated thread for Tomcat Manager > > > Is there a way to assign a dedicated thread to Tomcat Manager so > > that it will never be used to process any other client requests? > > Not d

Dedicated thread for Tomcat Manager

2011-01-13 Thread Alec Swan
Hello, Our webapp gets periodically hammered by our client applications causing Tomcat to run out of threads. This prevents us from being able to use Tomcat Manager and check the server status. Is there a way to assign a dedicated thread to Tomcat Manager so that it will never be used to process

SOLVED: Virtual host deployment

2010-09-15 Thread Alec Swan
Thank you everybody for the answers. I am closing this thread. On Wed, Sep 15, 2010 at 8:27 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Alec, > > On 9/14/2010 5:52 PM, Alec Swan wrote: > > T

Re: Virtual host deployment

2010-09-14 Thread Alec Swan
Could anybody explain what is the advantage of configuring JNDI resources using GlobalNamingResources in server.xml over configuring them in TOMCAT/conf/context.xml? Thanks! Alec On Tue, Sep 14, 2010 at 4:36 PM, Mark Thomas wrote: > On 14/09/2010 23:33, Alec Swan wrote: > > Thanks,

Re: Virtual host deployment

2010-09-14 Thread Alec Swan
Thanks, I'll give it a try. Still kind of curious if GlobalResources override resources in META-INF/context.xml, but I guess I will find that out soon. On Tue, Sep 14, 2010 at 4:13 PM, Pid wrote: > On 14/09/2010 23:10, Alec Swan wrote: > > GlobalResources sounds like what I

Re: Virtual host deployment

2010-09-14 Thread Alec Swan
JNDI resource available to every web application deployed in the container, correct? Will it override the JNDI resource definition packaged in META-INF/context.xml inside of the WAR file? Thanks! On Tue, Sep 14, 2010 at 3:58 PM, Pid wrote: > On 14/09/2010 22:52, Alec Swan wrote: > >

Re: Virtual host deployment

2010-09-14 Thread Alec Swan
14, 2010 at 3:18 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Alec, > > On 9/14/2010 5:04 PM, Alec Swan wrote: > > I have a WAR file which I distribute to multiple servers with multiple > >

Virtual host deployment

2010-09-14 Thread Alec Swan
Hello, I have a WAR file which I distribute to multiple servers with multiple virtual hosts. On each server I have a database, which is accessed by all virtual host apps on this server. Is it the right approach to put database access credentials in $TOMCAT/conf/context.xml which will then be load

Re: Authentication from the browser

2009-06-03 Thread Alec Swan
their browsers. Is there a reason why not many people recommended CLIENT-CERT authentication on this thread? Thanks On Tue, Jun 2, 2009 at 8:59 PM, Bill Barker wrote: > > "Alec Swan" wrote in message > news:34abb48b0906021503t158542a5ube612b5ccfad0...@mail.gmail.com... >

Re: Authentication from the browser

2009-06-02 Thread Alec Swan
> > ? You can't put HTTP headers "in" a link, unless you're processing > it through some proxy mechanism... > Looks like the last SecurityFilter build was released on Dec. 14, 2004, which makes me hesitant to use it. I am wondering if it is possible to use JavaScript to include the user name and

Re: Authentication from the browser

2009-06-02 Thread Alec Swan
e this idea, but as Hassaan pointed out it does not allow our customer users to access this page if they are outside of the VPN. > > > On Tue, Jun 2, 2009 at 4:01 PM, Alec Swan wrote: > > > I may not be explaining it clearly. > > > > We have one corporate cust

Re: Authentication from the browser

2009-06-02 Thread Alec Swan
headers. Does this give you enough information to propose a solution? On Tue, Jun 2, 2009 at 12:22 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Tue, Jun 2, 2009 at 11:03 AM, Alec Swan wrote: > > Hassan, I don't think that the goals are contradictory, because e

Re: Authentication from the browser

2009-06-02 Thread Alec Swan
IP address or domain? Can you think of any other ways to have two different authentication mechanisms for the same servlet? Thanks! On Tue, Jun 2, 2009 at 11:37 AM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Tue, Jun 2, 2009 at 10:22 AM, Alec Swan wrote: > >

Authentication from the browser

2009-06-02 Thread Alec Swan
I implemented a servlet and deployed it in Tomcat 6.0. The servlet is secured using Tomcat authentication mechanism which reads user credentials from the conf/users.xml file. We have a customer who would like to put a link on a web page (hosted by their server) which will invoke the servlet (hoste

Re: dedicated servlet connections

2006-12-22 Thread Alec Swan
Connectors with ports 8009 and 8010 with different thread counts. This will not use priorities though. Also: you could get the same thread exhaustion problem on the apache layer. Regards, Rainer Alec Swan schrieb: > Hi all, > > sorry for reposting. I posted the original messag

dedicated servlet connections

2006-12-22 Thread Alec Swan
Hi all, sorry for reposting. I posted the original message before I completed registration, so I am not sure if got through. I have two servlets: Worker and Status. Worker servlet gets hit very frequently and consumes all available Tomcat threads (configured via maxThreads). Thus, whenever I try

dedicated servlet threads

2006-12-21 Thread Alec Swan
Hi all, I have two servlets: Worker and Status. Worker servlet gets hit very frequently and consumes all available Tomcat threads (configured via maxThreads). Thus, whenever I try to access the Status thread I have to wait a long time. Is there a way to either dedicate some threads to Status serv

dedicated servlet connections

2006-12-21 Thread Alec Swan
Hi all, I have two servlets: Worker and Status. Worker servlet gets hit very frequently and consumes all available Tomcat threads (configured via maxThreads). Thus, whenever I try to access the Status thread I have to wait a long time. Is there a way to either dedicate some threads to Status serv

Re: accessing settings in server.xml from the servlet

2006-11-01 Thread Alec Swan
alina engine from the servlet code and then somehow inspect http connectors? Thanks. On 11/1/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Alec Swan [mailto:[EMAIL PROTECTED] > Subject: accessing settings in server.xml from the servlet > > how can a servlet acc

accessing settings in server.xml from the servlet

2006-11-01 Thread Alec Swan
Hi, how can a servlet access maxThreads settings defined in server.xml? I tried getServletContext(), getServletConfig(), getInitParameter(..), getAttribute(..), etc, but I still can't find a way to access server.xml configuration. I guess I need to get ahold of the catalina engine and the get the

Re: Serving CSS files from a certain URL

2006-07-05 Thread Alec Swan
Beautiful! I'll give it a try! Thanks. Hassan Schroeder <[EMAIL PROTECTED]> wrote: On 7/5/06, Alec Swan wrote: > I like your idea of using filters to rewrite CSS paths. Could you give > me a hint on how to do that best? Actually, if you're in a hurry, you could just use

Re: Serving CSS files from a certain URL

2006-07-05 Thread Alec Swan
site. Instead designers should be able to change CSS file and just preview the JSP in the browser to see how the look of the JSP was affected. Hassan Schroeder <[EMAIL PROTECTED]> wrote: On 7/5/06, Alec Swan wrote: > In any case I don't understand why this works in your case. Now th

Re: Serving CSS files from a certain URL

2006-07-05 Thread Alec Swan
. Hassan Schroeder <[EMAIL PROTECTED]> wrote: On 7/5/06, Alec Swan wrote: > In any case I don't understand why this works in your case. Now that I have more coffee in me, me neither :-) It really shouldn't, and I'm at another location now, so I can't revisit that

Re: Serving CSS files from a certain URL

2006-07-05 Thread Alec Swan
thing similar to: location="${pageContext.request.contextPath}/css/Styles.css" /> I'm of course assuming tomcat 5.x.x and the web.xml file is declared for servlet spec 2.4. This should work whether the running tomcat instance is on your local machine or the production server

Re: Serving CSS files from a certain URL

2006-07-05 Thread Alec Swan
e and releaving them from the deployment details? Thanks. Hassan Schroeder <[EMAIL PROTECTED]> wrote: On 7/5/06, Alec Swan wrote: > Web designers don't run web servers or servlet containers on their machines. > (I call their environment "static"). I understand -- and

Re: Serving CSS files from a certain URL

2006-07-05 Thread Alec Swan
deployed environment? Thanks. Hassan Schroeder <[EMAIL PROTECTED]> wrote: On 7/4/06, Alec Swan wrote: > I need to reference Styles.css from Test.jsp in such a way that it works in > static as well as in deployed mode. Note that for this to work in the static > mode (no web serv

Re: Serving CSS files from a certain URL

2006-07-04 Thread Alec Swan
administrator and avoid changing paths in JSP files during deployment. I would appreciate any feedback on this. Thanks. Hassan Schroeder <[EMAIL PROTECTED]> wrote: On 7/2/06, Alec Swan wrote: > I have a servlet, which I deploy as a WAR file. I want this servlet to > service all .jsp r

Serving CSS files from a certain URL

2006-07-02 Thread Alec Swan
Hi, I have a problem I've been struggling with for the last couple of hours. Basically, I need to configure Tomcat (preferably using web.xml) to server requests for CSS pages from a certain context path. For example, I want Tomcat to serve the request for /css/styles.css from /site/css/styles.c