Re: Problem with overriding the default servlet on tc 6.0.18

2009-06-09 Thread Konstantin Kolinko
2009/6/9 Bill Barker wbar...@wilshire.com: Incidentally I discovered you can't welcome-file-list by having an empty element, you have to have at least one welcome-file in there or the default servlet will use the one in $CATALINA_BASE/conf/web.xml .  Bug or feature? I'd say an enhancement

Re: Starting Tomcat 6.0

2009-06-09 Thread Konstantin Kolinko
2009/6/9 Dick Eastlake dickeastl...@yahoo.com: I currently start Tomcat with the Procrun Service Manager. It's an app called Apache Tomcat Properties with  six tabbed forms: general, log on, logging, java, startup and shutdown. To start Tomcat I press the start button in the general tab.

mod_jk retries parameter and sticky_session_force

2009-06-09 Thread Sameer Naik
Issue : mod_jk apparently does not use the retries parameter when “sticky_session_force” is set to false. Configuration: Apache 2.0.53 (3 instances), mod_jk 1.2.28, 15 Tomcat 6.x instances Load balanced , No Session Replication Description: Ours is a high load application and using default

RE: Header names lower case

2009-06-09 Thread Alexander Müller
definitiv möglicherweise? Martin Most likely ;), but what should the snippet tell me? Alexander - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

RE: Tomcat 6.0.18 and APR

2009-06-09 Thread Lush, David
Hi, Thanks for the responses both of you. The only reason I didn't go for 1.1.16 is the readme.txt said that the latest stable version is 1.1.14. I've given 1.1.16 a try anyway, with the same problem. I've also tried shutting down the service, then starting up the server using

Re: Header names lower case

2009-06-09 Thread Alexander Müller
Just to nitpick, there is no proper capitalisation, since the RFC says that headers are case-insensitive. I know, I referred to proper as in what the target machine expects. Apart from that, I would offer the following subjective advice, in the form of suggestions : - it sounds like you

Re: how to force tomcat to make a single istance of a servlet

2009-06-09 Thread Rainer Jung
On 08.06.2009 19:57, syed shah wrote: Hi Christopher, I want to do this cause i am handling the synchronization myself and infact i am using innodb so i dont want multiple instance of the servlet, although i can handle multiple threads in there. OK, then do not use SingleThreadModel,

Re: URL Auth Apache 2.2.11 + Tomcat 6.0.16

2009-06-09 Thread Rainer Jung
On 08.06.2009 21:49, Alexander Diedler wrote: Hi, Since we modify our server to use mod_jk to serve sites there is an error with a Tomcat Action, that requires a HTML Auth. If we open the URL http://www.bla.de/?action=Import in a Browser, there is a Auth-Dialog to fill in Username and

Re: org.apache.tomcat.sendfile.support attribute returned via getAttribute() but name not returned via getAttributeNames()

2009-06-09 Thread Rainer Jung
On 08.06.2009 22:15, Chris Markle wrote: Folks, Going to try this again since I got no reply to my first inquiry. I'd like to log a bug report along the lines of request getAttributeNames method does not return all request attributes (e.g., org.apache.tomcat.sendfile.support). Either that

Re: Problem with overriding the default servlet on tc 6.0.18

2009-06-09 Thread Mark Thomas
--- Original Message --- From: Joseph S j...@selectacast.net To: Tomcat Users List users@tomcat.apache.org Sent: 09/06/09, 01:58:45 Subject: Re: Problem with overriding the default servlet on tc 6.0.18 Joseph S wrote: After restarting tomcat it started working by itself, but

Re: Header names lower case

2009-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexander, On 6/8/2009 12:34 PM, Alexander Müller wrote: apparently? Hm, in this case I'd double-check whether whatever problem you're having is indeed caused by the case of the header names. Just to make sure you're not barking at the wrong tree.

swallowOutput and service threads

2009-06-09 Thread Christopher Piggott
Hi, I'm running tomcat 6 and am having the problem that swallowOutput doesn't work for my service threads (i.e. threads owned by the webapp, created in ServletContextListener.contextInitialized() and managed entirely by me). I noticed that swallowOutput=true doesn't seem to affect these child

Tomcat hyperlink interpretation when including jsp file from another subdirectory

2009-06-09 Thread ledbettd
Can anyone help explain what is going on with the Tomcat link creation/interpretation and what we could do to get this working correctly? Apache Tomcat Version 5.5.26 JRE_HOME: /usr/java/jdk1.6.0_07 CATALINA_BASE: /usr/local/tomcat5 Running on Virtual Server VMWare within a 64bit Windows 2003

Re: Header names lower case

2009-06-09 Thread Alexander Müller
Is it only certain headers that are a problem, or is it all headers? If it's only some, you could specifically code these such that they are handled with the desired capitalization, and pass everything else through. Or, if there are some rules to the capitalization requirements (like the

Re: Starting Tomcat 6.0

2009-06-09 Thread Dick Eastlake
Konstantin: That worked.  Started throwing all kinds of Java.security.AccessControlExceptions. Now I can get to work on the policy. Many Thanks! --- On Mon, 6/8/09, Konstantin Kolinko knst.koli...@gmail.com wrote: From: Konstantin Kolinko knst.koli...@gmail.com Subject: Re: Starting Tomcat 6.0

Re: org.apache.tomcat.sendfile.support attribute returned via getAttribute() but name not returned via getAttributeNames()

2009-06-09 Thread Chris Markle
Ranier, Yes, there are request attributes, that you can retrieve via getAttribute(), but are not visible in getAttributeNames(). Those are mostly somehow connector internal attributes, but yes, some of them can be interesting to use in a webapp. Unfortunately this will not be easy to fix,

Re: Problem with overriding the default servlet on tc 6.0.18

2009-06-09 Thread Joseph S
Mark Thomas wrote: --- Original Message --- From: Joseph S j...@selectacast.net To: Tomcat Users List users@tomcat.apache.org Sent: 09/06/09, 01:58:45 Subject: Re: Problem with overriding the default servlet on tc 6.0.18 Joseph S wrote: After restarting tomcat it started

Memory Leak using EJBs

2009-06-09 Thread pal899
We are having a memory leak in tomcat 6.0.18. We are using it as a client of a Weblogic Server 10. We have monitored the memory consumed and we have noticed that it grows up permanently. We have extended the memory VM parameters till 1G and it's only a way to delay the end: the free memory is

Re: how to force tomcat to make a single istance of a servlet

2009-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 6/8/2009 1:51 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: how to force tomcat to make a single istance of a servlet Usually, only one instance of your servlet will be

Re: how to force tomcat to make a single istance of a servlet

2009-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Syed, On 6/8/2009 1:57 PM, syed shah wrote: I want to do this cause i am handling the synchronization myself How are you managing the synchronization yourself? What needs to be protected? Why can't you simply use synchronized access to a shared

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

2009-06-09 Thread Bap
Hi all, I am trying to set the following system property/value in setenv.sh com.sun.jndi.ldap.connect.pool.protocol=plain ssl on Apache Tomcat/6.0.16, and I cannot for the life of me figure out how to escape the quotes and get the server to start. If I enclose the whole CATALINA_OPTS in

tcnative-1.dll on windows environment questions

2009-06-09 Thread Derrick Koes
The IRI http://tomcat.apache.org/tomcat-5.5-doc/apr.html has the information quoted below about the tcnative-1.dll. Windows binaries are provided for tcnative-1, which is a statically compiled .dll which includes OpenSSL and APR. It can be downloaded from here http://tomcat.heanet.ie/native/

Re: Problem with overriding the default servlet on tc 6.0.18

2009-06-09 Thread Mark Thomas
Joseph S wrote: Mark Thomas wrote: --- Original Message --- From: Joseph S j...@selectacast.net To: Tomcat Users List users@tomcat.apache.org Sent: 09/06/09, 01:58:45 Subject: Re: Problem with overriding the default servlet on tc 6.0.18 Joseph S wrote: After restarting

Re: Application monitoring

2009-06-09 Thread Anoop kumar V
We use a tool called monit. It is very light weight and comes with its own embedded web server. It integrates easily with init and can use existing runlevel rc scripts to manage services. Best of all it is open source. Thanks, Anoop On Mon, Jun 8, 2009 at 9:28 AM, Chetan Chheda

Re: tcnative-1.dll on windows environment questions

2009-06-09 Thread Mark Thomas
Derrick Koes wrote: The IRI http://tomcat.apache.org/tomcat-5.5-doc/apr.html has the information quoted below about the tcnative-1.dll. Windows binaries are provided for tcnative-1, which is a statically compiled .dll which includes OpenSSL and APR. It can be downloaded from here

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

2009-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bap, On 6/9/2009 1:06 PM, Bap wrote: I am trying to set the following system property/value in setenv.sh com.sun.jndi.ldap.connect.pool.protocol=plain ssl If I enclose the whole CATALINA_OPTS in single quotes, then the value looks fine when

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

2009-06-09 Thread Imner, Andreas
My companys web application uses log4j 1.2.8 for logging and have just recently switched from Weblogic to Tomcat 6.0.18. Since the we switched to Tomcat, when we do some logging within a servlet private static final Log log = LogFactory.getLog(ExceptionHandlerServlet.class); log.error(some

Re: Starting Tomcat 6.0

2009-06-09 Thread André Warnier
Konstantin Kolinko wrote: 2009/6/9 Dick Eastlake dickeastl...@yahoo.com: ... Konstantin, unless I am mistaken, the OP is just trying to protect some *pages* from non-authenticated access. You don't need the Security Manager for that, just stuff like security-constraint in the webapp's

Re: swallowOutput=true not working. Why?

2009-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 6/8/2009 10:49 PM, Christopher Piggott wrote: I just switched from Tomcat 5.5 to Tomcat 6 on an Ubuntu server. Are you using the Ubuntu-managed version of Tomcat, or are you using one that you installed from an official package from

Re: swallowOutput and service threads

2009-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 6/9/2009 9:46 AM, Christopher Piggott wrote: I'm running tomcat 6 and am having the problem that swallowOutput doesn't work for my service threads (i.e. threads owned by the webapp, created in ServletContextListener.contextInitialized()

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

2009-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas, On 6/9/2009 3:31 PM, Imner, Andreas wrote: My companys web application uses log4j 1.2.8 for logging and have just recently switched from Weblogic to Tomcat 6.0.18. Since the we switched to Tomcat, when we do some logging within a

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

2009-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 6/9/2009 9:49 AM, ledbettd wrote: Inside both the header.jsp and footer.html files the same link is included: /prds.jsp prds Both the default.jsp and pudire.jsp files include the footer.html and create the

[Fwd: Re: [us...@httpd] 503 status seems to get cached - how do I disable caching?]

2009-06-09 Thread André Warnier
Rainer, do you want to have a go at this one ? Original Message Subject: Re: [us...@httpd] 503 status seems to get cached - how do I disable caching? Date: Tue, 9 Jun 2009 15:37:25 -0500 From: Jenny Brown skyw...@gmail.com Reply-To: us...@httpd.apache.org To:

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

2009-06-09 Thread ledbettd
Christopher Schultz-2 wrote: How about the code from footer.jsp (or header.jsp) that actually generates the links? %= response.encodeURL(request.getContextPath() + link text Thanks for the help, Chris. The code in footer and header were just a list of HTML A links, not real

RE: swallowOutput=true not working. Why?

2009-06-09 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: swallowOutput=true not working. Why? 2) There was no host-specific one, so I added the file /etc/tomcat6/Catalina/localhost/context.xml with the contents: Context swallowOutput=true/ This file will control

RE: custom header

2009-06-09 Thread Anthony J. Biacco
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` and then trying to use

windows Tomcat 5.5.27 tcnative-1.dll APR poller question

2009-06-09 Thread Derrick Koes
Does the APR keep-alive poller have any effect if AJP (native jk connector so that web server can be used) is *not* used? Are all the underlying sockets managed by the poller even if AJP is not in use? This isn't clear in the Professional Tomcat 6 book (only reference other than online docs I

Private JVM Heap Size

2009-06-09 Thread William Biggs
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 ?

Re: swallowOutput and service threads

2009-06-09 Thread Christopher Piggott
(By the way, did you solve your other problem of not getting *any* stdout output swallowed when swallowOutput=true?) Yep. I put it in what is essentially $CATALINA_HOME/conf/context.xml which means it's server-wide and not host-specific ... and as you pointed out, is a setting for all webapps.

Re: swallowOutput=true not working. Why?

2009-06-09 Thread Christopher Piggott
Y On Tue, Jun 9, 2009 at 3:45 PM, Christopher Schultzch...@christopherschultz.net wrote: log4j.appender.R=org.apache.log4j.ConsoleAppender log4j.appender.R.target=System.out log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n I've

Apache Tomcat connection question

2009-06-09 Thread R Ravichandran
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 same host. The first web app on Tomcat is running as

tomcat6.0.18 service unable to start

2009-06-09 Thread teoh
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 process

Re: windows Tomcat 5.5.27 tcnative-1.dll APR poller question

2009-06-09 Thread Mladen Turk
Derrick Koes wrote: Does the APR keep-alive poller have any effect if AJP (native jk connector so that web server can be used) is *not* used? Yes, there is Http11AprProcessor and Http11AprProtocol classes. In case of http the socket is put in the poller during connection Keep-Alive stage. This