Getting detailed list of active sessions for a Context

2010-12-22 Thread Jean-Noël Colin
Hi, I'm developing a webapp and I would like to be able to display the list of active sessions for that specific webapp, in a specific page, and I'd like to get a detailed view: Session Id, Creation time, last activity, IP address, username (in case he's authenticated) I searched forums and

Re: Getting detailed list of active sessions for a Context

2010-12-22 Thread Pid *
On 22 Dec 2010, at 08:49, Jean-Noël Colin jn.co...@gmail.com wrote: Hi, I'm developing a webapp and I would like to be able to display the list of active sessions for that specific webapp, in a specific page, and I'd like to get a detailed view: Session Id, Creation time, last activity, IP

Re: Getting detailed list of active sessions for a Context

2010-12-22 Thread Jean-Noël Colin
Hi Thanks for the feedback; actually, jsp or servlet is not really the point, since I'm using icefaces anyway. So it seems that I can't get access to the list of sessions connected to my webapp, except the limited information provided by HttpSession? Cheers Jean-Noël On 22 Dec 2010, at

exception fixing docbase [/axis2]

2010-12-22 Thread Nuria Sánchez Almodóvar
Good morning, We are trying to run axis2/Apache on Windows 7. If we try to launch Tomcat as Administrator it works fine and the service we have developed is shown as part of the available services for axis2. However, if we try the same but with a different user (also with administrator

Re: Getting detailed list of active sessions for a Context

2010-12-22 Thread Konstantin Kolinko
2010/12/22 Jean-Noël Colin jn.co...@gmail.com: I also tried casting the HttpSession retrieved in the HttpSessionListener, without success. That would be StandardSessionFacade, not a StandardSession. Would you have any further suggestion? The manager webapp (aka HTMLManagerServlet) uses

Re: Getting detailed list of active sessions for a Context

2010-12-22 Thread Jean-Noël Colin
Many thanks Konstantin. I'll look into the Valve idea Cheers Jean-Noël On 22 Dec 2010, at 12:23, Konstantin Kolinko wrote: 2010/12/22 Jean-Noël Colin jn.co...@gmail.com: I also tried casting the HttpSession retrieved in the HttpSessionListener, without success. That would be

Re: Where does my stderr go?

2010-12-22 Thread Thomas Kloeber
Some additional info, which I just saw and which looks strange to me: the stdout_XXX.log doesn't change it's date. That is to say that I have stdout_20101221.log which also contains log entries from today, 12-22. I was under the impression that Tomcat automatically closes the file at midnight

Re: Where does my stderr go?

2010-12-22 Thread Konstantin Kolinko
2010/12/22 Thomas Kloeber kloe...@ics.de: Some additional info, which I just saw and which looks strange to me: the stdout_XXX.log doesn't change it's date. That is to say that I have stdout_20101221.log which also contains log entries from today, 12-22. I was under the impression that Tomcat

Tomcat Hangs with variable frequency

2010-12-22 Thread Rhonny David
Hi ALL, We are using tomcat 6.0 in production environment and facing a critical problem that tomcat hangs with variable frequency in a week. We have tried to figure out the problem but couldn't reach the root cause. To investigate the cause we used the lambda probe tool. Lamba probe shows

Re: IS that a good idea moving all the common libs?

2010-12-22 Thread Mark Thomas
On 21/12/2010 23:49, George Sexton wrote: -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, December 20, 2010 1:08 PM To: Tomcat Users List Subject: Re: IS that a good idea moving all the common libs? On Dec 20, 2010, at 12:16, Luca

Re: Tomcat Hangs with variable frequency

2010-12-22 Thread Mark Thomas
On 22/12/2010 11:48, Rhonny David wrote: Hi ALL, We are using tomcat 6.0 in production environment Exactly which version? Also exact versions for JDK and OS please. Mark - To unsubscribe, e-mail:

Re: Where does my stderr go?

2010-12-22 Thread Thomas Kloeber
Konstantin Kolinko wrote on 22.12.2010 12:44: 2010/12/22 Thomas Kloeberkloe...@ics.de: Some additional info, which I just saw and which looks strange to me: the stdout_XXX.log doesn't change it's date. That is to say that I have stdout_20101221.log which also contains log entries from today,

Re: Tomcat Hangs with variable frequency

2010-12-22 Thread Rhonny David
I think i have already provided these except tomcat. Anyways we are using Tomcat 6.0.29, which is pointed to jre 1.5.0_10. And the OS is Microsoft Windows Server 2003, R2 , Standard Edition, Service Pack2. Regards, David From: Mark Thomas ma...@apache.org

Re: Different context path of deployed application

2010-12-22 Thread Petr Prochazka
Cool, I created context config file attendance.xml Context docBase=d:/java/apache-tomcat/wars/attendance-0.4.war/ and after application was deployed to right context path Thanks very much Petr P. On 17.12.2010 17:13, Caldarale, Charles R wrote: From: Petr Prochazka

Re: Tomcat stops responding

2010-12-22 Thread K J.Sreekumar
Hello All, Thank you for the suggestions. We noted that we have these errors in the logs - SEVERE: The web application [/rel] registered the JBDC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been

Re: Tomcat stops responding

2010-12-22 Thread K J.Sreekumar
Hello Andre TCP0.0.0.0:8080 0.0.0.0:0 LISTENING 5356 [tomcat6.exe] Apart from the above and the other ports in LISTEN state, when tomcat freezes, do you have any other ports in the netstat listing, shown as CLOSE_WAIT for example ? If yes, how many ?

Re: Tomcat Hangs with variable frequency

2010-12-22 Thread Konstantin Kolinko
net.sourceforge.jtds.jdbc.JtdsResultSet.close ( JtdsResultSet.java:486 ) I think it is an issue with implementation of JtdsResultSet.close(), [1] 0485:if (!getConnection().isClosed()) { 0486:// Skip to end of result set 0487:

Re: Tomcat stops responding

2010-12-22 Thread André Warnier
Hi. K J.Sreekumar wrote: Hello Andre TCP0.0.0.0:8080 0.0.0.0:0 LISTENING 5356 [tomcat6.exe] Apart from the above and the other ports in LISTEN state, when tomcat freezes, do you have any other ports in the netstat listing, shown as CLOSE_WAIT for example ? If

Re: Tomcat Hangs with variable frequency

2010-12-22 Thread Rhonny David
I won't support your reasoning, because the same JTDS driver version we are using for our other site and there the number of concurrent users of the application is more than 800 and therefore the volume of concurrent requests is very high, but we never faced the issue of this nature. Secondly,

IOException: Invalid chunk header

2010-12-22 Thread Aggarwal, Ajay
I am using standard HTTP 1.1 connector. This is what I see from tomcat output Ø INFO [main] 2010-12-22 07:43:03,071 org.apache.coyote.http11.Http11Protocol - Initializing Coyote HTTP/1.1 on http-9080 And here is the connector configuration element from server.xml Connector

Re: IOException: Invalid chunk header

2010-12-22 Thread André Warnier
Hi. 1) Please provide Tomcat version, Java version, platform OS. 2) The exception message seems pretty clear : Tomcat does not like the looks of one of the chunk headers of what it receives. A protocol analyser may be the only way to see what is really being sent/received here, although with

RE: IOException: Invalid chunk header

2010-12-22 Thread Aggarwal, Ajay
Tomcat version is: 6.0.20 Platform: CentOS 5.5 Java: Java(TM) SE Runtime Environment (build 1.6.0_11-b03) It happens in the middle. But its not always the same point where it happens. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Hi. 1) Please provide Tomcat

Tomcat 6.0.18 related NIO questions.

2010-12-22 Thread shrikant patel
We are using tomcat connector as follows -- Connector connectionTimeout=50 port=8080 protocol=HTTP/1.1 ... Based on the documentation we are using the blocking call, right? So the servlet thread is blocked for IO while reading request and writing response. In case we want to use NIO, we

Re: Tomcat 6.0.18 related NIO questions.

2010-12-22 Thread Mark Thomas
On 22/12/2010 16:31, shrikant patel wrote: We are using tomcat connector as follows -- Connector connectionTimeout=50 port=8080 protocol=HTTP/1.1 ... Based on the documentation we are using the blocking call, right? It depends. Probably the BIO connector but it could also bee the APR

Re: Tomcat 6.0.18 related NIO questions.

2010-12-22 Thread Filip Hanik - Dev Lists
hi shrikant, there are many benefits of NIO in a tomcat 6, the main being there is no longer a thread-per-connection limit. Note in Tomcat 7, even with the blocking connector, you can have more connections than threads. The NIO connector will read your request headers in a non blocking fashion,

Re: Tomcat Hangs with variable frequency

2010-12-22 Thread Konstantin Kolinko
If closing the result set requires reading it in full (as JTDS does), it can take significant time. You should take thread dumps to see what the threads are doing and what they are waiting for. (Three thread dumps taken several seconds apart). Post them inline, or somewhere else (like pastebin

Re: How to put restrictions to mod_jk's log

2010-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kikuchi, On 12/21/2010 11:42 PM, Yu Kikuchi wrote: I also think it's not good idea to make JkLogLevel ERROR. I'll consider to use rotatelogs. You might miss important information if setting to ERROR. Good luck. BTW, I think it's reasonable for

Re: Tomcat 6.0.18 related NIO questions.

2010-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shri, On 12/22/2010 11:31 AM, shrikant patel wrote: We are using tomcat connector as follows -- Connector connectionTimeout=50 port=8080 protocol=HTTP/1.1 ... Aside from the comments made by others, I highly recommend an upgrade to 6.0.29:

Re: Tomcat Hangs with variable frequency

2010-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 12/22/2010 11:56 AM, Konstantin Kolinko wrote: If closing the result set requires reading it in full (as JTDS does), it can take significant time. Especially if the queries are something like SELECT * FROM huge_table You should

Re: IS that a good idea moving all the common libs?

2010-12-22 Thread Sylvain Laurent
On 22 déc. 2010, at 12:49, Mark Thomas wrote: It is do-able if you are prepared to accept the associated constraints: - all web apps must use the exact same version of every shared library - updating the shared libraries requires a Tomcat restart - all of the shared web apps must be well

Re: tomcat 7.0.4 on MAC my app works on Windows get...

2010-12-22 Thread Joe Greenawalt
interestingly its not - not located in either place (mac/windows tomcat) as a velocity-[version].jar I downloaded Velocity+V-Tools and added them to TOMCAT_HOME/lib folder and now it works. Its not on my mac anywhere, that i can find in a self contained jar file. Plus we don't have the

httpd/Tomcat load balancing question

2010-12-22 Thread Jeffrey Janner
Httpd 2.2.17 Tomcat 6.0.29 Sun JDK 1.6.0_22 Spring Framework (3.0.2 I think) All on Windows The Dev team is creating a new app that we are planning to deploy using httpd as a load-balancer to two Tomcats on separate servers. Httpd is configured to serve static files - graphics, css, etc. -

Re: IS that a good idea moving all the common libs?

2010-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sylvain, On 12/22/2010 12:54 PM, Sylvain Laurent wrote: On 22 déc. 2010, at 12:49, Mark Thomas wrote: It is do-able if you are prepared to accept the associated constraints: - all web apps must use the exact same version of every shared library

Re: httpd/Tomcat load balancing question

2010-12-22 Thread André Warnier
Hi. Not knowing anything about JSP per se, I would nevertheless guess that the links are written using something like img src=%getContextPath%/static/mylogo.jpg/ or similarly, instead of just plain html img src=/Portal/static/mylogo.jpg/. That probably leads the JSP compiler to think it has to

Re: tomcat 7.0.4 on MAC my app works on Windows get...

2010-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 12/22/2010 1:57 PM, Joe Greenawalt wrote: interestingly its not - not located in either place (mac/windows tomcat) as a velocity-[version].jar I downloaded Velocity+V-Tools and added them to TOMCAT_HOME/lib folder and now it works.

Re: tomcat 7.0.4 on MAC my app works on Windows get...

2010-12-22 Thread Joe Greenawalt
right, its definitely going in my pom, i just did that to get it to work, when i get back from vacation, im going to try and figure out the problem. thanks On Wed, Dec 22, 2010 at 3:55 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: unable to configure SSL in Tomcat 7.0

2010-12-22 Thread Pid *
On 22 Dec 2010, at 18:07, Ajay TS ajayts1...@gmail.com wrote: I am new to Tomcat and am trying to install Apache Tomcat 7.0.5 on Windows 7 with java version 1.6.0_21. I am able to install it fine but unable to configure SSL. I am configuring it on port 8443 based on documentation provided. After

RE: httpd/Tomcat load balancing question

2010-12-22 Thread Jeffrey Janner
Thanks, that was what I was thinking. Since the only JSP I have access to is the welcome-file, I'm not sure I can verify. Q: I would think the getContextPath would be desirable, in case we change the war-file name, etc., but I wouldn't think that would cause the jsessionID string to get

Re: httpd/Tomcat load balancing question

2010-12-22 Thread André Warnier
Addendum. You could also write the links as img src=static/mylogo.jpg/ (without leading /). That would keep them relative to the current app, and cause less work if you ever want to call the application other than Portal. You could also put the static elements in your app under Tomcat.

Re: exception fixing docbase [/axis2]

2010-12-22 Thread Pid *
On 22 Dec 2010, at 10:39, Nuria Sánchez Almodóvar n...@gatv.ssr.upm.es wrote: Good morning, We are trying to run axis2/Apache on Windows 7. If we try to launch Tomcat as Administrator it works fine and the service we have developed is shown as part of the available services for axis2.

RE: httpd/Tomcat load balancing question

2010-12-22 Thread Jeffrey Janner
In the specific case I mention below, this is the source from the jsp: link rel=icon type=image/x-icon href=c:url value=/static/images/icons/favicon.ico/ / I'm not a jsp programmer, but I'm betting it has something to do with the c:url / encapsulation. Jeff -Original Message-

RE: httpd/Tomcat load balancing question

2010-12-22 Thread Jeffrey Janner
Definitely the culprit. Now, I just have to convince the Dev team that they are, once again, a bunch of idiots. I'm sure it's some framework/tool they are using. The question now is, if I can't get them to not use it in this case, is there some way to modify httpd to strip the ;jsessionid

Re: unable to configure SSL in Tomcat 7.0

2010-12-22 Thread Pid *
Please just reply to the list. On 22 Dec 2010, at 22:49, ajayts1...@gmail.com ajayts1...@gmail.com wrote: thats the thing. the keystore file is there. I tried the real path as well. Regardless of what path I put, the error messages shows it is lookin at a different path. Does the user

Re: unable to configure SSL in Tomcat 7.0

2010-12-22 Thread Filip Hanik - Dev Lists
I'd definitely consider it a bug if tomcat continues startup in HTTP mode instead, when the file is not found. Filip On 12/22/2010 3:35 PM, Pid * wrote: On 22 Dec 2010, at 18:07, Ajay TSajayts1...@gmail.com wrote: I am new to Tomcat and am trying to install Apache Tomcat 7.0.5 on Windows 7

Re: httpd/Tomcat load balancing question

2010-12-22 Thread Pid *
On 22 Dec 2010, at 23:02, Jeffrey Janner jeffrey.jan...@polydyne.com wrote: Definitely the culprit. Now, I just have to convince the Dev team that they are, once again, a bunch of idiots. Fail. I'm sure it's some framework/tool they are using. The question now is, if I can't get them to

Re: httpd/Tomcat load balancing question

2010-12-22 Thread André Warnier
Pid * wrote: On 22 Dec 2010, at 23:02, Jeffrey Janner jeffrey.jan...@polydyne.com wrote: Definitely the culprit. Now, I just have to convince the Dev team that they are, once again, a bunch of idiots. Fail. Pid, why /do/ the static objects links embedded in the login page get back to the

Re: httpd/Tomcat load balancing question

2010-12-22 Thread Pid *
On 22 Dec 2010, at 23:38, André Warnier a...@ice-sa.com wrote: Pid * wrote: On 22 Dec 2010, at 23:02, Jeffrey Janner jeffrey.jan...@polydyne.com wrote: Definitely the culprit. Now, I just have to convince the Dev team that they are, once again, a bunch of idiots. Fail. Pid, why /do/ the

Re: unable to configure SSL in Tomcat 7.0

2010-12-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 12/22/2010 6:03 PM, Filip Hanik - Dev Lists wrote: I'd definitely consider it a bug if tomcat continues startup in HTTP mode instead, when the file is not found. I seem to remember a recent bugfix that won't allow a connector to

Re: httpd/Tomcat load balancing question

2010-12-22 Thread André Warnier
Pid * wrote: On 22 Dec 2010, at 23:38, André Warnier a...@ice-sa.com wrote: Pid * wrote: On 22 Dec 2010, at 23:02, Jeffrey Janner jeffrey.jan...@polydyne.com wrote: Definitely the culprit. Now, I just have to convince the Dev team that they are, once again, a bunch of idiots. Fail. Pid,