AccessLogValve pattern (timestamp, bytes sent and time taken)

2011-02-17 Thread ??G??S ???O???S
Tomcat 5.5 or 6.0 Win XP or Vista (32) I've read the configuration (http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html) and the api (http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html) but there are some details that are not specified

Re: 500 Internal Server Error after 5 minutes

2011-02-17 Thread Uma Maheswara Rao M
Just now sent mail to check with this setting. Will let you the status. On Thu, Feb 17, 2011 at 5:25 PM, André Warnier wrote: > Addendum : > The fact that I was willing to bet on it, does not mean that this /is/ the > problem. > You should really look first-hand at what happens at the customer s

Re: Order of webapps startup

2011-02-17 Thread André Warnier
Mark Thomas wrote: On 17/02/2011 22:12, Mark Thomas wrote: The one way you can control this is define the Contexts in server.xml. They will be started in the order they appear in the file. Forgot to mention the caveat. It works like this at the moment. There is no guarantee it will continue to

Re: 500 Internal Server Error after 5 minutes

2011-02-17 Thread André Warnier
Addendum : The fact that I was willing to bet on it, does not mean that this /is/ the problem. You should really look first-hand at what happens at the customer side. If you are not seeing that problem locally, but the customer is seeing it, then it may also be some intermediate agent which is i

Re: Order of webapps startup

2011-02-17 Thread Mark Thomas
On 17/02/2011 22:12, Mark Thomas wrote: > The one way you can control this is define the Contexts in server.xml. > They will be started in the order they appear in the file. Forgot to mention the caveat. It works like this at the moment. There is no guarantee it will continue to work like this. M

Re: 500 Internal Server Error after 5 minutes

2011-02-17 Thread Uma Maheswara Rao M
Thanks André Warnier On Thu, Feb 17, 2011 at 5:11 PM, André Warnier wrote: > Uma Maheswara Rao M wrote: > >> Hi André Warnier, >> >> Is there any way we can control the browser timeout? >> > > At the browser level, none that I know of. > But even if there was one, there is a basic principle on t

Re: Order of webapps startup

2011-02-17 Thread Mark Thomas
On 17/02/2011 21:38, Srikanth Konjarla wrote: > As per the Wiki at http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q27 > > --- > What order do webapps start (or how can I change startup order)? > > There is no expected startup order. Neither the Servlet spec nor Tomcat > define one. You can't rel

Re: 500 Internal Server Error after 5 minutes

2011-02-17 Thread André Warnier
Uma Maheswara Rao M wrote: Hi André Warnier, Is there any way we can control the browser timeout? At the browser level, none that I know of. But even if there was one, there is a basic principle on the WWW : the browser is under control of the user, so anything that you would do, the users ca

Order of webapps startup

2011-02-17 Thread Srikanth Konjarla
As per the Wiki at http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q27 --- What order do webapps start (or how can I change startup order)? There is no expected startup order. Neither the Servlet spec nor Tomcat define one. You can't rely on the apps starting in any particular order. --- Wonderi

Issue with JNDI datasources in Tomcat 6

2011-02-17 Thread pablo.a.saave...@gmail.com
Hi, I'm trying to use JNDI datasources in Tomcat 6, using global naming resources. My setup is identical to this one: http://pro-programmers.blogspot.com/2008/07/spring-datasource-jndi-lookup-from.html But I keep getting null when doing the lookup. I debugged the code a little and the problem se

Re: 500 Internal Server Error after 5 minutes

2011-02-17 Thread Uma Maheswara Rao M
Hi André Warnier, Is there any way we can control the browser timeout? Thanks Mahesh On Thu, Feb 17, 2011 at 2:28 PM, André Warnier wrote: > Uma Maheswara Rao M wrote: > >> Hi , >> >> Need help in resolving below issue. We are requesting a servlet and that >> servlet will run for 20 min to pro

Re: requests die with a stack overflow

2011-02-17 Thread Denis Laroche
That "forwarding to itself" behavior has to be triggered under special circumstances because the application can work ok for long periods of time. But you're probably pointing me in the right direction because I have a base action class from which all other actions derive and in the base there is c

Re: Integrating Tomcat with Apache/IIS

2011-02-17 Thread Konstantin Kolinko
> I was searching through Google, but I'm guessing I was either using the wrong > search term or it wasn't indexed. It might be useful to know that the archives of this mailing list are mentioned at http://tomcat.apache.org/lists.html#tomcat-users It is usually easier to search an archive direct

RE: Updating Tomcate Windows Service

2011-02-17 Thread Caldarale, Charles R
> From: spr...@gmx.eu [mailto:spr...@gmx.eu] > Subject: RE: Updating Tomcate Windows Service > I will save my conf dir and wars, reinstall tomcat and then copy the > conf and wars back to tomcat (and pray that server.xml & Co are still > compatible :)). Bad idea. Go through the configs and merg

Re: JVM crash tomcat

2011-02-17 Thread Mark Thomas
On 17/02/2011 19:28, Odilo Schwade Junior wrote: > Hi all, we are using tomcat with Railo CFML engine and we made a little > upgrade on our system that is Crashing Tomcat, we don't know why 'cos it's a > very simple code. Did you read the crash message? It really couldn't be any clearer: > # If y

RE: Updating Tomcate Windows Service

2011-02-17 Thread spring
> > I have a tomcat 7.0.2 service under W2K8 64bit. I want to > update it to > > 7.0.8. Can I just run the service installer for 7.0.8 again > or will this > > reset my current configuration? > > https://issues.apache.org/bugzilla/show_bug.cgi?id=10021 > It will reset your configuration. OK, s

Re: 500 Internal Server Error after 5 minutes

2011-02-17 Thread André Warnier
Uma Maheswara Rao M wrote: Hi , Need help in resolving below issue. We are requesting a servlet and that servlet will run for 20 min to provide the information, meanwhile exactly after 5 minutes we are getting "Internal Server Error". I would bet that this is not really the error that the use

JVM crash tomcat

2011-02-17 Thread Odilo Schwade Junior
Hi all, we are using tomcat with Railo CFML engine and we made a little upgrade on our system that is Crashing Tomcat, we don't know why 'cos it's a very simple code. The upgrade was just add one select field to the page, and then some SQL filter, trust me we analyse the code many times and we bel

RE: 500 Internal Server Error after 5 minutes

2011-02-17 Thread Joseph Morgan
Sounds like you are looking at the 900lb Gorilla. Is the servlet is capturing exceptions and either not logging them or ignoring them? If the servlet is yours, instrument the code and follow it within the logs. If the servlet is not yours, then appeal to those responsible for it. Is it loading t

RE: Integrating Tomcat with Apache/IIS

2011-02-17 Thread Visuvasam, Rohan
I was searching through Google, but I'm guessing I was either using the wrong search term or it wasn't indexed. Either way that discussion was scary, very informative, and very scary. Thanks much, and for the sake of not starting another religious war, I humbly withdraw my question. - Rohan

RE: requests die with a stack overflow

2011-02-17 Thread Caldarale, Charles R
> From: Denis Laroche [mailto:dlaroc...@gmail.com] > Subject: Re: requests die with a stack overflow > I have no such thing as filters in my configuration. No, but you have struts rules configured that are effectively the same thing. Something in your struts config keeps forwarding to itself.

Re: requests die with a stack overflow

2011-02-17 Thread Denis Laroche
I have no such thing as filters in my configuration. I reproduced the web descriptor file below. All the interactions between the browser and the server are done with Ajax requests that execute Struts actions. I'm using the Dojo toolkit for the JavaScript running in the browser. The application on

Re: 500 Internal Server Error after 5 minutes

2011-02-17 Thread Uma Maheswara Rao M
No specific information in the log. On Thu, Feb 17, 2011 at 1:10 PM, Joseph Morgan < joseph.mor...@ignitesales.com> wrote: > What do the client's server's Tomcat logs for that app show? > > -Original Message- > From: Uma Maheswara Rao M [mailto:mail2m...@gmail.com] > Sent: Thursday, Febr

Re: Integrating Tomcat with Apache/IIS

2011-02-17 Thread Konstantin Kolinko
2011/2/17 Visuvasam, Rohan : > Hi all, > > I'm working on a project to deploy Tomcat with our software, and my primary > responsibility is the installer/installation process.  I've found a lot of > good documentation on how to install Tomcat, and how to link it to either > Apache or IIS.  I can'

Re: Updating Tomcate Windows Service

2011-02-17 Thread Konstantin Kolinko
2011/2/17 : > I have a tomcat 7.0.2 service under W2K8 64bit. I want to update it to > 7.0.8. Can I just run the service installer for 7.0.8 again or will this > reset my current configuration? https://issues.apache.org/bugzilla/show_bug.cgi?id=10021 It will reset your configuration. Best regard

Re: Advantage of using HTTP NIO Connector

2011-02-17 Thread Mark Thomas
On 17/02/2011 16:09, Filip Hanik - Dev Lists wrote: > On 02/17/2011 08:11 AM, Mark Thomas wrote: >> On 17/02/2011 14:56, Afkham Azeez wrote: >> >>> Hi folks, >>> What is the advantage of using this connector as opposed to the >>> default one? >>> In which scenarios would we tend to use the defau

Re: requests die with a stack overflow

2011-02-17 Thread Konstantin Kolinko
2011/2/17 Denis Laroche : > Hello all, > > I also posted this message to the Struts mailing list, because I'm not sure > where the problem is. The version of Tomcat is 6.0.29, and the JVM is > 1.6.0_17-b17 running on a Linux server, kernel version 2.6.18. The version > of Struts is 1.3.10. > > Once

RE: 500 Internal Server Error after 5 minutes

2011-02-17 Thread Joseph Morgan
What do the client's server's Tomcat logs for that app show? -Original Message- From: Uma Maheswara Rao M [mailto:mail2m...@gmail.com] Sent: Thursday, February 17, 2011 11:40 AM To: users@tomcat.apache.org Subject: 500 Internal Server Error after 5 minutes Hi , Need help in resolving be

Integrating Tomcat with Apache/IIS

2011-02-17 Thread Visuvasam, Rohan
Hi all, I'm working on a project to deploy Tomcat with our software, and my primary responsibility is the installer/installation process.  I've found a lot of good documentation on how to install Tomcat, and how to link it to either Apache or IIS.  I can't seem to find any documentation on _why

RE: 500 Internal Server Error after 5 minutes

2011-02-17 Thread Martin Gainty
we need more information to assist with your problem: clients name: clients billing address Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene

500 Internal Server Error after 5 minutes

2011-02-17 Thread Uma Maheswara Rao M
Hi , Need help in resolving below issue. We are requesting a servlet and that servlet will run for 20 min to provide the information, meanwhile exactly after 5 minutes we are getting "Internal Server Error". We are using apache-tomcat-6.0.26. Is there any setting which can cause this error? Is the

Updating Tomcate Windows Service

2011-02-17 Thread spring
Hi, I have a tomcat 7.0.2 service under W2K8 64bit. I want to update it to 7.0.8. Can I just run the service installer for 7.0.8 again or will this reset my current configuration? Thank you - To unsubscribe, e-mail: users-unsub

requests die with a stack overflow

2011-02-17 Thread Denis Laroche
Hello all, I also posted this message to the Struts mailing list, because I'm not sure where the problem is. The version of Tomcat is 6.0.29, and the JVM is 1.6.0_17-b17 running on a Linux server, kernel version 2.6.18. The version of Struts is 1.3.10. Once in a while, the application starts beha

Re: Advantage of using HTTP NIO Connector

2011-02-17 Thread Filip Hanik - Dev Lists
On 02/17/2011 08:11 AM, Mark Thomas wrote: On 17/02/2011 14:56, Afkham Azeez wrote: Hi folks, What is the advantage of using this connector as opposed to the default one? In which scenarios would we tend to use the default connector, and in which scenarios will it be more appropriate to use

Re: CRLF in HTTP headers

2011-02-17 Thread Adrian Fretwell
Mark, Thank you for your feedback, I have just confirmed CRLF is actually present by using http://www.askapache.com/online-tools/http-headers-tool/ When I grab the headers myself in a hex dump, only LF is present. Something must be stripping the CR out. Thank you for the confirmation. Kind r

Re: Advantage of using HTTP NIO Connector

2011-02-17 Thread Afkham Azeez
Thanks Mark. On Thu, Feb 17, 2011 at 8:41 PM, Mark Thomas wrote: > On 17/02/2011 14:56, Afkham Azeez wrote: > > Hi folks, > > What is the advantage of using this connector as opposed to the default > one? > > In which scenarios would we tend to use the default connector, and in > which > > scena

Re: Advantage of using HTTP NIO Connector

2011-02-17 Thread Mark Thomas
On 17/02/2011 14:56, Afkham Azeez wrote: > Hi folks, > What is the advantage of using this connector as opposed to the default one? > In which scenarios would we tend to use the default connector, and in which > scenarios will it be more appropriate to use the NIO connector? NIO and APR use one th

Re: CRLF in HTTP headers

2011-02-17 Thread Mark Thomas
On 17/02/2011 14:38, Adrian Fretwell wrote: > Tomcat 6.0.32 > Hello, > I am struggling a little with what may be a simple issue: > > When I send a request to my installation of Tomcat (including any of the > example servlets) the HTTP response headers returned are separated by > only a line feed (

Advantage of using HTTP NIO Connector

2011-02-17 Thread Afkham Azeez
Hi folks, What is the advantage of using this connector as opposed to the default one? In which scenarios would we tend to use the default connector, and in which scenarios will it be more appropriate to use the NIO connector? Thanks Azeez * *

CRLF in HTTP headers

2011-02-17 Thread Adrian Fretwell
Tomcat 6.0.32 Hello, I am struggling a little with what may be a simple issue: When I send a request to my installation of Tomcat (including any of the example servlets) the HTTP response headers returned are separated by only a line feed (0A). I have a Hermes2 application running under tomcat

Re: Configuration of tomcat to use 64 bit jvm on 64 bit solaris

2011-02-17 Thread André Warnier
Amol Puglia wrote: Hello David, Thanks for the response. The jvm is already installed but when i checked what bit jvm is using from the application, it is giving me following information. sun.arch.data.model 32 Let me know what shall i do for tomcat to use 64 bit jvm. http://faculty.wash

RE: Configuration of tomcat to use 64 bit jvm on 64 bit solaris

2011-02-17 Thread Caldarale, Charles R
> From: Amol Puglia [mailto:amolcpug...@yahoo.com] > Subject: Re: Configuration of tomcat to use 64 bit jvm on 64 bit solaris > The jvm is already installed but when i checked what bit jvm is > using from the application, it is giving me following information. > sun.arch.data.model 32 > Let me

Re: Configuration of tomcat to use 64 bit jvm on 64 bit solaris

2011-02-17 Thread Amol Puglia
Hello David, Thanks for the response. The jvm is already  installed but when i checked what bit jvm is using from the application, it is giving me following information. sun.arch.data.model 32 Let me know what shall i do for tomcat to use 64 bit jvm. --- On Thu, 2/17/11, David kerber wrote:

RE: Configuration of tomcat to use 64 bit jvm on 64 bit solaris

2011-02-17 Thread Caldarale, Charles R
> From: Amol Puglia [mailto:amolcpug...@yahoo.com] > Subject: Configuration of tomcat to use 64 bit jvm on 64 bit solaris > Kindly let me know how to configure tomcat to use 64 > bit jvm on 64 bit solaris machine. 1) Download. 2) Unpack. 3) Run. Seriously, that's all you have to do. Do you

Re: Configuration of tomcat to use 64 bit jvm on 64 bit solaris

2011-02-17 Thread David kerber
On 2/17/2011 8:37 AM, Amol Puglia wrote: Hello Team, Kindly let me know how to configure tomcat to use 64 bit jvm on 64 bit solaris machine. Thanks in advance. Amol If you have the jvm already installed, TC should use it automatically. --

Configuration of tomcat to use 64 bit jvm on 64 bit solaris

2011-02-17 Thread Amol Puglia
Hello Team, Kindly let me know how to configure tomcat to use 64 bit jvm on 64 bit solaris machine. Thanks in advance. Amol

Authentication in httpd 2.2.3 is ok, authorization in Tomcat 6.0.3 fails

2011-02-17 Thread adi.buen...@bluewin.ch
I can authenticate the user in Apchae httpd, but Tomcat doesn't use the Remote_User for authorization checks. I've been Google-ing since days, but without success. Verification I have done -- If I run the JSP example 'Snoop' (examples/jsp/snp/snoop.jsp), I do get the remote user ('testu

Re: error when tomcat is shutting down

2011-02-17 Thread Konstantin Kolinko
2011/2/17 James Godrej : > /opt/apache-tomcat-5.5.31/bin/bootstrap.jar > 2011-02-17 12:50:38,919 ERROR main org.apache.catalina.startup.Catalina - > Catalina.stop: > > java.net.ConnectException: Connection refused >    at java.net.PlainSocketImpl.socketConnect(Native Method) >  I am getting above

Re: Reading a file in tomcathome/conf folder

2011-02-17 Thread Konstantin Kolinko
2011/2/17 Captain Cid : > > Yes ..got your point...using spring its easy though > > My only question is , > > can it be accessed using classloader and getResource() > Why? Just use: new FileInputStream(new File(System.getProperty("catalina.base"), "conf/yourfile.properties")); Best regards, Kons

Re: Reading a file in tomcathome/conf folder

2011-02-17 Thread Captain Cid
Yes ..got your point...using spring its easy though My only question is , can it be accessed using classloader and getResource() Brett Delle Grazie-3 wrote: > > Hi, > > On 17 February 2011 08:36, Captain Cid wrote: >> >> I wish to keep configuration property file outside my war. Suppose i k

Re: huge "info" messages about mod_jk

2011-02-17 Thread Yu Kikuchi
Mr. Turk > 1. connectionTimeout will cause the socket to be closed after 20s > if no AJP requests come in within that time. > So you will have those [info] messages. the [info] messages reduced by increasing the value of connectionTimeout. Thank you so much! I'm going to try to change the value

Re: Reading a file in tomcathome/conf folder

2011-02-17 Thread Brett Delle Grazie
Hi, On 17 February 2011 08:36, Captain Cid wrote: > > I wish to keep configuration property file outside my war. Suppose i keep it > tomcathome/conf/myfile.properties > How can I read it using classloader from my webapp application code. I am > not able to access it. > > I tried using this.getCla

Reading a file in tomcathome/conf folder

2011-02-17 Thread Captain Cid
I wish to keep configuration property file outside my war. Suppose i keep it tomcathome/conf/myfile.properties How can I read it using classloader from my webapp application code. I am not able to access it. I tried using this.getClass().getClassLoader() or even this.getClass().getClassLoader().

Re: huge "info" messages about mod_jk

2011-02-17 Thread Mladen Turk
On 02/17/2011 04:26 AM, Yu Kikuchi wrote: [httpd.conf](preforkMPM) worker.worker01.connection_pool_timeout=20 No need for that if running prefork mpm. 1. connectionTimeout will cause the socket to be closed after 20s if no AJP requests come in within that time. So you will hav