Tomcat 6.0.18 access files case-insensitive

2009-06-10 Thread Alexander Diedler
Hello, We have an Application based on IIS 6.0 and Tomcat 6.0.18. In this Application will be opened a PDF (href=start.PDF). In this PDF are many links to other documents, that will be opened in the browser. (KapA.PDF, KapB.PDF). Now the distributor deliver updatefiles with changing extensions or

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Lyallex
2009/6/10 Jonathan Mast : > Ok, so this approach of writing to disk after reading the database is not > working at all.  I thought you were saying previously that was working up to > a point, but then failing for new products. > > I know its completely possible to add images the root of a Web-App f

AW: URL Auth Apache 2.2.11 + Tomcat 6.0.16

2009-06-10 Thread Alexander Diedler
Hi, This task has been fixed. The Java class was very static and we re-design the auth method. Thanks for your help. -Ursprüngliche Nachricht- Von: Rainer Jung [mailto:rainer.j...@kippdata.de] Gesendet: Dienstag, 9. Juni 2009 11:05 An: Tomcat Users List Betreff: Re: URL Auth Apache 2.2.11

Re: Caching of static content

2009-06-10 Thread jraanamo
Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > Why assume non-ROOT deployment? It's just as easy to use > ServletContext.getContextPath() than it is to arbitrarily chop > characters out of a URI. > > > 1) This is just a mock Filter to reproduce the

Dynamic Resources: getRealPath() returns the 'wrong' path

2009-06-10 Thread Lyallex
Hi apache-tomcat-6.0.16 jdk1.6.0_03 Dev box : Windows Deployment box: Linux I have my server installed at C:\servers\tomcat\apache-tomcat-6.0.16\ My application is installed at C:\servers\tomcat\apache-tomcat-6.0.16\webapps\ROOT I have an image cache available at C:\servers\tomcat\apache-t

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Lyallex
Christopher > Multiple posts to this list seem to contradict Hassan's assertion that > this should work: the DefaultServlet appears to ignore files that are > created post deployment (or at least, post directory-read). This is exactly what is happening, the DefautServlet Ignores any file that app

RE: Using tomcat as standalone

2009-06-10 Thread Caldarale, Charles R
> From: balachandra maddina [mailto:chandu2...@gmail.com] > Subject: Using tomcat as standalone > > Im wondering what are the performance implications of using tomcat as > standalone? many suggested to use the tomcat along with IIS. but im not > sure why is this required? Front-ending Tomcat with

Using tomcat as standalone

2009-06-10 Thread balachandra maddina
Hi There, Im wondering what are the performance implications of using tomcat as standalone? many suggested to use the tomcat along with IIS. but im not sure why is this required? could somebody help me on this please. Thank you, bala.

RE: Stable tomcat release

2009-06-10 Thread Caldarale, Charles R
> From: Mohit Anchlia [mailto:mohitanch...@gmail.com] > Subject: Stable tomcat release > > We are currently using tomcat 6. How do I determine the most recent > stable release of tomcat. I am looking at upgrading our tomcat with > most recent stable release. Well, let's take a peek at the Tomcat

Stable tomcat release

2009-06-10 Thread Mohit Anchlia
We are currently using tomcat 6. How do I determine the most recent stable release of tomcat. I am looking at upgrading our tomcat with most recent stable release. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Re: Tomcat maxThreads Issue

2009-06-10 Thread Bill Barker
"Caldarale, Charles R" wrote in message news:0aae5ab84b013e45a7b61cb66943c17228fc438...@usea-exch7.na.uis.unisys.com... >> From: Jones, Keven [mailto:keven.jo...@ncr.com] >> Subject: RE: Tomcat maxThreads Issue >> >> > enableLookups="false" protocol="AJP/1.3" redirectPort="8443" >> maxT

Re: What to upgrade?

2009-06-10 Thread David Kerber
Chetan Chheda wrote: We are going to regression test it in non - prod environments. I agree with going to the latest version, but our application is only supported on 1.4.2 So I am thinking 1.5 would be a smaller jump than 1.6. I doubt it. If it will run on 1.5 (which it most likely will), it

Re: What to upgrade?

2009-06-10 Thread David Kerber
Leon Rosenberg wrote: actually no. 1.5 added many language features. 1.6 added administration and management features (and override annotation for interfaces). And they both added big performance improvements over older ones. D --

Re: What to upgrade?

2009-06-10 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: What to upgrade? Have I qualified for a government or consultancy job yet ? Only for the not quite gone Mr Brown's cabinet... I realise a posteriori that I should have qualified the previous advice. To the

RE: What to upgrade?

2009-06-10 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: What to upgrade? > > Have I qualified for a government or consultancy job yet ? Only for the not quite gone Mr Brown's cabinet... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thu

Re: What to upgrade?

2009-06-10 Thread André Warnier
Let me add some non-technical and subjective advice. I have kind of collected the impression over time here, that going from tomcat 5.5 to 6.x introduced at least some additional issues. (This being said totally subjectively by someone who does not really know what he's talking about, but just

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lyallex, On 6/10/2009 6:27 PM, Christopher Schultz wrote: > I would recommend serving the bytes using your own servlet rather than > the DefaultServlet. That way, you free yourself from these apparent > directory-caching issues, plus you can (more) ea

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lyallex, On 6/10/2009 1:10 PM, Lyallex wrote: > http://enigmail.mozdev.org/ iEYEARECAAYFAkowMzYACgkQ9CaO5/Lv0PBFhACdFH4WalukRH68QqDgwStOM5sm 4hMAnApwfMGuF2xUuXGOw2Z/7o9WFy2X =WUup -END PGP SIGNATURE- -

Re: What to upgrade?

2009-06-10 Thread Leon Rosenberg
actually no. 1.5 added many language features. 1.6 added administration and management features (and override annotation for interfaces). The jump 1.4.2 -> 1.5 will be exactly the same as 1.4.2 - 1.6. Btw, to reply to your initial post, the memory management is really really really better in 1.5 (

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lyallex, On 6/10/2009 9:41 AM, Lyallex wrote: Fetching images from the database every time results in a clunky page load so I want to cache the images to disk the first time an item is accessed my cache manager checks the

Re: Consequences of Reusing Clustered JSESSIONID

2009-06-10 Thread Theparanoidone Theparanoidone
Hi Filip~ That is an interesting possible solution (seems easy too). I will give that a try. Thank you for the quick response. Cheers! - Original Message From: Filip Hanik - Dev Lists To: Tomcat Users List Sent: Wednesday, June 10, 2009 1:57:26 PM Subject: Re: Consequences of R

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lyallex, On 6/10/2009 9:41 AM, Lyallex wrote: > Fetching images from the database every time results in a clunky page > load so I want to cache the images to disk > the first time an item is accessed my cache manager checks the disk > cache to see if

Re: Private JVM Heap Size

2009-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 6/10/2009 3:10 AM, Peter Crowther wrote: >> From: William Biggs [mailto:kc8...@gmail.com] >> I'm looking at a new web hosting they give Private JVM Heap >> Size what is the min jvm heap size would you go with ? > > It depends entirely on yo

Re: What to upgrade?

2009-06-10 Thread Chetan Chheda
We are going to regression test it in non - prod environments. I agree with going to the latest version, but our application is only supported on 1.4.2 So I am thinking 1.5 would be a smaller jump than 1.6. Chetan From: Christopher Schultz To: Tomcat Users L

Re: Consequences of Reusing Clustered JSESSIONID

2009-06-10 Thread Filip Hanik - Dev Lists
this is because apache a2 only has routes for td201 and td202... but not td101... therefore it doesn't know how to handle td101. why don't you setup all four routes for a1 and a2. then use the mod_proxy_balancer lbset variable to set a preferred route, and problem will be solved Filip Thep

Re: What to upgrade?

2009-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 6/10/2009 4:33 PM, André Warnier wrote: > Save your old tomcat/conf files somewhere for future reference, then > install the new JVM and the new Tomcat, with the standard new conf files > for the new Tomcat. Make sure it runs with some examp

RE: What to upgrade?

2009-06-10 Thread Caldarale, Charles R
> From: Chetan Chheda [mailto:chetan_chh...@yahoo.com] > Subject: What to upgrade? > > Our management has directed us to upgrade our JRE to 1.5 from > 1.4.2 because they have "heard" that 1.5 has better memory > management features. I'll strongly reiterate what André mentioned: if you're moving u

Re: What to upgrade?

2009-06-10 Thread Jonathan Mast
I just completed (last week actually) a migration from JDK 1.4.2/Tomcat 5.5 to JDK 1.6/Tomcat 6. In terms of backward-compatibility, we had a problem with our TagLib packages. They would not compile under with whatever version of the Servlet Spec accompanies JDK 1.6. Those were the only compatib

Re: How to use a gzip javascript file in a webapp running under tomcat

2009-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bala, On 6/10/2009 8:37 AM, balachandra maddina wrote: > I'm wondering if its possible to refer [to] a javascript file something like >

Re: What to upgrade?

2009-06-10 Thread André Warnier
Chetan Chheda wrote: ... Disclaimer : The following statements are to be taken in a banking perspective (past bonuses are no guarantee for future ones); each situation is slightly different; my own Tomcat applications are not very sophisticated; my servers are not highly loaded; YMMV. Having

Re: swallowOutput and service threads

2009-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 6/9/2009 10:22 PM, Christopher Piggott wrote: > I will definitely try that. I also will consider using log4j's > rotating file appender instead of the ConsoleAppender. The reason I > didn't do this in the first place is permissions: I don'

Re: Tomcat hyperlink interpretation when including jsp file from another subdirectory

2009-06-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 6/9/2009 5:10 PM, ledbettd wrote: > Thanks for the help, Chris. The code in footer and header were just a list > of HTML hyperlink in the header file and it worked from all directories. Excellent. > So, we were hoping to

Re: What to upgrade?

2009-06-10 Thread Mark Thomas
Chetan Chheda wrote: > Our management has directed us to upgrade our JRE to 1.5 from 1.4.2 because > they have "heard" that 1.5 has better memory management features. I am doing > my due diligence to present a plan on what it will take to get us there. > > The question is how do I approach this

What to upgrade?

2009-06-10 Thread Chetan Chheda
Our management has directed us to upgrade our JRE to 1.5 from 1.4.2 because they have "heard" that 1.5 has better memory management features. I am doing my due diligence to present a plan on what it will take to get us there. The question is how do I approach this ... We have apache(2.0.59), T

Consequences of Reusing Clustered JSESSIONID

2009-06-10 Thread Theparanoidone Theparanoidone
Greetings~ I would like to reuse the JSESSIONID route betweened clustered tomcats... and I'm wondering if there are negative consequences for doing so. We have the following setup: 2 data centers... (d1 / d2) 2 apache mod_proxy_balance(ad1, ad2) 4 tomcat servers (td101, td102, td201, td2

Re: Tomcat maxThreads Issue

2009-06-10 Thread Chetan Chheda
What does your Apache access_log say at the time when tomcat threads are exhausted ? I had a very similar issue in my environment. The culprit turned out to be JkMount options. Apache was sending all requests, whether it is for static or dynamic content to tomcat. At the same time my tomcats l

RE: Tomcat maxThreads Issue

2009-06-10 Thread Caldarale, Charles R
> From: Jones, Keven [mailto:keven.jo...@ncr.com] > Subject: RE: Tomcat maxThreads Issue > > enableLookups="false" protocol="AJP/1.3" redirectPort="8443" > maxThreads="400" connectionTimeout="2"/> The syntax is ok, but I'd have to look at the code to see if connectionTimeout applie

RE: Does user's network connection speed affect "response time" loggedby AccessLogValve (i.e. "%D") ?

2009-06-10 Thread Caldarale, Charles R
> From: Pierre Goupil [mailto:goupilpie...@gmail.com] > Subject: Re: Does user's network connection speed affect "response > time" loggedby AccessLogValve (i.e. "%D") ? > > Does it mean that network connection speed effectively > affect the response time logged by the AccessLogValve ? In a word y

SV: Why do stacktraces from servlets print to stdout, when the other end up in the log4j -log file?

2009-06-10 Thread Imner, Andreas
My bad, I did not debug my servlet properly. If had done that earlier I would have seen that it was the extraction of the exception from the request object that failed. When running the webapp in Weblogic as we did earlier, the following code worked as expected and the exception was properly fe

Re: Does user's network connection speed affect "response time" loggedby AccessLogValve (i.e. "%D") ?

2009-06-10 Thread Pierre Goupil
Hello, I'm sorry but... Does it mean that network connection speed effectively affect the response time logged by the AccessLogValve ? Something is still unclear for me, I'm afraid. Regards, Pierre On Wed, Jun 10, 2009 at 7:40 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > >

RE: Tomcat maxThreads Issue

2009-06-10 Thread Jones, Keven
Does the syntax of this look correct to everyone? I have added maxThreads="400" and connectionTimeout="2"(not sure if I need the connectionTimeout) Thanks everyone -Original Message- From: Tim Funk [mailto:funk...@apache.org] Sent: Wednesday, June 10, 2009 1:02 PM To: Tomcat Use

RE: Tomcat maxThreads Issue

2009-06-10 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: Tomcat maxThreads Issue > > There has been much discussion about this of late on this mailing list; > I'll try to find some pointers for you. This is a useful reference: http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html#Firewall%20Conn

RE: Tomcat maxThreads Issue

2009-06-10 Thread Caldarale, Charles R
> From: Jones, Keven [mailto:keven.jo...@ncr.com] > Subject: RE: Tomcat maxThreads Issue > I see we have Engine set to Standalone, > And I see the Service is catalina (?) I would leave the name as Catalina (it's case sensitive), since that's what everyone expects (unless you have multiple eleme

RE: Tomcat maxThreads Issue

2009-06-10 Thread Caldarale, Charles R
> From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] > Subject: Re: Tomcat maxThreads Issue > > Add the following somewhere near the top (I place mine after all the > explanatory comments): > JAVA_OPTS=" -Xmx1024m" Again, if there's no evidence of a heap issue (and none has been presented) *

RE: Tomcat maxThreads Issue

2009-06-10 Thread Jones, Keven
Cool, Also, I'm examining my tomcat server.xml conf file for each instnace on each server. I am finding that Tomcat1 AJP connector is 8011, Tomcat2 AJP 8012, Tomcat3 AJP 8013, and Tomcat4 AJP 8014. So I will try and Add a maxThreads 600 on each of these. Thanks -Original Message- From

RE: Does user's network connection speed affect "response time" loggedby AccessLogValve (i.e. "%D") ?

2009-06-10 Thread Caldarale, Charles R
> From: Tim Funk [mailto:funk...@apache.org] > Subject: Re: Does user's network connection speed affect "response > time" loggedby AccessLogValve (i.e. "%D") ? > > AccessLogValve cannot log until the request is "done". Done meaning > that the Servlet is done writing its content. There's also the

Re: Tomcat maxThreads Issue

2009-06-10 Thread Jonathan Mast
Well I'm not sure how to check the current memory settings but I sure know how to adjust them :) Presuming that you downloaded Tomcat directly and installed manually: open "$TOMCAT/bin/catalina.sh" Add the following somewhere near the top (I place mine after all the explanatory comments): JAVA_OP

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Hassan Schroeder
On Wed, Jun 10, 2009 at 10:10 AM, Lyallex wrote: > When I upload a new product I store the image data and the text in the > database. I did this to try and separate the data from the application >  with the intention of eventually having the data reside on a separate > device optimised for serving

RE: Tomcat maxThreads Issue

2009-06-10 Thread Caldarale, Charles R
> From: Jones, Keven [mailto:keven.jo...@ncr.com] > Subject: RE: Tomcat maxThreads Issue > > I am going to attempt to set the maxThreads on 8011 > to 600 and hope it helps. It will likely only postpone the problem. > Yes, there is a firewall between the web sever and the > app(tomcat)/db(mysql)

Re: Tomcat maxThreads Issue

2009-06-10 Thread Tim Funk
If your not scared of the performance penalty (which these days isn't scary unless you really have high load) - try adding this to your apache config - it will end the connection between apache and tomcat after each request. This virtually eliminates the chance of a firewall dropping connection

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Tim Funk
Odd Personally - I would do the following: Make all calls to the servlet and the servlet does this: 1) Sanity check the incoming path 2) Check for the existence of the image (using ServletContext.getResource(path) 3) If not exists - load the image from the db and store to disk 4) forward to i

Re: tomcat6.0.18 service unable to start

2009-06-10 Thread André Warnier
Steve Ochani wrote: ... my process monitor log at http://www.sendspace.com/file/t0tahr Not an answer to the problem, but the link you provide requires a signup, which many people will not want to do. So, basically, we can't Not really, scroll down and click the link to download, ignore the

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Jonathan Mast
Ok, so this approach of writing to disk after reading the database is not working at all. I thought you were saying previously that was working up to a point, but then failing for new products. I know its completely possible to add images the root of a Web-App folder after deployment and have Tom

RE: Tomcat maxThreads Issue

2009-06-10 Thread Jones, Keven
Thank you Tim I am going to attempt to set the maxThreads on 8011 to 600 and hope it helps. The config is 1 linux apache2 server with 4 linux tomcat servers and each tomcat server has 4 sepearte tomcat instances. So we have a total of 16 tomcat instances across 4 servers. Yes, there is a firew

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Lyallex
Hi I'll try to explain in as few words as possible. When I upload a new product I store the image data and the text in the database. I did this to try and separate the data from the application with the intention of eventually having the data reside on a separate device optimised for serving dat

RE: Tomcat maxThreads Issue

2009-06-10 Thread Jones, Keven
I did a grep for heap in catalina.out but do not see any out of memory entries. How do I check the default JVM memory setting and how do I adjust it? Thx -Original Message- From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] Sent: Wednesday, June 10, 2009 1:04 PM To: Tomcat Users Li

Re: Does user's network connection speed affect "response time" logged by AccessLogValve (i.e. "%D") ?

2009-06-10 Thread Tim Funk
AccessLogValve cannot log until the request is "done". Done meaning that the Servlet is done writing its content. So AccessLogValve can execute once the Servlet is done writing. It may (or may not) mean the client has yet received all the content since the OS might do some buffering. The outpu

Re: Tomcat maxThreads Issue

2009-06-10 Thread Jonathan Mast
I encountered a similar issue of numerous Httpd processes spawning b/c of Tomcat. The issue for me was that Tomcat was running out of memory, and Httpd for some reason thought spawning a bunch a threads would help ;) Do you know how much memory these instances of Tomcat are using? The default JV

Re: Tomcat maxThreads Issue

2009-06-10 Thread Tim Funk
Looking at the history of the thread - here are some guesses You have a connector on port 81 (http) and a connector on 8011 (ajp) and commented out connector for 443. The port 81 connector and commented out connector are set to 600 - which means absolutely nothing if apache is talking to

Does user's network connection speed affect "response time" logged by AccessLogValve (i.e. "%D") ?

2009-06-10 Thread William Milbratz
Hi all, Pardon me if this seems an ignorant question. I’ve recently discovered the %D option in the tomcat AccessLogValve to record response times on the “server side”. I wanted to doublecheck an issue: does the user’s network connection speed affect the time recorded by the AccessLogValve.

RE: Tomcat maxThreads Issue

2009-06-10 Thread Peter Crowther
OK, so that's a JRockit JVM, not a Sun JVM. Remind me not to point you at any more Sun documentation! As a rough look at that, there are a few threads in the HTTP connector thread pool, a bunch of threads reading data from JK connections, and one or two in your app code. I've never looked at

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Jonathan Mast
So you are actually storing the image data in the database, as opposed to the filepath? interesting... So your webapp accesses the image data as needed and writes it to imagecache dir? Is this feature not working? i don't understand what exactly the issue is that you are having. please explain.

RE: Tomcat maxThreads Issue

2009-06-10 Thread Jones, Keven
FYI, I'm just the linux admin as the "applicatons" group/developer and coder is not making any headway into resolving this. This is a mobility application (ie. Mobile banking, so you go to your iphone and go to your bank.mobi..)not that it matter but Ok, So yesterday I did perform a kill -3

RE: Tomcat maxThreads Issue

2009-06-10 Thread Peter Crowther
> From: Jones, Keven [mailto:keven.jo...@ncr.com] > How do I > > A. get thread dumps when the processes are dying The top of http://java.sun.com/developer/technicalArticles/Programming/Stacktrace/ is good general reading. kill -QUIT If ps is confused by all the threads, depending on your Java

RE: Tomcat maxThreads Issue

2009-06-10 Thread Jones, Keven
I don't have any tomcat knowledge. Thank you for the reply. How do I A. get thread dumps when the processes are dying And B. You mentioned the engine and service name. I see we have Engine set to Standalone, And I see the Service is catalina (?) which should I adjust? Thx again -Original

RE: Tomcat maxThreads Issue

2009-06-10 Thread Caldarale, Charles R
> From: Jones, Keven [mailto:keven.jo...@ncr.com] > Subject: RE: Tomcat maxThreads Issue > > > enableLookups="false" protocol="AJP/1.3" redirectPort="8443" /> This is the connector Mark was referring to (he should have said AJP, not APR). Since you have no maxThreads attribute

RE: Tomcat maxThreads Issue

2009-06-10 Thread Jones, Keven
Sorry, here is the complete server.xml file: -Original Message- From: Peter

Re: tomcat6.0.18 service unable to start

2009-06-10 Thread Steve Ochani
Send reply to: Tomcat Users List Date sent: Wed, 10 Jun 2009 10:32:27 +0200 From: André Warnier Send reply to: a...@ice-sa.com To: Tomcat Users List Subject:Re: tomcat6.0.18 service unable to start > teoh wrote

RE: Tomcat maxThreads Issue

2009-06-10 Thread Peter Crowther
> From: Jones, Keven [mailto:keven.jo...@ncr.com] > Here is the complete config file. Thanks for the quick reply. The list strips attachments - please paste inline. - Peter - To unsubscribe, e-mail: users-unsubs

RE: Tomcat maxThreads Issue

2009-06-10 Thread Jones, Keven
Here is the complete config file. Thanks for the quick reply. -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Wednesday, June 10, 2009 11:14 AM To: Tomcat Users List Subject: Re: Tomcat maxThreads Issue Jones, Keven wrote: > Hello, > > I have Tomcat (can't figure

Re: Tomcat maxThreads Issue

2009-06-10 Thread Mark Thomas
Jones, Keven wrote: > Hello, > > I have Tomcat (can't figure out what version as the version.sh script is > giving all kinds of errors) running on separate Linux servers. So an overview > of my config is > 1 web server, 4 app servers (tomcat), and 1 db server. > > We were seeing an increase in

Tomcat maxThreads Issue

2009-06-10 Thread Jones, Keven
Hello, I have Tomcat (can't figure out what version as the version.sh script is giving all kinds of errors) running on separate Linux servers. So an overview of my config is 1 web server, 4 app servers (tomcat), and 1 db server. We were seeing an increase in the httpd processes on the web serve

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Bap
Thanks again Rainer, Your seccond two points were covered in my initial mail containing the test code I am pretty sure that the issue is with the shell, and have been using the code below to test all sorts of combinations of values for OPTS - the only way I can get the arg to print on o

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Bap
Hi André, Now I understand the issue regarding the -jdpa option. I had not even considerred that one - if set, then CATALINA_OPTS would require 2 levels of escape, and, if not set, just one! I have only been looking at the "start" block as called by startup.sh without using -security ex

Re: setenv.sh - how to set system properties to values containingspaces

2009-06-10 Thread Bap
Thank you, Unfortunately I think I will have to go with this suggestion, setenv.sh does not look like it will bear fruit. Thanks again, Bap. Quoting Rainer Jung : On 10.06.2009 15:09, Bap wrote: Hi André, The solution you have suggested just introduces a new variable, but with exactly th

RE: custom header

2009-06-10 Thread Anthony J. Biacco
It's the latter. I'm trying to avoid more than one war file across multiple instances. I was hoping the urlrewritefilter had a global config, something I could put in the tomcat conf dir, but couldn't find such a thing. I'll go over to their m-list, as that'll be more appropriate now I think. Tha

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Rainer Jung
On 10.06.2009 15:47, André Warnier wrote: > Sorry, I mistook "CATALINA_OPTS" for "JAVA_OPTS", > but > > Bap wrote: >> Hi André, >> >> The solution you have suggested just introduces a new variable, but >> with exactly the same characteristics of the existing CATALINA_OPTS >> variable (unless I am

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread André Warnier
Sorry, I mistook "CATALINA_OPTS" for "JAVA_OPTS", but Bap wrote: Hi André, The solution you have suggested just introduces a new variable, but with exactly the same characteristics of the existing CATALINA_OPTS variable (unless I am missing something.) Say that, originally in setenv.sh, you

Re: Apache Tomcat connection question

2009-06-10 Thread Rainer Jung
On 10.06.2009 15:42, R Ravichandran wrote: > Rainer, > Here is my problem. I have a host with one IP address mapped to two domain > names, let us say www.app1.com and www.app2.com served by two web apps > running on Tomcat say webapp1 and webapp2. > > I have Apache Tomcat config. setup to forward

Re: setenv.sh - how to set system properties to values containingspaces

2009-06-10 Thread Rainer Jung
On 10.06.2009 15:09, Bap wrote: > Hi André, > > The solution you have suggested just introduces a new variable, but with > exactly the same characteristics of the existing CATALINA_OPTS variable > (unless I am missing something.) > > The issue is, that even when the CATALINA_OPTS value looks like

Re: Apache Tomcat connection question

2009-06-10 Thread R Ravichandran
Rainer, Here is my problem. I have a host with one IP address mapped to two domain names, let us say www.app1.com and www.app2.com served by two web apps running on Tomcat say webapp1 and webapp2. I have Apache Tomcat config. setup to forward any requests coming for any of these two domain names t

Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Lyallex
apache-tomcat-6.0.16 jdk1.6.0_03 Dev box : Windows Deployment box: Linux Hi I've read some other posts that seem to be asking similar questions but I can't find the answer so far. maybe someone here would be kind enough to give me a hint I have a retail application that stores the product image

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Bap
Hi André, The solution you have suggested just introduces a new variable, but with exactly the same characteristics of the existing CATALINA_OPTS variable (unless I am missing something.) The issue is, that even when the CATALINA_OPTS value looks like it is correctly quoted (echo of CATAL

How to use a gzip javascript file in a webapp running under tomcat

2009-06-10 Thread balachandra maddina
Hi There, Im wondering if its possible to referr a javascript file something like

[SECURITY] UPDATED CVE-2008-5515 RequestDispatcher directory traversal vulnerability

2009-06-10 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Updated to add additional patches required for 5.5.x and 4.1.x CVE-2008-5515: Apache Tomcat information disclosure vulnerability Severity: Important Vendor: The Apache Software Foundation Versions Affected: Tomcat 4.1.0 to 4.1.39 Tomcat 5.5.0 to 5.

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread André Warnier
Bap wrote: ... Looks very much like the problem from hell, where the number of extra quoting levels depends on the number of times this thing ends up being interpolated. A suggestion, which involves modifying catalina.sh, but maybe with less nefarious effects if it ever gets replaced : - mo

RE: Deploying .war-file in Tomcat 5.5

2009-06-10 Thread Kai Behncke
Thank you all very much for your help. I did now like: $ wget 'http://apache.crihan.fr/dist/tomcat/tomcat-6/v6.0.20/bin/apache-tomcat-6.0.20.tar.gz' $ tar xvzf apache-tomcat-6.0.20.tar.gz $ cp MapFishPrintModule/print-servlet/target/print-servlet-1.1.war apache-tomcat-6.0.20/webapps $ cd apache-

Re: setenv.sh - how to set system properties to values containing spaces

2009-06-10 Thread Bap
Hi Chris, Thanks for the reply. Unfortunately I had already tried all of those suggestions - and more - before posting. I have just retried the three below, to double check, but unfortunately all with similar results - either looking to run ssl ssl" or ssl' I am pretty sure that the issue

Re: Why do stacktraces from servlets print to stdout, when the other end up in the log4j -log file?

2009-06-10 Thread André Warnier
Imner, Andreas wrote: ... Hi. I do not know the answer, but I am sure that if you would like some answers from the experts on this list, it would not hurt to add some information like : - the version of this Tomcat - where you got it from : is it a "standard" Tomcat from the Tomcat website, or

RE: Why do stacktraces from servlets print to stdout, when the other end up in the log4j -log file?

2009-06-10 Thread Imner, Andreas
Hi The Servlet does not propegate the error. This perticular servlet is one we use for handling "unhandled" exceptions and displaying an unexpected-error page to the user. _ From web.xml exceptionHandler se.kgk.webshop.web.general.ExceptionHandl

Re: Tomcat 6.0.20 WIndows installer - permission problems when installing servoce

2009-06-10 Thread André Warnier
Christoph Kukulies wrote: Due to the recently discovered security holes in Tomcat 6 I wanted to update to 6.0.20, downloaded the Windows installer and ran it (after stopping the running service first). During the install process I'm getting an alert box, saying: (X) Failed to install Tomcat6

Re: tomcat6.0.18 service unable to start

2009-06-10 Thread teoh
dude, found a solution. work for tomcat6 . for those people that facing similar problem. try download "javaservice.exe" put it in {tomcat}\bin directory and install .javaservice.exe -install liferaytomcat %JDK_HOME%\jre\bin\server\jvm.dll .. after that, if u trying to start tomcat and

Re: tomcat6.0.18 service unable to start

2009-06-10 Thread André Warnier
teoh wrote: my tomcat6 service unable to startup with error 0 code. i already tried put msvcr71.dll in tomcat/bin directory. still the same i'm using tomcat 6.0.18 with windows xp 32bits system in console, i able to start up the tomcat, but not on service. any suggestion what i missed out? my

Tomcat 6.0.20 WIndows installer - permission problems when installing servoce

2009-06-10 Thread Christoph Kukulies
Due to the recently discovered security holes in Tomcat 6 I wanted to update to 6.0.20, downloaded the Windows installer and ran it (after stopping the running service first). During the install process I'm getting an alert box, saying: (X) Failed to install Tomcat6 service. Check your se

Re: custom header

2009-06-10 Thread André Warnier
Anthony J. Biacco wrote: Thanx for that, that sets the header for me, but to something static. Only problem I have is I can't seem to figure out how to set it to the hostname of the tomcat server, or a tomcat variable (set from the hostname of the server - i.e. -Dmyjvmroute=`/bin/hostname -s` a

Re: Apache Tomcat connection question

2009-06-10 Thread Rainer Jung
On 10.06.2009 06:00, R Ravichandran wrote: > Hello, > > This is an urgent request. Any feedback is really appreciated. > > I have two web applications (let us call main app., and helper app.) running > on Tomcat with an Apache server in from of Tomcat. Both Apache and Tomcat > are running on the

RE: Private JVM Heap Size

2009-06-10 Thread Peter Crowther
> From: William Biggs [mailto:kc8...@gmail.com] > I'm looking at a new web hosting they give Private JVM Heap > Size what is the min jvm heap size would you go with ? It depends entirely on your application. Some apps can handle fairly high loads with under 100 Mbytes of heap; others need 2 Gbyt