stdout.log size is increasing

2007-12-10 Thread Stefano Martines
Hi All, Although the log level is low, the stdout.log size is increasing in production day by day. I want that tomcat automatically archives the stdout.log file and creates a new one once a certains size is reached. How can I do that? I want somethink like this: stdout.log 12 MB

server mapping behaviour when directory structure mirrors mappings

2007-12-10 Thread Matthew Thomas Broadhead
Recently upgraded Tomcat from version 4.1.31 to 6.0.14. In my webapp I mapped servlets to paths without extensions e.g. servlet-mapping servlet-nameSales/servlet-name url-pattern/sales/url-pattern /servlet-mapping Then in the root of the webapp there is a directory with the same

Re: Session replication problem

2007-12-10 Thread Giancarlo Frison
The problem reported below was due to a misconfiguration. In the past I disabled the session persistence uncommenting the manager row in context.xml : Manager pathname= / After session persistance's activation (commenting the row above) session replication works as expected. Giancarlo Frison

JK - welcome file displays text when mapped to servlet

2007-12-10 Thread Matthew Thomas Broadhead
Recently upgraded Tomcat from version 4.1.31 to 6.0.14. In my web.xml - index.htm is set as the welcome file - index.htm is mapped to a servlet which produces html and there is a blank index.htm in the root of the webapp. This worked fine for 4.1.31 on port 8080 and through AJP1.3 connector. On

ISAPI JK2 ran better than JK, how can that be?

2007-12-10 Thread tim.fulcher
OK, So our website keeps crashing over the past couple of weeks (usual story on this list eh?) We've been running JK isapi plugin v1.2.15 for a fair while, but the isapi redirector log always contains huge numbers of errors being thrown (see snippet below). We were getting a complete

Re: JK - welcome file displays text when mapped to servlet

2007-12-10 Thread Rainer Jung
Hi, Matthew Thomas Broadhead wrote: Recently upgraded Tomcat from version 4.1.31 to 6.0.14. In my web.xml - index.htm is set as the welcome file - index.htm is mapped to a servlet which produces html and there is a blank index.htm in the root of the webapp. This worked fine for 4.1.31 on port

Re: ISAPI JK2 ran better than JK, how can that be?

2007-12-10 Thread Rainer Jung
Hi Tim, [EMAIL PROTECTED] wrote: OK, So our website keeps crashing over the past couple of weeks (usual story on this list eh?) Not really (although a users list is always focused on problems and not on the working side of things ...) We've been running JK isapi plugin v1.2.15 for a fair

Re: ISAPI JK2 ran better than JK, how can that be?

2007-12-10 Thread Martin Gainty
Hi Tim non server products like Windows 2000 Professional or Windows XP the number of concurrent connections is limited to 10. This is discussed in Mladens article located at http://people.apache.org/~mturk/docs/article/ftwai.html M- - Original Message - From: [EMAIL PROTECTED] To:

RE: ISAPI JK2 ran better than JK, how can that be?

2007-12-10 Thread tim.fulcher
Martin Yes, I've read that article, and we're on a win2k server box. That isn't the issue I believe. thanks anyway Tim From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Mon 10/12/2007 13:28 To: Tomcat Users List Subject: Re: ISAPI JK2 ran better

RE: ISAPI JK2 ran better than JK, how can that be?

2007-12-10 Thread tim.fulcher
Hi Rainer, Thanks for the response. To cover a few points you made - - Yes, I had a hunch long running requests are a problem; because of our appliction design, some pages invoked for the first time take a while (we can't cache them all!). Is there an easy way to correlate (apart from

Re: ISAPI JK2 ran better than JK, how can that be?

2007-12-10 Thread Rainer Jung
Hi Tim, [EMAIL PROTECTED] wrote: Hi Rainer, Thanks for the response. To cover a few points you made - - Yes, I had a hunch long running requests are a problem; because of our appliction design, some pages invoked for the first time take a while (we can't cache them all!). Is there an easy

Re: How to specify windows user in runtime in tomcat?

2007-12-10 Thread Juha Laiho
nitin403 wrote: I have create a servlet which needs to read a file on a share folder. When I run tomcat service as anonymous it is not able to access read this file. But when I run tomcat service as a user who as access to this file, then it runs fine. My Question is, is it possible to

Re: rare occurrence of an Exception in Filter.doFilter() (solved)

2007-12-10 Thread Christian Aschoff
Dear list, it was in fact the 'bug' described below. (ImageOutputWriter not closed). Many thanks for the hints! Regards, Christian Aschoff Am 07.12.2007 um 22:51 schrieb Konstantin Kolinko: E.g., I have found http://issues.apache.org/bugzilla/show_bug.cgi? id=41772 --- Dipl. Ing. (FH)

Re: need help with Tomcat5.5.25 and Apache2.0.61 modJK configuration

2007-12-10 Thread Sangeeta Verma
Thanks all so much.such a simple thing i couldnt see myself. I guess I was going blind, all confused, after following steps of configuring JK on windows. On 12/7/07, Martin Gainty [EMAIL PROTECTED] wrote: change modJk=E:\apache\2.0.61\Apache2\modules\mod_jk.dll to

RE: See command-line output with startup errors in Windows

2007-12-10 Thread lightbulb432
I'm getting the output I expect if I don't comment out the first line in catalina.bat. However, if I comment out @echo off as you suggested, I get output where every line in the batch file seems to be executing on its own line, executing as a command - why might this be happening? e.g.

Re: See command-line output with startup errors in Windows

2007-12-10 Thread Martin Gainty
supposed to construct the 'start' option for catalina.bat so you should see something like.. catalina.bat start M-- - Original Message - From: lightbulb432 [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, December 10, 2007 1:11 PM Subject: RE: See command-line output with

Tomcat threads

2007-12-10 Thread Andrew Hole
Hello! What's the value of Initial Number of Threads created on Tomcat startup? Everytime it is necessary Tomcat creates another thread. What happens after the processing end? The thread dies or becomes available for a future processing? Best regards

Stack Trace instead of 404

2007-12-10 Thread Aaron Brown
When a user requests a struts action that doesn¹t exist (i.e. http://mysite.com/foo/doesntexist.do), Tomcat throws an exception and stack trace instead of a 404 error. Any idea how to configure Tomcat (or struts?) to turn this into a 404 so our errors inbox doesn¹t get overrun by crawlers that do

Re: LDAP as resource in context.xml

2007-12-10 Thread Sebastian Gerdes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, to whom it may concern, I brought my problems to a favorable issue and it was way easier than I thought. You just need to write your own resource factory and then you can choose your parameters as you like. My one looks like this now: -

Re: Session replication problem

2007-12-10 Thread Filip Hanik - Dev Lists
excellent, yes, you are overriding the clustering manager if you define one yourself thanks for reporting back! Filip Giancarlo Frison wrote: The problem reported below was due to a misconfiguration. In the past I disabled the session persistence uncommenting the manager row in context.xml :

Re: Stack Trace instead of 404

2007-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aaron, Aaron Brown wrote: When a user requests a struts action that doesn¹t exist (i.e. http://mysite.com/foo/doesntexist.do), Tomcat throws an exception and stack trace instead of a 404 error. Any idea how to configure Tomcat (or struts?) to

Apache Tomcat; Event Error in Windows 2003

2007-12-10 Thread mailing
I'm getting the following errors out of the Event Viewer; Event Type: Information Event Source: Apache Jakarta Connector2 Event Category: None Event ID: 4 Date: 12/10/2007 Time: 2:26:36 PM User: N/A Computer: WS25 Description: The description for

RE: See command-line output with startup errors in Windows

2007-12-10 Thread Caldarale, Charles R
From: lightbulb432 [mailto:[EMAIL PROTECTED] Subject: RE: See command-line output with startup errors in Windows However, if I comment out @echo off as you suggested, I get output where every line in the batch file seems to be executing on its own line, executing as a command - why

Re: Tomcat 6 Clustering expireSessionsOnShutdown=false

2007-12-10 Thread Filip Hanik - Dev Lists
can you check that you don't have the Manager element in your conf/context.xml this will override the default settings from below Filip Filip Hanik - Dev Lists wrote: I'll take a look at this today or tomorrow filip Timothy Wonil Lee wrote: Dear list, I have a cluster of Tomcat 6.0.14

RE: Tomcat threads

2007-12-10 Thread Caldarale, Charles R
From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Tomcat threads What's the value of Initial Number of Threads created on Tomcat startup? Whatever you configured on your Connector elements: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

Re: stdout.log size is increasing

2007-12-10 Thread Steve Ochani
On 10 Dec 2007 at 1:16, Stefano Martines wrote: Hi All, Although the log level is low, the stdout.log size is increasing in production day by day. I want that tomcat automatically archives the stdout.log file and creates a new one once a certains size is reached. How can I do that?

Help with java Lists

2007-12-10 Thread David kerber
I'm running this app in a tomcat 5.5.x container,I am trying to figure out which form of a list is the best for what I need to do here: I need to have some kind of list or collection that I can search quickly for a specific entry, and then start stepping through the list item by item from

Severe errors in catalina log

2007-12-10 Thread linuxChique
I'm getting some severe errors in my catalina-2007-xx-xx.log on startup and shutdown, and I was wondering if someone could help me chase these down. Startup: Dec 10, 2007 2:25:21 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows

Re: Help with java Lists

2007-12-10 Thread Mark Thomas
David kerber wrote: Any suggestions are welcome, including suggestions for reworking the basic design... Generally for reporting, I'd try and push as much as possible to the database, run a query there that returns exactly what I want and then optimise that query on the database. Mark

Re: Help with java Lists

2007-12-10 Thread Steve Ochani
On 10 Dec 2007 at 16:02, David kerber wrote: I'm running this app in a tomcat 5.5.x container,I am trying to figure out which form of a list is the best for what I need to do here: I need to have some kind of list or collection that I can search quickly for a specific entry, and then

RE: Help with java Lists

2007-12-10 Thread Caldarale, Charles R
From: David kerber [mailto:[EMAIL PROTECTED] Subject: Help with java Lists I need to have some kind of list or collection that I can search quickly for a specific entry, and then start stepping through the list item by item from that point. Try java.util.TreeMap; the subMap() and

RE: server mapping behaviour when directory structure mirrors mappings

2007-12-10 Thread Caldarale, Charles R
From: Matthew Thomas Broadhead [mailto:[EMAIL PROTECTED] Subject: server mapping behaviour when directory structure mirrors mappings servlet-mapping servlet-nameSales/servlet-name url-pattern/sales/url-pattern /servlet-mapping If you look at the servlet spec (section 11.2),

Re: Help with java Lists

2007-12-10 Thread David kerber
Mark Thomas wrote: David kerber wrote: Any suggestions are welcome, including suggestions for reworking the basic design... Generally for reporting, I'd try and push as much as possible to the database, run a query there that returns exactly what I want and then optimise that query on

Re: Help with java Lists

2007-12-10 Thread David kerber
Caldarale, Charles R wrote: From: David kerber [mailto:[EMAIL PROTECTED] Subject: Help with java Lists I need to have some kind of list or collection that I can search quickly for a specific entry, and then start stepping through the list item by item from that point. Try

Re: Help with java Lists

2007-12-10 Thread David kerber
Steve Ochani wrote: On 10 Dec 2007 at 16:02, David kerber wrote: I'm running this app in a tomcat 5.5.x container,I am trying to figure out which form of a list is the best for what I need to do here: I need to have some kind of list or collection that I can search quickly for a

Fwd: Blank page after sign-in

2007-12-10 Thread Steve Mitchell
I'm seeing something odd with http://www.homesassn.com. If you click a secured resource you get a blank page after signing in. You have to refresh the page to get the secured resource to appear. After that everything works great. I'm using SSL now, but this happened before I was using SSL too.

Re: How to specify windows user in runtime in tomcat?

2007-12-10 Thread nitin403
Juha Laiho wrote: nitin403 wrote: I have create a servlet which needs to read a file on a share folder. When I run tomcat service as anonymous it is not able to access read this file. But when I run tomcat service as a user who as access to this file, then it runs fine. My Question