Re: Application crash after Migrate to different ESX

2011-05-18 Thread הילה
UPDATE- this behavior occur even when I'm disconnecting the Network card from the VM settings and connecting it again. afterwards, the keep alive is alternately unavailable. looks like it's not always trying to approach the DB opened wireshark and saw that ip.addr==DB IP ADDRESS is not always show

Re: Tomcat5w GUI application

2011-05-18 Thread Venky Vasant
Thank you this worked. However another question, i have jdbc drivers in the classpath, i tired copying whole folder under WEB-INF it was not picked up. i did not try copying the sqljdbc.jar right under web-inf as i am not very sure of how other file like .dll get used. any insight would help. R

Re: Exceptions when starting Tomcat

2011-05-18 Thread André Warnier
Caldarale, Charles R wrote: From: Michael [mailto:mtarullo...@optonline.net] Subject: RE: Exceptions when starting Tomcat BTW, Chuck the first machine I ever worked on in my professional career was a Burroughs mainframe, back before Burroughs became Unisys. So you're teaching an old dog new

Re: Application crash after Migrate to different ESX

2011-05-18 Thread André Warnier
הילה wrote: UPDATE- this behavior occur even when I'm disconnecting the Network card from the VM settings and connecting it again. afterwards, the keep alive is alternately unavailable. looks like it's not always trying to approach the DB opened wireshark and saw that ip.addr==DB IP ADDRESS is n

Re: Application crash after Migrate to different ESX

2011-05-18 Thread chris derham
> > this behavior occur even when I'm disconnecting the Network card from the > VM > settings and connecting it again. > afterwards, the keep alive is alternately unavailable. looks like it's not > always trying to approach the DB opened wireshark and saw that ip.addr==DB > IP ADDRESS is not always

Re: how to track tomcat throughput?

2011-05-18 Thread Dan Checkoway
I've messed around a bit, and I figured out a more reliable way to do it...but it's pretty nasty. Basically I'm iterating and grabbing the "requestCount" attribute from all of the RequestProcessor mbeans, and just tallying them up. Like I said, it's nasty, since you need to know the max possible

Re: how to track tomcat throughput?

2011-05-18 Thread Jess Holle
I've done a servlet request filter for this and many other such things. I've always been a bit surprised by how little of this data Tomcat collects -- but that's fine as one can do a servlet request filter that will work in any servlet engine and collect everything you want. That said, collec

Re: how to track tomcat throughput?

2011-05-18 Thread Dan Checkoway
Gotcha...yeah, it would be trivial to slap an AtomicLong counter in a filter, but I'd hate to double the synchronization hit if tomcat already has this counter available centrally. I'd like to hear an authoritative answer from the tomcat devs, if possible, as to whether tomcat is already doing thi

Re: how to track tomcat throughput?

2011-05-18 Thread Mark Thomas
On 18/05/2011 13:21, Dan Checkoway wrote: > Gotcha...yeah, it would be trivial to slap an AtomicLong counter in a > filter, but I'd hate to double the synchronization hit if tomcat already has > this counter available centrally. > > I'd like to hear an authoritative answer from the tomcat devs, if

Re: how to track tomcat throughput?

2011-05-18 Thread David kerber
On 5/18/2011 8:21 AM, Dan Checkoway wrote: Gotcha...yeah, it would be trivial to slap an AtomicLong counter in a filter, but I'd hate to double the synchronization hit if tomcat already has this counter available centrally. I'd like to hear an authoritative answer from the tomcat devs, if possib

Re: [OT?] Virtual hosting - does the port need to match the URL port?

2011-05-18 Thread André Warnier
sebb wrote: ... If "stimpy" resolves to "localhost", what is wrong with that? To be precise, "localhost" would resolve to whatever the local hosts file says it does (usually 127.0.0.1), and "stimpy" would resolve to whatever either the local hosts file, or the DNS system, says it does. (Alt

Re: how to track tomcat throughput?

2011-05-18 Thread Dan Checkoway
Ah, there it is...thanks! Mark, any idea why sometimes the GlobalRequestProcessor appears with the ObjectName: Catalina:name="http-nio-80",type=GlobalRequestProcessor ...and other times it shows up as: Catalina:type=GlobalRequestProcessor,name="http-nio-80" ? Thanks, Dan On Wed, May 18, 2011

Re: Application crash after Migrate to different ESX

2011-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 הילה, On 5/18/2011 4:20 AM, הילה wrote: > this behavior occur even when I'm disconnecting the Network card from the VM > settings and connecting it again. At least it's reproducible in a way that you're willing to try in production. What about reprod

Re:

2011-05-18 Thread alex zaim
http://Ramostech.com/cool01.11.php?ID=730 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re:

2011-05-18 Thread alexis
asshole On May 18, 2011, at 12:59 PM, alex zaim wrote: > http://Ramostech.com/cool01.11.php?ID=730 > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.o

Re: [OT?] Virtual hosting - does the port need to match the URL port?

2011-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/18/2011 9:53 AM, André Warnier wrote: > But if we refer to Konstantin's earlier post, Tomcat would > nevertheless pick up that port, and pass it to the webapp/context (as > a request attribute ?). It's stored in the request object, availa

Re: how to track tomcat throughput?

2011-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan, On 5/18/2011 8:21 AM, Dan Checkoway wrote: > Gotcha...yeah, it would be trivial to slap an AtomicLong counter in a > filter, but I'd hate to double the synchronization hit if tomcat already has > this counter available centrally. You could cheat

Re: how to track tomcat throughput?

2011-05-18 Thread Dan Checkoway
Chris, Then I'd be faced with 400 (executor maxThreads) separate counter instances, which doesn't solve the centralization thing I was looking for. Mark's suggestion about using GlobalRequestProcessor seems to be doing the trick...now if only it would be named consistently in mbean space... :-)

Re: Tomcat5w GUI application

2011-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Venkat, On 5/18/2011 5:18 AM, Venky Vasant wrote: > However another question, i have jdbc drivers in the classpath, i tired > copying whole folder under WEB-INF it was not picked up. > i did not try copying the sqljdbc.jar right under web-inf as i am

Re: mojk and utf8 charset problem

2011-05-18 Thread Thierry Templier
Hello, Sorry for my very late answer! I took me time to solve the problem basing on what you suggested. In fact, there are two different ones: - I use Tiles and I don't specify header in all elements building the final page (<%@page language="java" contentType="text/html; charset=UTF-8"%>). Af

Re: how to track tomcat throughput?

2011-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan, On 5/18/2011 12:10 PM, Dan Checkoway wrote: > Then I'd be faced with 400 (executor maxThreads) separate counter instances, > which doesn't solve the centralization thing I was looking for. Mark's > suggestion about using GlobalRequestProcessor s

Re: how to track tomcat throughput?

2011-05-18 Thread Dan Checkoway
7.0.14, I'm a bleeding edge adopter. :-) On Wed, May 18, 2011 at 2:35 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Dan, > > On 5/18/2011 12:10 PM, Dan Checkoway wrote: > > Then I'd be faced with 400 (executor maxThreads) sep

Re: how to track tomcat throughput?

2011-05-18 Thread Mark Thomas
On 18/05/2011 17:10, Dan Checkoway wrote: > Chris, > > Then I'd be faced with 400 (executor maxThreads) separate counter instances, > which doesn't solve the centralization thing I was looking for. Mark's > suggestion about using GlobalRequestProcessor seems to be doing the > trick...now if only

how to access tomcat server version info in runtime?

2011-05-18 Thread Yongqin Xu
Hello, If I am using Tomcat 7, what's the best way for my web app to retrieve the sever version info? thanks.

Re: how to track tomcat throughput?

2011-05-18 Thread Dan Checkoway
Good question. I'm using the ObjectName(String) constructor to query the mbean. I'll give it a shot with ObjectName(String, Hashtable) instead and see if parameterizing like that helps... Dan On Wed, May 18, 2011 at 6:05 PM, Mark Thomas wrote: > On 18/05/2011 17:10, Dan Checkoway wrote: > > C

Autodeploy and clear work directory

2011-05-18 Thread Kaushal Shriyan
Hi, I am running TC 5.5.27, Ubuntu Linux Server 8.04 and Java6U24. Is there a way to clear the work directory automatically when i deploy any new war under webapps and i always need to restart tomcat server whenever i deploy new war. is there a forceful auto deploy feature ? Regards, Kaushal -

Re: how to access tomcat server version info in runtime?

2011-05-18 Thread Konstantin Kolinko
2011/5/19 Yongqin Xu : > If I am using Tomcat 7, what's the best way for my web app to retrieve the > sever version info? thanks. See webapps/ROOT/index.jsp for an example. http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q4 - T

Re: Application crash after Migrate to different ESX

2011-05-18 Thread הילה
Hey, All of you basically asked about the connection pool I'm using. I stated at the beginning that I'm using JDBC connection pool. I implement it in the xml file under conf\catalina\localhost, under resource tag- *factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"* with placing tomcat-jdbc.ja