RE: How to detect down of tomcat.

2011-03-21 Thread Jorge Infante Osorio
Hi Darryl. I need a script that do the same you mention: " For myself, I have scripts that detects when the service is down, sends me an email, then tries to restart it, then will email if it has managed to recover it. If it can't restart it after 5 minutes, then I get an SMS." Can you share it?

RE: Tomcat 6 graceful shutdown

2011-03-21 Thread Caldarale, Charles R
> From: Igor Cicimov [mailto:icici...@gmail.com] > Subject: Re: Tomcat 6 graceful shutdown > What can I do to trouble shoot this and find exactly where > the problem is? (except taking stack trace on the hanged > process of course) Taking a thread dump is pretty much the only way. Other than

Re: Tomcat 6 graceful shutdown

2011-03-21 Thread Igor Cicimov
Hi Mark, Thanks for your reply. I guess this means that if Tomcat hangs during shutdown then something is wrong with the application and it can't close the threads? What can I do to trouble shoot this and find exactly where the problem is? (except taking stack trace on the hanged process of course

RE: Can't move files using symbolic links (allowLinking=true)

2011-03-21 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Can't move files using symbolic links (allowLinking=true) > The perl documentation for rename() though, has this to say : > rename OLDNAME,NEWNAME > > perl itself being written in C, is usually pretty close to the C > library. But m

Re: Response Swapping

2011-03-21 Thread André Warnier
Mark Thomas wrote: On 21/03/2011 22:06, SQ wrote: Mark Thomas wrote: On 18/03/2011 21:05, SQ wrote: Environment: Solaris 10 Apache 2.2.16 mod_jk 1.2.31 <-- Tomcat 5.5.30 JVM 1.6.0_14 Which AJP connector are you using? Is APR/native being used? AJP13.

Re: Can't move files using symbolic links (allowLinking=true)

2011-03-21 Thread André Warnier
André Warnier wrote: Caldarale, Charles R wrote: From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Subject: Re: Can't move files using symbolic links (allowLinking=true) Maybe a guess : under Unix/Linux, "move" (mv) is a "rename", and it

Re: Can't move files using symbolic links (allowLinking=true)

2011-03-21 Thread André Warnier
Caldarale, Charles R wrote: From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Subject: Re: Can't move files using symbolic links (allowLinking=true) Maybe a guess : under Unix/Linux, "move" (mv) is a "rename", and it is not the same as "c

Re: Response Swapping

2011-03-21 Thread Mark Thomas
On 21/03/2011 22:06, SQ wrote: > Mark Thomas wrote: >> >> On 18/03/2011 21:05, SQ wrote: >>> >>> Environment: >>> Solaris 10 >>> Apache 2.2.16 >>> mod_jk 1.2.31 >>> Tomcat 5.5.30 >>> JVM 1.6.0_14 >> >>> Which AJP connector are you using? Is APR/native being used? >> >> AJP13. That doesn't answer m

Re: session replication question in 7.0.10

2011-03-21 Thread János Löbb
Sorry for the noise, one of the web.xml did not have the tag :( Now it is working fine. János On Mar 21, 2011, at 5:34 PM, János Löbb wrote: > Hi, > > I have two machines MachineA and MachineB with osx 10.6.6 on them. Both > machines have one tomcat 7.0.10 running. On both machine the serv

Re: session replication question in 7.0.10

2011-03-21 Thread Mark Thomas
On 21/03/2011 21:34, János Löbb wrote: > Hi, > > I have two machines MachineA and MachineB with osx 10.6.6 on them. Both > machines have one tomcat 7.0.10 running. On both machine the server.xml was > modified minimally: > - Uncommented the Cluster tag > - added jvmRoute=tomcat(x) to t

Re: Response Swapping

2011-03-21 Thread SQ
Hey Mark, Thanks for the response. I have answered your questions below. Mark Thomas wrote: > > On 18/03/2011 21:05, SQ wrote: >> >> Environment: >> Solaris 10 >> Apache 2.2.16 >> mod_jk 1.2.31 >> Tomcat 5.5.30 >> JVM 1.6.0_14 > >>Which AJP connector are you using? Is APR/native being used?

RE: Can't move files using symbolic links (allowLinking=true)

2011-03-21 Thread Caldarale, Charles R
> From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] > On Behalf Of Peter Crowther > Subject: Re: Can't move files using symbolic links (allowLinking=true) > > Maybe a guess : under Unix/Linux, "move" (mv) is a "rename", > > and it is not the same as "copy + delete origi

Re: Can't move files using symbolic links (allowLinking=true)

2011-03-21 Thread Peter Crowther
On 21 March 2011 20:39, André Warnier wrote: > Maybe a guess : under Unix/Linux, "move" (mv) is a "rename", and it is not > the same as "copy + delete original". And a "move" (rename) works as long > as the source and target are inside the same filesystem, but not if they are > on different file

session replication question in 7.0.10

2011-03-21 Thread János Löbb
Hi, I have two machines MachineA and MachineB with osx 10.6.6 on them. Both machines have one tomcat 7.0.10 running. On both machine the server.xml was modified minimally: - Uncommented the Cluster tag - added jvmRoute=tomcat(x) to the Engine tag where x member of {1,3}, - c

Re: tomcat issue with DBCP connection pool

2011-03-21 Thread Jorge Medina
Are you sure it is due to the stored procedure? You can get that error if you don't close all database objects. Make sure you close resultsets, statements, etc in a "finally" block throughout all your code. On Mon, Mar 21, 2011 at 4:59 PM, Propes, Barry L wrote: > And to thisis it absolute

RE: tomcat issue with DBCP connection pool

2011-03-21 Thread Propes, Barry L
And to thisis it absolutely necessary to use the SYS_REFCURSOR in Oracle? I use several packages and procesures and never use this! Granted, I may have many less records than you in your DB table, but I was just wondering. Perhaps it is. > BTW, my application calls a stored procedure which

Re: Can't move files using symbolic links (allowLinking=true)

2011-03-21 Thread André Warnier
Goyo wrote: Yeah, it's a very old version. But we can't change it, anyway. The details about the moving: The application (written in C), first, generates a new file which is stored in one directory, say "origin". This step is perfectly made. Then, the application moves this file to another direc

Re: CSRF_NONCE

2011-03-21 Thread János Löbb
On Mar 21, 2011, at 3:13 PM, Mark Thomas wrote: > On 21/03/2011 19:05, János Löbb wrote: >> When I try to get to the manager application on one or the other balance >> members >> http://bml0066.yalepath.org:8180/manager/html >> http://bml0065.yalepath.org:8380/manager/html > > Clustering the ma

Re: Can't move files using symbolic links (allowLinking=true)

2011-03-21 Thread Peter Crowther
On 21 March 2011 17:36, Goyo wrote: The (another) problem is that we can't access the source code :S *chuckle* Gotta love configurable code. OK, so the issue is that you're short of space. How about mounting a partition at origin/target? Or even origin, depending how short of space you are. I

Re: CSRF_NONCE

2011-03-21 Thread Mark Thomas
On 21/03/2011 19:05, János Löbb wrote: > When I try to get to the manager application on one or the other balance > members > http://bml0066.yalepath.org:8180/manager/html > http://bml0065.yalepath.org:8380/manager/html Clustering the manager application is a bad idea. It is not designed to be cl

CSRF_NONCE

2011-03-21 Thread János Löbb
Hi, On two OSX 10.6.6 machine I try to make a 4 member tomcat cluster. On MachineA tomcat3 and tomcat4, on MachineB tomcat1 and tomcat2. I use MachineA as a reverse proxy. Apache2 is 2.2.17, mod_jk is 1.2.31 and tomcat is 7.0.10 When I try to get to the manager application on one or the other

Re: Can't move files using symbolic links (allowLinking=true)

2011-03-21 Thread Goyo
The (another) problem is that we can't access the source code :S 2011/3/21 Peter Crowther > On 21 March 2011 16:35, Goyo wrote: > > > We want to move a file from origin/ to origin/target/ > > Previously, this movement was made perfect > > Then, we change origin/target/ for a symlink called targ

Re: FW: Issue with tomcat 6 connector

2011-03-21 Thread Krish
Hi, Can somebody help me with this issue. Appreciate your help or let me know what would be the best solution to implement this. Thanks. On Sun, Mar 20, 2011 at 11:17 PM, Krish wrote: > Martin, > > Thanks for the email. > > Please find the answers for your questions. Before that this is conne

RE: Tomcat 6.0.32, Http11NioProtocol and log poll

2011-03-21 Thread AReid
I don't think I do this but I'm double-checking. Thanks. After writing to the OutputStream, should I just close the OutputStream which seems to generate a CometEvent.CLOSE or explicitly call event.close() after closing the stream? Thanks, Adam "Caldarale, Charles R" 21/03/2011 15:47 Plea

Re: Can't move files using symbolic links (allowLinking=true)

2011-03-21 Thread Peter Crowther
On 21 March 2011 16:35, Goyo wrote: > We want to move a file from origin/ to origin/target/ > Previously, this movement was made perfect > Then, we change origin/target/ for a symlink called target which points to > another path in another partition. > Now, it doesn't move the file when using the

Re: Can't move files using symbolic links (allowLinking=true)

2011-03-21 Thread Goyo
Yeah, it's a very old version. But we can't change it, anyway. The details about the moving: The application (written in C), first, generates a new file which is stored in one directory, say "origin". This step is perfectly made. Then, the application moves this file to another directory "target".

RE: Tomcat 6.0.32, Http11NioProtocol and log poll

2011-03-21 Thread Caldarale, Charles R
> From: ar...@bca-group.com [mailto:ar...@bca-group.com] > Subject: Tomcat 6.0.32, Http11NioProtocol and log poll > Occasionally (like 0.1% of the time), when another web page > in a second frame reloads (Independent JSP generated from > SpringController in same container) the page loads with w

Tomcat 6.0.32, Http11NioProtocol and log poll

2011-03-21 Thread AReid
Hi, I am using Tomcat 6.0.32 with the Http11NioProtocol connector to implement long polling. My comet processor is holding the HttpSevletResponse (After receiving a CometEvent.BEGIN) on a queue until an event is ready to send back. When it sends back the event, it is writing a binary stream to

Re: http thread stops responding

2011-03-21 Thread alexis
i made some changes to the code. (posted one jsp at the end of this mail) . change was, to avoid to store values in the session and keeped the values as hiddens in forms. looks like it worked. But . yes, connections are closed, im requesting a connection from the datasource and after use it i

Re: http thread stops responding

2011-03-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 3/21/2011 8:17 AM, alexis wrote: > Problem is, after 2 or 3 reloads or moving from one jsp to another > one, pages are not loaded anymore, browser keeps loading for ever. Take some thread dumps. I suspect that you are waiting for a databas

Re: tomcat issue with DBCP connection pool

2011-03-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 3/21/2011 6:59 AM, the_biswa wrote: > I've written a thread program where in the run method I'm opening an > HTTPURLConnection and feeding a valid input and reading the server response. Do you launch this thread during norm

Re: Max value of MaxPermSize

2011-03-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abhishek, On 3/21/2011 6:14 AM, abhishek jain wrote: >>> also am i writing these values in the correct location, >> >> With the tomcat base startup scripts, this should be in >> $CATALINA_BASE/setenv.sh. This file will be sourced by catalina.sh if >>

Re: Tomcat v7 Embedded

2011-03-21 Thread Mark Thomas
On 21/03/2011 12:55, Jesse Farinacci wrote: > Bump! :-) This feature doesn't (yet) exist. Patches welcome. Mark > > On Thu, Mar 17, 2011 at 5:12 PM, Jesse Farinacci wrote: >> >> I am trying to embed Tomcat v7.0.11 into a self-contained, executable >> jar. The jar is created using Maven (assemb

Re: [OT] Tomcat 7: manager application takes forever to deploy - or not

2011-03-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Francis, On 3/19/2011 5:49 AM, Francis GALIEGUE wrote: > On Fri, Mar 18, 2011 at 22:45, Christopher Schultz > wrote: > [...] >> >> I'm interested to see how you are able to launch Tomcat and have your >> script continue only after all webapps have be

Re: Can't move files using symbolic links (allowLinking=true)

2011-03-21 Thread André Warnier
Goyo wrote: Hi. I need to use a symbolic link to access a certain path in my server, where I'm using Jakarta Tomcat 4.1.18. Oh, a real old-timer, he ? You know how old this is, right ? I think some people on this list may still have been in primary school when it was released. See http://tom

Can't move files using symbolic links (allowLinking=true)

2011-03-21 Thread Goyo
Hi. I need to use a symbolic link to access a certain path in my server, where I'm using Jakarta Tomcat 4.1.18. We stablished a symbolic link to another path. At first, tomcat didn't see this path through the symlink, but we searched for it and found the allowLinking=true feature. Now, it sees the

Re: Tomcat v7 Embedded

2011-03-21 Thread Jesse Farinacci
Bump! :-) On Thu, Mar 17, 2011 at 5:12 PM, Jesse Farinacci wrote: > > I am trying to embed Tomcat v7.0.11 into a self-contained, executable > jar. The jar is created using Maven (assembly plugin) which packages > the required Tomcat embedded classes and also an unpacked WAR archive. > The listed

Re: Max value of MaxPermSize

2011-03-21 Thread André Warnier
abhishek jain wrote: also am i writing these values in the correct location, With the tomcat base startup scripts, this should be in $CATALINA_BASE/setenv.sh. This file will be sourced by catalina.sh if it exists. Hi I have a feeling that i am writing in wrong place, setenv.sh dont exist in my

http thread stops responding

2011-03-21 Thread alexis
Hello, I have a situation as follows. 3 jsp pages, using a connection pool to postgres. All 3 pages are the same regarding code, only varies the tables where queries are directed. I have 2 or 3 selects on each page where I store the user selection on the session with session.setattribute I get

Re: Max value of MaxPermSize

2011-03-21 Thread Igor Cicimov
What kind of memory errors do you have? I have never seen application that uses 2GB of permanent memory. Usually if you have "out of memory" errors you need to increase the -Xmx1024M and not the permanent memory size. In your setting you have given the JVM heap only 1GB and the permanent memory 2GB

tomcat issue with DBCP connection pool

2011-03-21 Thread the_biswa
Hi I've an web application (Application + Hibernate + DBCP datasource + Oracle) deployed in tomcat. Problem: I've written a thread program where in the run method I'm opening an HTTPURLConnection and feeding a valid input and reading the server response. Running the program for as many as 600

Re: Max value of MaxPermSize

2011-03-21 Thread abhishek jain
> > also am i writing these values in the correct location, > > With the tomcat base startup scripts, this should be in > $CATALINA_BASE/setenv.sh. This file will be sourced by catalina.sh if > it exists. > Hi I have a feeling that i am writing in wrong place, setenv.sh dont exist in my system, do

Re: Max value of MaxPermSize

2011-03-21 Thread Francis GALIEGUE
On Mon, Mar 21, 2011 at 10:24, abhishek jain wrote: [...] > what should be the appropriate settings, and on what basis should i select > them, i want max memory given to java. > You cannot really know offhand what permgen size you'll need. If you use a recent enough Sun JVM, however, you'll be ab

Re: Max value of MaxPermSize

2011-03-21 Thread abhishek jain
On Mon, Mar 21, 2011 at 2:40 PM, Mark Thomas wrote: > On 21/03/2011 08:01, abhishek jain wrote: > > hi friends, > > I have to increase size of MaxPermSize by altering this line on > catalina.sh > > as i am having memory errors. > > Those settings look very, very odd. > > hi, what should be the ap

Re: Max value of MaxPermSize

2011-03-21 Thread Mark Thomas
On 21/03/2011 08:01, abhishek jain wrote: > hi friends, > I have to increase size of MaxPermSize by altering this line on catalina.sh > as i am having memory errors. Those settings look very, very odd. > I wanted to know what is hte max size i can set as i have 3.5 GB RAM (on a > VPS) and most of

Re: Tomcat 6 graceful shutdown

2011-03-21 Thread Mark Thomas
On 21/03/2011 02:15, Igor Cicimov wrote: > 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 aren't received on ports, requ

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

2011-03-21 Thread Mark Thomas
On 21/03/2011 08:52, Felix Schumacher wrote: > On Sun, 20 Mar 2011 22:26:46 +0100, André Warnier wrote: You are both right on some counts and both wrong on some counts. The Servlet spec (section 7.6 in Servlet 3.0) requires that processing a request associated with a session (i.e. has a session I

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

2011-03-21 Thread Felix Schumacher
On Sun, 20 Mar 2011 22:26:46 +0100, André Warnier wrote: 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.getSessio

Max value of MaxPermSize

2011-03-21 Thread abhishek jain
hi friends, I have to increase size of MaxPermSize by altering this line on catalina.sh as i am having memory errors. I wanted to know what is hte max size i can set as i have 3.5 GB RAM (on a VPS) and most of this is free. i am runnign Centos , tomcat 5.5 . if [ -r "$CATALINA_HOME"/bin/tomcat-ju

Re: FW: Issue with tomcat 6 connector

2011-03-21 Thread Krish
Hi, Thanks for the reply. I changed the obj.conf as u suggested. Still it is same. It is not recognizing any jsp file. It says 404 file not found error. It only looks for html pages. Regards, Krish On Sun, Mar 20, 2011 at 11:40 PM, Konstantin Kolinko wrote: > 2011/3/21 Krish : > > Martin, > >