Re: FW: Issue with tomcat 6 connector

2011-03-20 Thread Konstantin Kolinko
2011/3/21 Krish : > Martin, > > Thanks for the email. > > Please find the answers for your questions. Before that this is connector > between sun one webserevr and Tomcat 6 not websphere. > > > a)which OS will you be targetting? > Windows 2003 > b)which JVM are you implementing? > Sun Java 1.6 > c)

Re: FW: Issue with tomcat 6 connector

2011-03-20 Thread Krish
Martin, Thanks for the email. Please find the answers for your questions. Before that this is connector between sun one webserevr and Tomcat 6 not websphere. a)which OS will you be targetting? Windows 2003 b)which JVM are you implementing? Sun Java 1.6 c)which version Tomcat will you be targett

Tomcat 6 graceful shutdown

2011-03-20 Thread Igor Cicimov
Hi, I'm running Tomcat 6.0.26 on Solaris 10 and have a question about what exactly happens during Tomcat graceful shutdown? I guess first thing it does is stop accepting new sessions on the listening ports. Sessions only or it stops accepting new requests from the already established sessions? Doe

RE: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread Martin Gainty
30 regards, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread André Warnier
Felix Schumacher wrote: ... The creation or retrieval of a session, as far as I understand it, is totally under application control. In other words, if your servlet (or JSP), when it is called, executes a HttpServletRequest.getSession() call, then it will retrieve the existing session (or creat

Re: Issue with tomcat 6 connector

2011-03-20 Thread André Warnier
Krish wrote: Hi, I am not able to get you. i am not using any apache here. Sorry, I should have said "front-end webserver". I do not know the Sun webserver nor the nsapi connector per se, but I was referring to a common source of problems which consists of giving the front-end webserver dire

Re: Installing Tomcat the Brute Force Way?

2011-03-20 Thread Hassan Schroeder
On Sun, Mar 20, 2011 at 1:10 PM, Robinson, Eric wrote: > So if I look in all the places you mentioned and I don't find any tomcat > files or links, is it safer to say that the package did not actually > install files outside the /opt/tomcat tree? > > Better yet, is there an easy way to look into

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread Felix Schumacher
On Sun, 20 Mar 2011 15:40:48 +0100, André Warnier wrote: sebb wrote: On 20 March 2011 11:19, André Warnier wrote: sol myr wrote: Hi, We have a Servelts/JSP application Tomcat6. Our javascripts issues automatic, periodic polling requests (Ajax and Comet), in order to keep the view up-to-da

RE: Installing Tomcat the Brute Force Way?

2011-03-20 Thread Robinson, Eric
> > Not necessarily. I did an rpm -qlp on > tomcat-6.0.18-0.noarch.rpm. All > > the files it installs are in /opt/tomcat > > > > The files, yes. But it is highly likely that it installs > also links from /etc/tomcat, /usr/share/tomcat, > /usr/lib/tomcat, /var/lib/tomcat and so on. > At least

Re: Issue with tomcat 6 connector

2011-03-20 Thread Krish
Hi, I am not able to get you. i am not using any apache here. Regards, Krish On Sun, Mar 20, 2011 at 4:14 AM, André Warnier wrote: > Probably in some way, the same ever recurring issue of allowing Apache to > bypass Tomcat and get to the JSP pages directly. > > > > > Krish wrote: > >> Hi Micha

Re: How to detect down of tomcat.

2011-03-20 Thread Mark Thomas
On 20/03/2011 10:22, Francis GALIEGUE wrote: > Not really, no. If, for instance, you don't have a minimal security > configuration, you can put in your code, say, System.exit(0), and > Tomcat will die without notice. Wrong. If you do that you will see a normal shut-down sequence. Mark --

Re: How to detect down of tomcat.

2011-03-20 Thread André Warnier
Exactly. And when you will have done that, you will have done exactly what a Nagios plugin would do. http://exchange.nagios.org/directory/Plugins Hide wrote: Hi, Darryl. I understood that Tomcat cannot output specific words when tomcat terminated abnormally. I will write a servlet that outpu

Re: How to detect down of tomcat.

2011-03-20 Thread Hide
Hi, Darryl. I understood that Tomcat cannot output specific words when tomcat terminated abnormally. I will write a servlet that outputs specific words. I will write a script to call it periodically. The script outputs error log when specific words are not output. Thank you very much. -

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread Stevo Slavić
If ajax requests need session state, then IMO Tomcat can not help you with that - it can not and should not differentiate requests issued by ajax and requests issued by user. In that case one solution would be to logout user with a logout request after timeout. Where ajax requests live, javascript

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread André Warnier
sebb wrote: On 20 March 2011 11:19, André Warnier wrote: sol myr wrote: Hi, We have a Servelts/JSP application Tomcat6. Our javascripts issues automatic, periodic polling requests (Ajax and Comet), in order to keep the view up-to-date. Unfortunately this prevents sessions from timing out...

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread sebb
On 20 March 2011 11:19, André Warnier wrote: > sol myr wrote: >> >> Hi, >> >> We have a Servelts/JSP application Tomcat6. >> Our javascripts issues automatic, periodic polling requests (Ajax and >> Comet), in order to keep the view  up-to-date. >> Unfortunately this prevents sessions from timing o

Re: How to detect down of tomcat.

2011-03-20 Thread Kees Jan Koster
Or you can install http://java-monitor.com It will send you an e-mail or SMS when Tomcat dies. Plus graphs for memory and file descriptors etc Kees Jan On 20 mrt. 2011, at 12:07, André Warnier wrote: > Or write the script in perl. That way, it will be portable between > Unix/Linux/Windows an

Re: How to detect down of tomcat.

2011-03-20 Thread André Warnier
Right. And many other things like that. Hide, you may save yourself a lot of time (now and in the future), by having a look at something like Nagios : http://www.nagios.org/ Otherwise, there is a big chance that you will spend a lot of time re-inventing what a lot of people have already done be

Re: How to detect down of tomcat.

2011-03-20 Thread Darryl Lewis
The other problem will be that tomcat is running, but the application is not responding. There may be nothing in the logs for this, and this is one of my most common issues. In this case, I use some custom scripts to simulate a log in and check for an expected string in the return. On 20/03/11

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread André Warnier
sol myr wrote: Hi, We have a Servelts/JSP application Tomcat6. Our javascripts issues automatic, periodic polling requests (Ajax and Comet), in order to keep the view up-to-date. Unfortunately this prevents sessions from timing out... Is there a way to tell Tomcat that some URL shouldn't affe

Re: Issue with tomcat 6 connector

2011-03-20 Thread André Warnier
Probably in some way, the same ever recurring issue of allowing Apache to bypass Tomcat and get to the JSP pages directly. Krish wrote: Hi Michael, I can't even access the jsp's under document root as well. Only html's work. I just followed this documentation. No jsp's work. That is the wh

Re: How to detect down of tomcat.

2011-03-20 Thread André Warnier
The basic problem with "abnormal termination", is that whatever you may think of, may not be called, if the termination is really abnormal. And also : define "abnormal". Hide wrote: Hi, Darryl. Thanks for your advice. My explanation seems to have been bad. I explain it a little more. It is

Re: How to detect down of tomcat.

2011-03-20 Thread André Warnier
Or write the script in perl. That way, it will be portable between Unix/Linux/Windows and basically whatever. Darryl Lewis wrote: You could write something similar using windows powershell. Do you have that installed on your server? On 20/03/11 2:14 PM, "Hide" wrote: Hi, Darryl. Thanks f

Re: Hook into Tomcat before web applications load

2011-03-20 Thread Felix Schumacher
Am Samstag, den 19.03.2011, 19:26 -0400 schrieb Pulkit Singhal: > Hello, > > Is there a hook exposed in tomcat such that a custom class can be > introduced to do some work at a point where we have a list of the > docBase attribute for all the web applications that will be hosted by > this tomcat i

Re: Installing Tomcat the Brute Force Way?

2011-03-20 Thread André Warnier
Robinson, Eric wrote: From looking at the server, it would appear that tomcat was installed using tomcat-6.0.18-0.noarch.rpm. Now you're in trouble. The 3rd-party repackaged versions of Tomcat typically scatter files all over, and then try to get things back together with symlinks. You're b

Re: How to detect down of tomcat.

2011-03-20 Thread Francis GALIEGUE
On Sun, Mar 20, 2011 at 05:05, Hide wrote: [...] > > My explanation seems to have been bad. > I explain it a little more. > > It is a method to output the information of the abnormal termination in > "catalina.log" that I want to know. > Would you teach it if you know some method? > Not really, n

Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread sol myr
Hi, We have a Servelts/JSP application Tomcat6. Our javascripts issues automatic, periodic polling requests (Ajax and Comet), in order to keep the view  up-to-date. Unfortunately this prevents sessions from timing out... Is there a way to tell Tomcat that some URL shouldn't affect session timeou

Re: Issue with tomcat 6 connector

2011-03-20 Thread Krish
Hi Michael, I can't even access the jsp's under document root as well. Only html's work. I just followed this documentation. No jsp's work. That is the whole problem. Please let me know the correct configuration. http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html Regards, Krish

Re: Issue with tomcat 6 connector

2011-03-20 Thread Michael Ludwig
Krish schrieb am 19.03.2011 um 17:31 (-0700): > I am using tomcat 6.0.20. In the frontend i have sun one webserver 7 > using nsapi_redirect-1.2.31 connector. > >My OS is windows server 2003 32bit. > > I am trying to create a connector using the document below. > > http://tomcat.apache.org/co