Re: Static resources not found in embedded Tomcat

2009-05-01 Thread Mark Thomas
Marcel Stör wrote: All I need for an embedded Tomcat (I'm working with 6.x) are a few Tomcat JARs in my classpath, correct? It depends what functionality you want - you'll probably need most of them. I'm asking because I'm seeing a strange behavior here. Access to Servlets deployed in the

Re: Static resources not found in embedded Tomcat

2009-05-01 Thread Marcel Stör
On 01.05.2009, at 10:20, Mark Thomas wrote: Marcel Stör wrote: All I need for an embedded Tomcat (I'm working with 6.x) are a few Tomcat JARs in my classpath, correct? It depends what functionality you want - you'll probably need most of them. I'm asking because I'm seeing a strange

Re: Slightly OT: log4j - generic log4j.dtd

2009-05-01 Thread Gregor Schneider
Thing is, that we have multiple boxes (Debian) running with multiple hosters, so every layout of those boxes is different (i.e. one has Tomcat in /var/lib, the other one in /usr/local, next one in /home/apps/tomcat). Since *some* of our servlets (i.e. our own SSO-mechanism) are runnung in all

Re: [OT] Tomcat users meetup in London

2009-05-01 Thread Gregor Schneider
Whish I could have made it to London, however, since I'm packed here like never b4 and - most important - my wife is due with our first kid within the next couple of weeks, I earned a few vetoes :( And concerning why it's quiet on the list: In most European countries today is labour-day meaning

Re: Slightly OT: log4j - generic log4j.dtd

2009-05-01 Thread André Warnier
Gregor Schneider wrote: since there's no such such as $CATALINA_HOME/common in Tomcat 6. You could always create one.. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

RE: GZIP Comrpession Problem

2009-05-01 Thread Glen Goodwin
Anyone else have any useful thoughts on this before I start putting together a bug report? Glen -Original Message- Subject: GZIP Comrpession Problem Using Tomcat 6.0.18 I have configured GZIP compression by adding the following lines to my connector. compression=force

Re: Tomcat 5.5.23 stops listening to requests on SSL port

2009-05-01 Thread Rahman Akhlaqur
Hi P The SSL is terminated at the load balancers, so the request is then a http request on port 8443 to our apache webserver (we use this to resolve multiple hostnames to just a few virtual hosts) which then just proxys the http request to Tomcat. At which point we want the request to be

Re: GZIP Comrpession Problem

2009-05-01 Thread Pid
Glen Goodwin wrote: Anyone else have any useful thoughts on this before I start putting together a bug report? Can you determine at what file size the connector no longer compresses the files? (A JS file stuffed with a comment full of lorem ipsum would do for testing) Ideally counted down to

Re: Tomcat 5.5.23 stops listening to requests on SSL port

2009-05-01 Thread Pid
Do not reply to all. Just to the list please. OK. So you're doing the following: ssl- LB:8443 http- HTTPD:8443 http- Tomcat:8443 https?- ContentSrv What are the content servers, virtual hosts in Tomcat? Or do you have some kind of proxy application running inside Tomcat? If you are *not*

Re: Tomcat 5.5.23 stops listening to requests on SSL port

2009-05-01 Thread André Warnier
Rahman Akhlaqur wrote: Hi P The SSL is terminated at the load balancers, so the request is then a http request on port 8443 to our apache webserver (we use this to resolve multiple hostnames to just a few virtual hosts) which then just proxys the http request to Tomcat. At which point we

Re: Tomcat 5.5.23 stops listening to requests on SSL port

2009-05-01 Thread Pid
Also, can you upgrade to the latest version of Tomcat (5.5.27) and Apache HTTPD? p Pid wrote: Do not reply to all. Just to the list please. OK. So you're doing the following: ssl- LB:8443 http- HTTPD:8443 http- Tomcat:8443 https?- ContentSrv What are the content servers, virtual

Re: jk's Chunk length too large message

2009-05-01 Thread Filip Hanik - Dev Lists
means the data doesn't fit in the AJP package. You can configure the size of the AJP package, has to be configured on both httpd and tomcat. look for max_packet_size in http://tomcat.apache.org/connectors-doc/reference/workers.html and look for |packetSize in

RE: hot-deploy problems

2009-05-01 Thread Peter Crowther
Tomcat version? Java version? OS? -Original Message- From: david owens [mailto:ym...@yahoo.com] Sent: 01 May 2009 15:52 To: users@tomcat.apache.org Subject: hot-deploy problems I hope you folks are not sick to death of this question, but I have still not found a satisfactory

Re: Apache Tomcat 503 errors

2009-05-01 Thread Daryl Stultz
On Tue, Apr 21, 2009 at 6:49 PM, Christopher Schultz ch...@christopherschultz.net wrote: Is there a preferred alternative to connecting Apache and Tomcat? Or is mod_proxy the best? mod_proxy_ajp is included in httpd, and there have been /lots/ of improvements since 2.2.2. Since you

RE: Apache Tomcat 503 errors

2009-05-01 Thread Robin Wilson
FYI, we've been using AJP (Apache 2.2.11, tomcat 6.0.18) for a while now, and we've had issues with 503s as well. We think we've narrowed them down to timeouts on our firewall between the Apache and Tomcat hosts. So we added 'keepalive' to the ProxyPass directives - and we're now monitoring to

Re: Application-specific jar files with Tomcat v6.0

2009-05-01 Thread Xie Xiaodong
Hi, Are there any conflict between your jar and those jars used by Tomcat? 2009/4/30 shiping.c...@csiro.au Hi, I am deploying an axis2 web service with Tomcat v6.0. The web service required a third-part jar file, say x.jar I can make the work service working with Axis2 standalone

Re: hot-deploy problems

2009-05-01 Thread Pid
Umm, are you uploading war files directly to the webapps directory? p Peter Crowther wrote: Tomcat version? Java version? OS? -Original Message- From: david owens [mailto:ym...@yahoo.com] Sent: 01 May 2009 15:52 To: users@tomcat.apache.org Subject: hot-deploy problems I

Re: possible to monitor cxn accept queue in NIO?

2009-05-01 Thread dukehoops
Thanks. any suggestions for such a tool for: -vista -rhel? Filip Hanik - Dev Lists wrote: acceptCount controls a TCP stack parameter for a backlog. The only way to monitor the backlog, would be to use tools for your operating system that let you introspect the TCP information the stack

Re: Application-specific jar files with Tomcat v6.0

2009-05-01 Thread David Smith
I think the first piece of information needed is what the OP means by .. it does not work! Are there any logs or stacktraces to clarify what that means? Also it might be helpful to know what x.jar has in it w/ regard to packages and classes. Essentially I don't think anyone can help until more

Re: Why we need two servers (httpd and tomcat)

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, On 4/30/2009 6:32 PM, Leon Rosenberg wrote: On Thu, Apr 30, 2009 at 9:58 PM, Christopher Schultz If you need to serve static content (js, css etc) along with dynamic content, you let tomcat handle it, it serves static content faster than

Re: Update Tomcat 5 - 6 .. JDBC driver problem

2009-05-01 Thread Atta, Jayadevan
The post below from Daniel Steel helped me migrate from Tomcat 4 to Tomcat 6 Thanks, Jayadevan Atta Java Developer - if we configure the url / db access as JNDI resource in the context files, then the

Re: Why we need two servers (httpd and tomcat)

2009-05-01 Thread Leon Rosenberg
On Fri, May 1, 2009 at 6:01 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amusingly enough, the way Tomcat serves static content as quickly as httpd does is by... using the same code used by httpd. no. unless you assume that http

Re: Filtering URL via tomcat

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ravi, Some things aren't adding up: http://www.mysiste.com/audio/abc.html (anyone/guests can see this page) http://www.mysiste.com/audio/app/download/abc.html (only logged in user can see this page) ...and... the root of my site reside in

jk-to-tomcat multiple retries

2009-05-01 Thread Dmitry Beransky
Hi, We have the strangest problem started happening to us a few weeks ago (after several years of running pretty much the same configuration). 1. The problem is only happening in the production environment. We cannot reproduce it on staging, which as far as we can tell is configured identically

Re: Why we need two servers (httpd and tomcat)

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, On 5/1/2009 12:14 PM, Leon Rosenberg wrote: On Fri, May 1, 2009 at 6:01 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amusingly enough, the way Tomcat serves static content as

Re: jk-to-tomcat multiple retries

2009-05-01 Thread Pid
Dmitry Beransky wrote: Hi, We have the strangest problem started happening to us a few weeks ago (after several years of running pretty much the same configuration). 1. The problem is only happening in the production environment. We cannot reproduce it on staging, which as far as we can

Re: Extra Threads in background

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 4/28/2009 10:52 PM, David.Meldrum wrote: I need a background task which I implemented as a thread that I stated in the ContextListerner. [snip] The problem I noticed is that while I only call the BackGroundThread.*start()* method

Re: Develop Configuration of Valve

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 4/29/2009 4:48 AM, Pid wrote: Step 1. Download latest Tomcat source from tomcat.apache.org. Technically speaking, you don't have to get the source. A binary package will work, too. You just need to have the correct JAR files in your

Re: jk-to-tomcat multiple retries

2009-05-01 Thread Dmitry Beransky
Upgrade that Tomcat, it is *years* old - 5.5.27 is the latest. See if it still does it then. Unfortunately, the pesky reality is that I would not be permitted to do such an upgrade to our entire infrastructure until I can show that all other options have been exhausted.

Re: GC Problem

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 4/29/2009 9:55 AM, Pid wrote: S Arvind wrote: Is there any good settings for GC for tomcat running in server with 4GB and Quad Core processor. I bascially need GC parameter for RESOURCE HUNGRY WEB APPLICATION Why not try fixing the

Re: Migrating website from own server to hosting company

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dfobox, On 4/29/2009 2:12 PM, dfobox wrote: I got mochahost Tomcat plan and moving website to remote server. My server ran Tomcat 4.0.4-50 and now website has to work under 5.5.26. What should be done to make this process smooth? My best advice

Re: Why we need two servers (httpd and tomcat)

2009-05-01 Thread Leon Rosenberg
On Fri, May 1, 2009 at 6:25 PM, Pid p...@pidster.com wrote: Leon Rosenberg wrote: On Fri, May 1, 2009 at 6:01 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amusingly enough, the way Tomcat serves static content as quickly as

Re: GZIP Comrpession Problem

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Glen, On 4/29/2009 4:21 PM, Glen R. Goodwin wrote: The question is this: Is there any reason why some .js files are getting gzip compression and some are not? I have checked to make sure the mime type is correct. I have verified the problem

Re: Tomcat 5.5.23 stops listening to requests on SSL port

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rahman, On 5/1/2009 9:24 AM, Rahman Akhlaqur wrote: The SSL is terminated at the load balancers, so the request is then a http request on port 8443 to our apache webserver (we use this to resolve multiple hostnames to just a few virtual hosts)

Re: Extra Threads in background

2009-05-01 Thread David.Meldrum
Chris, This is a good point. What I am discovering is that while I was calling a terminate method on the Thread in the ContextListener.contextDestroyed() method, my thread lives for quite while, because it is sleeping and does not wake up to test the terminate flag for several minutes. My

RE: GZIP Comrpession Problem

2009-05-01 Thread Glen Goodwin
I have determined that any file larger than 48k is not getting compressed regardless of mime type. I will be submitting this as a bug. BUG TITLE Tomcat Compression limited to 48K CONFIGURATION Windows XP (SP3) Apache Tomcat 6.0.18 Java 1.6.0_13-b03 SPECIAL TOMCAT SETTINGS Set on the

Re: Slightly OT: log4j - generic log4j.dtd

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 4/30/2009 11:43 AM, Gregor Schneider wrote: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd Is there a PUBLIC definition, too? IIRC, most XML parsers can use the PUBLIC part to look up the DTD in their

Re: Slightly OT: log4j - generic log4j.dtd

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 4/30/2009 11:43 AM, Gregor Schneider wrote: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd Oh, one more thing: couldn't you just turn off XML validation and completely remove log4j.dtd? Are you sure it's

Re: jk-to-tomcat multiple retries

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dmitry, On 5/1/2009 12:37 PM, Dmitry Beransky wrote: Upgrade that Tomcat, it is *years* old - 5.5.27 is the latest. See if it still does it then. Unfortunately, the pesky reality is that I would not be permitted to do such an upgrade to our

Re: GZIP Comrpession Problem

2009-05-01 Thread George Sexton
FYI, I tested this on 5.5.27 using the HTTP 1.1 connector and a 77K javascript file and I got 77K uncompressed, and 26K compressed. Glen Goodwin wrote: I have determined that any file larger than 48k is not getting compressed regardless of mime type. I will be submitting this as a bug. BUG

Re: I have a problem with Apache, Tomcat

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nohacks, On 4/30/2009 4:18 PM, nohacks wrote: You can see from my logs that apache returns a 200 for my login page then returns a 404 from It seems to be an issue now and then. It works for a while then it tosses a 404. Maybe after a timeout I

Re: help on tomcat 5.0 log (stdout) setup or redirection

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Xie, On 4/30/2009 4:07 PM, Xie Xiaodong wrote: You can find log file in the directory: tomcat_installation_folder/logs, and you could have your own log4j.xml file (if you use log4j do your logging job) specifying the location you want your log

RE: GZIP Comrpession Problem

2009-05-01 Thread Glen Goodwin
So this implies that 5.5.27 has this fixed and 6.0.18 does not. I'll make a note of that. Thanks, Glen -Original Message- From: George Sexton [mailto:geor...@mhsoftware.com] Sent: Friday, May 01, 2009 2:45 PM To: Tomcat Users List Subject: Re: GZIP Comrpession Problem FYI, I tested

Re: Servlets that use response.getOutputStream(): do they play nicely with Tomcat's error pages?

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, On 4/29/2009 10:41 PM, Dave Cherkassky wrote: 1) I agree with you for includes and forwards, but for errors? I would have thought that the definition of error is that something went wrong, and Tomcat should start from scratch and just

Re: jk-to-tomcat multiple retries

2009-05-01 Thread Dmitry Beransky
If you suspect a bug in Tomcat, wouldn't upgrading to a version of Tomcat where that bug had potentially been fixed be a good strategy? True, but the problem is that I don't have enough data to make a decision. For all I know, there might be something really bad in our code that's triggering

Re: Servlets that use response.getOutputStream(): do they play nicely with Tomcat's error pages?

2009-05-01 Thread Mark Thomas
Folks, As I replied a couple of days ago. This is almost certainly a known Tomcat issue. http://markmail.org/message/dmsf24ppd2nopvnz Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

Re: GZIP Comrpession Problem

2009-05-01 Thread Hassan Schroeder
On Fri, May 1, 2009 at 12:57 PM, Glen Goodwin g...@arei.net wrote: So this implies that 5.5.27 has this fixed and 6.0.18 does not. I'll make a note of that. ripple:/tmp$ curl -s -o nul: -H Pragma: no-cache -H Cache-Control: no-cache -w Bytes Uncompressed ... %{size_download}\n

Re: GZIP Comrpession Problem

2009-05-01 Thread Mark Thomas
Hassan Schroeder wrote: On Fri, May 1, 2009 at 12:57 PM, Glen Goodwin g...@arei.net wrote: So this implies that 5.5.27 has this fixed and 6.0.18 does not. I'll make a note of that. ripple:/tmp$ curl -s -o nul: -H Pragma: no-cache -H Cache-Control: no-cache -w Bytes Uncompressed ...

Re: jk-to-tomcat multiple retries

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dmitry, On 5/1/2009 4:18 PM, Dmitry Beransky wrote: Hence, I'm asking here for help diagnosing the problem, but if everyone else is as stumped as I am then, sure, the next (reluctant) step would be to upgrade Tomcat in hope that it will go away

Re: Re: Servlets that use response.getOutputStream(): do they play nicely with Tomcat's error pages?

2009-05-01 Thread Dave Cherkassky
Chris, Your interpretation is correct. I am not having any troubles with headers. So I think that this line of investigation is a dead end. Thanks, -- Dave Cherkassky VP of Software Development DJiNN Software Inc. 416.504.1354 Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE-

IIS 6 Tomcat Connector isapi_redirect-1.2.28.dll not being called 404 2 1260 error

2009-05-01 Thread FOREBACK Dianne
Dear User Group: I cannot get IIS 6 to use the Tomcat connector to redirect requests. I followed the directions in http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html configuring the registry by hand. This should be a relatively simple task but I am obviously overlooking

jsvc output to syslog patch..anybody got the current one?

2009-05-01 Thread Anthony J. Biacco
Anybody got the patch for the tomcat 6.0.18 version of jsvc that lets it log to syslog? I found a couple patches, but they were all either for non-current versions of jsvc or the patches were formatted all wrong on the web. Thanx, -Tony --- Manager, IT Operations Format