AW: server status reports long request times

2011-07-22 Thread Michael Südkamp
That sounds like you looked at ps or similar output, not a thread dump. Take an actual JVM thread dump and see where the worker threads are during the busy periods. Wrong, to identify the thread in question I looked with Sysinternals Process Explorer which thread ID caused the 100% CPU.

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread André Warnier
Adrián Córdoba wrote: Well... 1- I delete the Directory section from httpd.conf file. 2- I add JkMount /Andromeda worker1 to the virtual host. 3- I add dynamic content to index.jsp page So I proved the content is served by Tomcat. But I have the same problem: I cannot view the content of

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Bobi St
Oh my, I got confused now :) So, if we dont need JDK; why cannt I start the server w/o having specified exactly a path to JDK. With only JRE_HOME specified it doesnt start. So, is it only good to have JDK_HOME, or it is a must ? --- Konstantin Kolinko knst.koli...@gmail.com schrieb am Do,

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Konstantin Kolinko
2011/7/22 Bobi St temporaryb...@yahoo.de: Oh my, I got confused now :) So, if we dont need JDK; why cannt I start the server w/o having specified exactly a path to JDK. With only JRE_HOME specified it doesnt start. Probably you are doing something wrong. Google for smart questions. Best

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Bobi St
:) Well, whats wrong, not to specify JDK_HOME if its not needed ?!? or whats wrong in specifying JRE_HOME to jre6 ?!? --- Konstantin Kolinko knst.koli...@gmail.com schrieb am Fr, 22.7.2011: Von: Konstantin Kolinko knst.koli...@gmail.com Betreff: Re: Tomcat 7: Why is JDK needed ? An: Tomcat Users

RE: Tomcat 7, isapi_redirect, IIS 7 - blank page

2011-07-22 Thread Douglas McGregor
Sorry for the late reply. I took a break from this for a day or so. I can confirm that Tomcat handles .jsp pages correctly - http://www.douglasmcgregor.co.uk:8080/examples works fine. However, when I try http://www.douglasmcgregor.co.uk:8080/HelloWorld.jsp I get HTTP Status 404 from Tomcat.

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Ognjen Blagojevic
Bobi, What Konstantin is suggesting, is if you want to get your question answered, you *really* need to describe your problem in detail. Which OS, JRE and Tomcat version are you using, which Tomcat distribution (installer or .zip), how are your environment variables set, how do you try to

Re: Tomcat 7, isapi_redirect, IIS 7 - blank page

2011-07-22 Thread André Warnier
Hi. No time now to look at it in detail, but I spotted something in your earlier post : #example uriworkermap.properties fragment /examples/*=worker1 .jsp=worker1 It should be : *.jsp=worker1 according to : http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html section URI

RE: Tomcat 7, isapi_redirect, IIS 7 - blank page

2011-07-22 Thread Douglas McGregor
I spotted that myself and fixed it, but it's still the same result. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: 22 July 2011 12:27 To: Tomcat Users List Subject: Re: Tomcat 7, isapi_redirect, IIS 7 - blank page Hi. No time now to look at it in detail, but I

Re: Tomcat 7, isapi_redirect, IIS 7 - blank page

2011-07-22 Thread Mladen Turk
On 07/22/2011 12:42 PM, Douglas McGregor wrote: Sorry for the late reply. I took a break from this for a day or so. I can confirm that Tomcat handles .jsp pages correctly - http://www.douglasmcgregor.co.uk:8080/examples works fine. However, when I try

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Bobi St
Hallo, sorry, I thought the settings I was asking for, are valid for all OS. So, I'm talking about Tomcat 7. According to some description, it doesn't need JDK anymore. For this reason under Windows (7) I didn't set it at the beginning (neither did I install it), so the error came: no JDK nor

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread Adrián Córdoba
Igor: mod_jk log file is configured, but nothing relevant is loged. Thank you. -- [Adrián Córdoba] 2011/7/21 Igor Cicimov icici...@gmail.com Configure a mod_jk log file and see whats going on there On Jul 22, 2011 10:37 AM, Adrián Córdoba adr.cord...@gmail.com wrote: Well... 1- I

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread Adrián Córdoba
André: 1- So how come the requests are made to the host localhost ? I think this is so, because VirtualHost *:80. 2- Is this the one and only VirtualHost in Apache ? This is the only virtual host. Best regards -- [Adrián Córdoba] 2011/7/22 André Warnier a...@ice-sa.com Adrián Córdoba

Re: Tomcat 7, isapi_redirect, IIS 7 - blank page

2011-07-22 Thread André Warnier
Douglas McGregor wrote: Sorry for the late reply. I took a break from this for a day or so. I can confirm that Tomcat handles .jsp pages correctly - http://www.douglasmcgregor.co.uk:8080/examples works fine. However, when I try http://www.douglasmcgregor.co.uk:8080/HelloWorld.jsp I get HTTP

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread André Warnier
Adrián Córdoba wrote: André: 1- So how come the requests are made to the host localhost ? I think this is so, because VirtualHost *:80. 2- Is this the one and only VirtualHost in Apache ? This is the only virtual host. How do you enter a URL in the browser, to access this ? (paste an

Re: APR connector pollTime defaults are strange in tomcat6/7

2011-07-22 Thread Darius D.
Darius D. wrote: Does Tomcat APR really needs pollTime set so low by default? I thought timeout is meant for some sort of book keeping, where is all connections in FD set are idle, no events come for timeout period - you force timeout and do bookkeeping - on a busy system you will get

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread Adrián Córdoba
André: This is in my URL bar of Chrome or Firefox: http://localhost/Andromeda Thank you. -- [Adrián Córdoba] 2011/7/22 André Warnier a...@ice-sa.com Adrián Córdoba wrote: André: 1- So how come the requests are made to the host localhost ? I think this is so, because

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Konstantin Kolinko
2011/7/22 Bobi St temporaryb...@yahoo.de: sorry, I thought the settings I was asking for, are valid for all OS. So, I'm talking about Tomcat 7. According to some description, it doesn't need JDK anymore. For this reason under Windows (7) I didn't set it at the beginning (neither did I

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread chris derham
I have experienced similar issues to the OP in the past, and just tried again now and still hit them. I can't bear to watch this thread amble along any longer, so I will try to rephrase the question for the OP as he seems unwilling or unable to do so Windows 7 Tomcat 7.0.19 java -version java

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Mark Thomas
On 22/07/2011 14:06, chris derham wrote: I have experienced similar issues to the OP in the past, and just tried again now and still hit them. I can't bear to watch this thread amble along any longer, so I will try to rephrase the question for the OP as he seems unwilling or unable to do so

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Ognjen Blagojevic
Bobi, You are doing something wrong, but your sparse explanations make it difficult to determine what. Here is example how to run Tomcat just with JRE: C:\apps\apache-tomcat-7.0.11\binset JRE_HOME= C:\apps\apache-tomcat-7.0.11\binset JAVA_HOME=

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread André Warnier
Adrián Córdoba wrote: André: This is in my URL bar of Chrome or Firefox: http://localhost/Andromeda Ok. That, *and* the fact that you have a single VirtualHost, explains why it works, and explains the log entries. But it works *only* because you have a single VirtualHost, and in Apache

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread Adrián Córdoba
Ok. Thank you. -- [Adrián Córdoba] 2011/7/22 André Warnier a...@ice-sa.com Adrián Córdoba wrote: André: This is in my URL bar of Chrome or Firefox: http://localhost/Andromeda Ok. That, *and* the fact that you have a single VirtualHost, explains why it works, and explains the log

Web app running on http, not on https

2011-07-22 Thread Leffingwell, Jonathan R CTR FRCSE, JAX 7.2.2
Before I copy and paste any configs (such as httpd.conf and httpd-ssl.conf), let me throw this out there and see if you guys can at least point me in the right direction. Environment === Apache 2.2.19, installed with mod_jk (latest connector) and mod_ssl (enabled with Apache's

Re: Web app running on http, not on https

2011-07-22 Thread chris derham
If I type http://localhost;, I get the expected It works! Apache page. Cool. Apache works on port 80 If I type https://localhost;, I get the expected It works! Apache page. Cool. Apache works on port 443 If I type http://localhost/myWebApp;, I get the expected result of my web app

FW: Unsubscribe

2011-07-22 Thread Mikie
Is there anyone on the list who can help me unsubscribe? I have clicked on the web site and received an email but when I reply as per instructions it cannot be delivered. _ From: Microsoft Outlook Sent: Thursday, July 21, 2011 4:26 PM To: Mikie

Re: FW: Unsubscribe

2011-07-22 Thread Konstantin Kolinko
Spam protection does not like your email. 1. Send it in plain text, not HTML 2. Include some text in it! Empty messages are rejected. 3. If nothing helps - send your question to List owner address: as specified on the mailing lists page. Best regards, Konstantin Kolinko 2011/7/22 Mikie

Re: Web app running on http, not on https

2011-07-22 Thread Mark Thomas
On 22/07/2011 15:54, Leffingwell, Jonathan R CTR FRCSE, JAX 7.2.2 wrote: If I type https://localhost/myWebApp;, I get an unexpected 404 error: Not Found. The requested URL /myWebApp was not found on this server. NOT COOL! At a guess, you have forgotten that mod_jk config is *per virtual host*

WebListener as jar

2011-07-22 Thread Mihai Caraman
Hello, First of all, I'm new to tomcat and somewhat to java, but I got a question that I couldn't find answer to it. So, I'm currently running my war on tomcat7/Servlet3/jdk1.6. My war basically has (among plain classes) a Servlet for requests and a WebListener (ServletContextListener) for

URL/ URI/ TC(?) puzzle -- wrong non-error?

2011-07-22 Thread Dennis de Champeaux
I saw something strange on one of my virtual hosts on tomcat 6.  Not even sure whether it is virtual host/ TC specific.  There are only two files index.html and file2.html in this host.  The content of file2 is irrelevant. index.html has two different links to file2.html:    a

Upgrading from Tomcat 7.0.8 to 7.0.10 and higher causes Old Generation memory problems

2011-07-22 Thread Ian Marsh
Hi, I am in charge of running a Apache-2, Tomcat-7, Ubuntu-10.04 set up for which we have to be PCI Compliant. We recently upgraded to Apache-2.2.17 and Tomcat-7.0.8 (from Apache-2.0.x and Tomcat 5.0.28) in order to comply with the requirements of the PCI Compliance checks and ironed out any

Re: URL/ URI/ TC(?) puzzle -- wrong non-error?

2011-07-22 Thread Mark Thomas
On 22/07/2011 17:22, Dennis de Champeaux wrote: Hence the question(s): URL/URI semantics allow both links to succeed? If not, TC6 is willing to go the extra mile? TC (6.0.32) is wacko? Nope. You have a broken configuration and you are getting double deployment. Mark

Re: upgrade 7.0.16 -- 7.0.19 causes JVM crash due to apr?

2011-07-22 Thread Ðavîd Låndïs
Just to clarify, by upgrade I don't mean upgrade in place or something like that; it was a completely new install separate from the previous version. 7.0.19 and 7.0.16 use the same version of the tomcat native apparently so I guess it couldn't be some incompatibility with the apr libraries I have

RE: Web app running on http, not on https

2011-07-22 Thread Leffingwell, Jonathan R CTR FRCSE, JAX 7.2.2
That was it, Mark. It's all good now! You da man! :-) Jonathan -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Friday, July 22, 2011 11:59 AM To: Tomcat Users List Subject: Re: Web app running on http, not on https On 22/07/2011 15:54, Leffingwell, Jonathan R

Tomcat with CGI doesn`t use backticks command `cmd `

2011-07-22 Thread David Bernard
Tomcat information: apache-tomcat-7.0.14 Windows 7 (See attached file: web.xml)(See attached file: catalina.policy)(See attached file: catalina.properties)(See attached file: context.xml)(See attached file: logging.properties)(See attached file: server.xml)(See attached file:

RE: Tomcat 7, isapi_redirect, IIS 7 - blank page

2011-07-22 Thread Douglas McGregor
Just wanted to share the good news. I've finally got it working!! What worked was adding a virtual host to server.xml and adding a context path like so: Host name=www.douglasmcgregor.co.uk appBase=webapps unpackWARs=true autoDeploy=true Aliasdouglasmcgregor.co.uk/Alias

Re: Tomcat 7, isapi_redirect, IIS 7 - blank page

2011-07-22 Thread Mladen Turk
On 07/22/2011 08:18 PM, Douglas McGregor wrote: Just wanted to share the good news. I've finally got it working!! It's such a relief! I bet it is, after so many months ;) Cheers -- ^TM - To unsubscribe, e-mail:

Re: Upgrading from Tomcat 7.0.8 to 7.0.10 and higher causes Old Generation memory problems

2011-07-22 Thread Mark Thomas
On 22/07/2011 17:26, Ian Marsh wrote: Hi, I am in charge of running a Apache-2, Tomcat-7, Ubuntu-10.04 set up for which we have to be PCI Compliant. We recently upgraded to Apache-2.2.17 and Tomcat-7.0.8 (from Apache-2.0.x and Tomcat 5.0.28) in order to comply with the requirements of the

Re: Tomcat with CGI doesn`t use backticks command `cmd `

2011-07-22 Thread Konstantin Kolinko
2011/7/22 David Bernard david.bern...@intact.net: \ Tomcat information: apache-tomcat-7.0.14 Windows 7 (See attached file: web.xml)(See attached file: catalina.policy)(See attached file: catalina.properties)(See attached file: context.xml)(See attached file: logging.properties)(See attached

Re: WebListener as jar

2011-07-22 Thread Konstantin Kolinko
2011/7/22 Mihai Caraman caraman.mi...@gmail.com: The final behavior that I'm looking for is to have a servlet that is ran by tomcat, but at the same time, have access to static objects in the class that is now used as a Listener. This is needed for repetitive testing without having to wait

Re: [OT] Tomcat 7 parallel deployment and PermGen Heap Space

2011-07-22 Thread Sylvain Laurent
My personal advice with the Oracle driver is to put it at the server level, not at the webapp level. For instance if you use the query timeouts, oracle JDBC spawns a Thread to handle the timeouts, and there is no way to properly stop this thread so tomcat will continue complaining about leaking

Re: URL/ URI/ TC(?) puzzle -- wrong non-error?

2011-07-22 Thread Dennis de Champeaux
Can someone  else explain what is going on ?   Home page: rs6.risingnet.net/~ddcc Health Info Anytime for Everyone: www.HealthCheck4Me.info Exercise for the Mind:

Re: Upgrading from Tomcat 7.0.8 to 7.0.10 and higher causes Old Generation memory problems

2011-07-22 Thread Mark Thomas
On 22/07/2011 20:17, Mark Thomas wrote: On 22/07/2011 17:26, Ian Marsh wrote: It seems that the character arrays [C, java.lang.String and javax.servlet.jsp.tagext.TagAttributeInfo entries are considerably higher in Tomcat-7.0.10 than in Tomcat-7.0.8 and I am wondering if this could lead to

Re: Tomcat 7: Why is JDK needed ?

2011-07-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bobi, On 7/22/2011 8:15 AM, Bobi St wrote: sorry, I thought the settings I was asking for, are valid for all OS. Sometimes, yes. But if you had told us everything up front, if would have been one question and one answer. You would have had your

Re: Upgrading from Tomcat 7.0.8 to 7.0.10 and higher causes Old Generation memory problems

2011-07-22 Thread Pid
On 22/07/2011 20:17, Mark Thomas wrote: On 22/07/2011 17:26, Ian Marsh wrote: Hi, I am in charge of running a Apache-2, Tomcat-7, Ubuntu-10.04 set up for which we have to be PCI Compliant. We recently upgraded to Apache-2.2.17 and Tomcat-7.0.8 (from Apache-2.0.x and Tomcat 5.0.28) in order

Re: URL/ URI/ TC(?) puzzle -- wrong non-error?

2011-07-22 Thread Pid
On 22/07/2011 22:03, Dennis de Champeaux wrote: Can someone else explain what is going on ? You have a broken configuration and you are getting double deployment. p

Re: URL/ URI/ TC(?) puzzle -- wrong non-error?

2011-07-22 Thread Dennis de Champeaux
This is the 2nd response with                       You have a broken configuration. Why are you guys not explaining what is broken? I cannot read your mind/ Telepathy does not work here yet.  BTW I did do plenty of research on this topic Your SNOTTYness is not appreciated ...        Actually

Re: URL/ URI/ TC(?) puzzle -- wrong non-error?

2011-07-22 Thread David Kerber
You haven't given enough information to tell you any more detail. Post the rest of your configuration files. At a guess, you've got the same app deploying as ROOT and where you want it to be. But you definitely have it deploying twice. D On 7/22/2011 6:22 PM, Dennis de Champeaux wrote:

No error-page for IllegalStateException(Too many active sessions) Instead: Empty page HTTP code 200 (OK)

2011-07-22 Thread Selaron
Hello, in somecases, Tomcat dosn't allow output of an error page for too many active sessions. Reproduction: 1) Configure Tomcat 6 or 7 example application to allow maxActiveSessions=1 only (e.g. adding /examples/META-INF/context.xml#SimpeSessionManager...) 2) Visit

Re: URL/ URI/ TC(?) puzzle -- wrong non-error?

2011-07-22 Thread Mark Thomas
On 22/07/2011 23:22, Dennis de Champeaux wrote: This is the 2nd response with You have a broken configuration. Why are you guys not explaining what is broken? Because if you take the attitude you did in your initial post (the question TC (6.0.33) is wacko? in particular)

html meta http-equiv content-type not work ?

2011-07-22 Thread Luogang Wang
hi, my tomcat version 7.0.16 ; I put this simple html on tomcat webapps ROOT directory. !doctype html html head title New Document /title meta http-equiv=content-type content=text/html; charset=UTF-8 /head body hello world! /body /html when request the file from browser ,the http

html meta http-equiv content-type not work ?

2011-07-22 Thread Luogang Wang
hi, my tomcat version 7.0.16 ; I put this simple html on tomcat webapps ROOT directory. !doctype html html head title New Document /title meta http-equiv=content-type content=text/html; charset=UTF-8 /head body hello world! /body /html when request the file from browser ,the http

Re: URL/ URI/ TC(?) puzzle -- wrong non-error?

2011-07-22 Thread Mark Eggers
- Original Message - From: Dennis de Champeaux atlantisic...@yahoo.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Friday, July 22, 2011 3:22 PM Subject: Re: URL/ URI/ TC(?) puzzle -- wrong non-error? T his is the 2nd response with                       You have a