Re: Tomcat error com.inet.tds.at: [TDS Driver]java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind Windows 2008

2011-04-12 Thread André Warnier
On the face of it, this has absolutely nothing to do with Tomcat. Why did you think it relates to tomcat ? Arunkumar Janarthanan wrote: Hi All, I have a scheduler application was running on win 2k fine, when we moved this application to windows 2008 there is an issue appearing the windows

Re: v7.0.12 changelog question

2011-04-12 Thread Stefan Thurnherr
Thanks, Mark, for the clarification. Manually unpacking the WAR file is what I am doing instead. stefan. On 2011-04-11 21:43, ma...@apache.org wrote: tefan Thurnherrst.mailingli...@gmail.com wrote: Hi From the Tomcat v7.0.12 changelog [1] : Don't unpack WAR files if they are not

Re: OT: Versioning in Javascript Files

2011-04-12 Thread Francis GALIEGUE
On Mon, Apr 11, 2011 at 23:47, George Sexton geor...@mhsoftware.com wrote: I'm looking for ideas on how other people are doing versioning in Javascript files. I'm hitting issues if I change my files in an incompatible way, or I upgrade files. For example, if I upgrade from DOJO 1.5 to DOJO

Re: [ win xp and win server 2003 ] tomcat utf8 encoding

2011-04-12 Thread Tomislav Brkljačić
Cris, Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom, On 4/9/2011 12:53 PM, Tomislav Brkljačić wrote: I gave the add the filter and bunch of Spring jars method a try and it turned out to be a success! You don't need a bunch of Spring jars... just

Question about HttpSessionBindingListener and getAttribute in valueBound()

2011-04-12 Thread Thomas Chabaud
Hi, I have problem with Tomcat 6.0 StandardSession implementation. We have an application who calls setAttribute(myAttr, myValue), and try to get this attribute in a method launched in valueBound(), but only gets null value. According to source code, the setAttribute() method calls valueBound

Re: Question about HttpSessionBindingListener and getAttribute in valueBound()

2011-04-12 Thread Thomas Chabaud
I found the answer in the servlet specification : SRV.7.4Binding Attributes into a Session The valueBound method must be called before the object is made available via the getAttribute method of the HttpSession interface. Sorry for the noise :-\ Le 12/04/2011 11:05, Thomas Chabaud a écrit :

Re: OT: Versioning in Javascript Files

2011-04-12 Thread Ognjen Blagojevic
On 11.4.2011 23:47, George Sexton wrote: I'm looking for ideas on how other people are doing versioning in Javascript files. I'm hitting issues if I change my files in an incompatible way, or I upgrade files. For example, if I upgrade from DOJO 1.5 to DOJO 1.6, the user's browsers are not

Re: How to hide tomcat console when installed as service

2011-04-12 Thread Amit k
Hi, Tomcat documentation says that if tomcat is installed as service, it doesn't show up the console. But in my case this doesn't hold true. Again if the console is required for std out/err, then redirecting them to file etc wont help to display the console? Really is there not any way out? On

Simple Tomcat monitoring ?

2011-04-12 Thread André Warnier
Hi. I have a Linux application server running Apache + mod_jk + tomcat 5.5 (I know that it is relatively old; and to compound the heresy, it is installed from a Debian package). The hardware is quite OK (quad-core fast CPU, 12 GB RAM). Apache is serving most of the static content, and passing

Re: Simple Tomcat monitoring ?

2011-04-12 Thread Francis GALIEGUE
On Tue, Apr 12, 2011 at 12:20, André Warnier a...@ice-sa.com wrote: [...] Considering all the above, which would be the easiest/quickest way of starting to figure out what this tomcat is doing, and where the system/application bottleneck might be ? We have the following tools, all very easy

Re: OT: Versioning in Javascript Files

2011-04-12 Thread Tim Funk
I've loathed this issue too. There are 2 major cases to deal with - Libraries changing (like dojo, prototype, etc) - Your external files changing The first is easy to change .. in that you create a /scripts/ dir and all 3rd party libraries go into their own directory with version number. New

Re: Simple Tomcat monitoring ?

2011-04-12 Thread Borut Hadžialić
I'm gonna try to make a guess here :) top - 08:20:02 up 72 days, 9:39, 4 users, load average: 6.83, 5.63, 3.16 Tasks: 265 total, 1 running, 264 sleeping, 0 stopped, 0 zombie Cpu(s): 0.2%us, 0.1%sy, 0.0%ni, 99.2%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 12328624k total,

Re: OT: Versioning in Javascript Files

2011-04-12 Thread Francis GALIEGUE
On Tue, Apr 12, 2011 at 13:31, Tim Funk funk...@apache.org wrote: [...] The second is trickier. Relying on random query string is not fun since it may cause some browsers/proxies to be less prone to caching which can really affect performance. Especially if the the query string is dynamic. An

Re: Simple Tomcat monitoring ?

2011-04-12 Thread André Warnier
Borut Hadžialić wrote: I'm gonna try to make a guess here :) top - 08:20:02 up 72 days, 9:39, 4 users, load average: 6.83, 5.63, 3.16 Tasks: 265 total, 1 running, 264 sleeping, 0 stopped, 0 zombie Cpu(s): 0.2%us, 0.1%sy, 0.0%ni, 99.2%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st Mem:

Re: Simple Tomcat monitoring ?

2011-04-12 Thread André Warnier
Francis GALIEGUE wrote: On Tue, Apr 12, 2011 at 12:20, André Warnier a...@ice-sa.com wrote: [...] Considering all the above, which would be the easiest/quickest way of starting to figure out what this tomcat is doing, and where the system/application bottleneck might be ? We have the

Re: Simple Tomcat monitoring ?

2011-04-12 Thread Borut Hadžialić
You could check it apache threads are the problem by using something like: ps -feH | grep httpd | wc (or something else instead httpd to hit only apache processes) If the line number gets close to 150 (Apache (prefork) MaxClients) then that is the problem. On Tue, Apr 12, 2011 at 2:18 PM,

RE: Simple Tomcat monitoring ?

2011-04-12 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Simple Tomcat monitoring ? 5396 root 20 0 832m 610m 9224 S 100 5.1 12:32.43 java the second task visible above is the interface to the search engine). Which seems to be single-thread and thus a possible bottleneck. The

Re: Simple Tomcat monitoring ?

2011-04-12 Thread Francis GALIEGUE
On Tue, Apr 12, 2011 at 14:26, André Warnier a...@ice-sa.com wrote: Francis GALIEGUE wrote: On Tue, Apr 12, 2011 at 12:20, André Warnier a...@ice-sa.com wrote: [...] Considering all the above, which would be the easiest/quickest way of starting to figure out what this tomcat is doing, and

RE: How to hide tomcat console when installed as service

2011-04-12 Thread Caldarale, Charles R
From: Amit k [mailto:opteemuspr...@gmail.com] Subject: Re: How to hide tomcat console when installed as service Really is there not any way out? Did you bother to read the link that Mladen provided? http://msdn.microsoft.com/en-us/library/ms683502%28v=vs.85%29.aspx - Chuck THIS

Re: Simple Tomcat monitoring ?

2011-04-12 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Simple Tomcat monitoring ? 5396 root 20 0 832m 610m 9224 S 100 5.1 12:32.43 java the second task visible above is the interface to the search engine). Which seems to be single-thread and thus a

Re: [ win xp and win server 2003 ] tomcat utf8 encoding

2011-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom, On 4/12/2011 4:22 AM, Tomislav Brkljačić wrote: After that i added the whole spring distro, ran the test scenarios and didn't find any problems. I guess if that works I just think it's unnecessary because you can use a filter from

Re: OT: Versioning in Javascript Files

2011-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ognjen, On 4/12/2011 5:37 AM, Ognjen Blagojevic wrote: For all static resources (css, images, js) you might add artificial parameter that will trigger reload, like this: href=some.css?v=${parameter} Some clients and proxies will refuse to

Re: OT: Versioning in Javascript Files

2011-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 4/12/2011 7:31 AM, Tim Funk wrote: The second is trickier. Relying on random query string is not fun since it may cause some browsers/proxies to be less prone to caching which can really affect performance. Especially if the the query

Fw: Tomcat manager fails and can't tell why.

2011-04-12 Thread Yucca Nel
From: yucca...@hotmail.com Sent: Tuesday, April 12, 2011 4:45 PM To: Tomcat Users List Subject: Tomcat manager fails and can't tell why. Hello Tomcat is playing games and I donno why. I copy my tomcat-users.xml to production and use credentials(tomcat username and password tomcat) As

Re: Fw: Tomcat manager fails and can't tell why.

2011-04-12 Thread André Warnier
Yucca Nel wrote: From: yucca...@hotmail.com Sent: Tuesday, April 12, 2011 4:45 PM To: Tomcat Users List Subject: Tomcat manager fails and can't tell why. Hello Tomcat is playing games and I donno why. I copy my tomcat-users.xml to production and use credentials(tomcat username and password

Re: Tomcat manager fails and can't tell why.

2011-04-12 Thread Yucca Nel
I do.. :) It confuses the heck out of me. Seems to fail because I change to alphanumeric password that is longer than 4 chars long. I also make sure to close all browser tabs so that I start a new session. Are there any illegal chars when using the xml? -Original Message- From:

Re: Tomcat manager fails and can't tell why.

2011-04-12 Thread David kerber
On 4/12/2011 11:04 AM, Yucca Nel wrote: I do.. :) It confuses the heck out of me. Seems to fail because I change to alphanumeric password that is longer than 4 chars long. I also make sure to close all browser tabs so that I Do you close the entire browser? I don't think just closing tabs

Re: Tomcat manager fails and can't tell why.

2011-04-12 Thread Yucca Nel
Indeed :D, Seems to be an issue when I add an ampersand to the password! -Original Message- From: David kerber Sent: Tuesday, April 12, 2011 5:07 PM To: Tomcat Users List Subject: Re: Tomcat manager fails and can't tell why. On 4/12/2011 11:04 AM, Yucca Nel wrote: I do.. :) It

RE: Tomcat manager fails and can't tell why.

2011-04-12 Thread Caldarale, Charles R
From: Yucca Nel [mailto:yucca...@live.co.za] Subject: Re: Tomcat manager fails and can't tell why. Seems to be an issue when I add an ampersand to the password! Which is not an alphanumeric character, contrary to your earlier postings. Probably some escaping required when using

Re: Tomcat manager fails and can't tell why.

2011-04-12 Thread David kerber
On 4/12/2011 11:17 AM, Yucca Nel wrote: Indeed :D, Seems to be an issue when I add an ampersand to the password! That doesn't surprise me a bit. I don't think I've run into any password system that will accept that character, though I guess there must be some since you're using it. D

Re: Tomcat manager fails and can't tell why.

2011-04-12 Thread Yucca Nel
Apologies, I seem to confuse myself, but am happy enough with that explanation :D I am ill with a brain tumour and trying to get back in swing of things after surgery. Prayers are welcome:D Yucca -Original Message- From: Caldarale, Charles R Sent: Tuesday, April 12, 2011 5:23 PM

Re: Tomcat manager fails and can't tell why.

2011-04-12 Thread David Smith
On 4/12/2011 11:28 AM, David kerber wrote: On 4/12/2011 11:17 AM, Yucca Nel wrote: Indeed :D, Seems to be an issue when I add an ampersand to the password! That doesn't surprise me a bit. I don't think I've run into any password system that will accept that character, though I guess there

Re: Tomcat manager fails and can't tell why.

2011-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 4/12/2011 11:28 AM, David kerber wrote: On 4/12/2011 11:17 AM, Yucca Nel wrote: Indeed :D, Seems to be an issue when I add an ampersand to the password! That doesn't surprise me a bit. I don't think I've run into any password

Re: Two Tomcat 7.0.11 installations in the same Linux instance, running both on port 80, without conflicts?

2011-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 4/11/2011 6:52 PM, Brian Braun wrote: I have a new project, for a web service that must be running all the time. It should never be offline, and if it does, my clients will leave me, so I can not run this app in the same Tomcat

Re: Tomcat manager fails and can't tell why.

2011-04-12 Thread David kerber
On 4/12/2011 11:52 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 4/12/2011 11:28 AM, David kerber wrote: On 4/12/2011 11:17 AM, Yucca Nel wrote: Indeed :D, Seems to be an issue when I add an ampersand to the password! That doesn't surprise me a

RE: Tomcat manager fails and can't tell why.

2011-04-12 Thread Propes, Barry L
Most don't, and XML is typically very picky about all that. I learned that lesson several years ago trying to pass along characters in some XSL documents and files, and it balks at many special characters. I wouldn't even think of attempting that for a password embedded in XML, but that's me.

Re: Tomcat manager fails and can't tell why.

2011-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 4/12/2011 12:02 PM, David kerber wrote: On 4/12/2011 11:52 AM, Christopher Schultz wrote: Why would you think that would be some kind of verboten character for a password? Because of its uses in windows as a special character

Re: OT: Versioning in Javascript Files

2011-04-12 Thread Ognjen Blagojevic
Chris, href=some.css?v=${parameter} Some clients and proxies will refuse to cache resources with a query string. In those cases, caching (obviously) won't work and there might be a significant loss in performance of the web site. Exactly. I tested on one usecase (no proxy, limited number

[Cluster] Sanity check

2011-04-12 Thread János Löbb
Hi, /Httpd 2.2.17, mod_jk 1.2.31, tomcat 7.0.10, OSX 10.6.5/ Looks like there is something I do not get regarding Tomcat clustering, so I do here a sanity check :-) I have two machines with one tomcat on both. I use one of the machines as reverse proxy. here is the reverse proxy conf from

Re: How to hide tomcat console when installed as service

2011-04-12 Thread Mladen Turk
On 04/12/2011 11:43 AM, Amit k wrote: Hi, Tomcat documentation says that if tomcat is installed as service, it doesn't show up the console. But in my case this doesn't hold true. Again if the console is required for std out/err, then redirecting them to file etc wont help to display the

RE: Help with CsrfPreventionFilter

2011-04-12 Thread Mathew Samuel
Hi, We don't make use of JSTL so I can't access it that way. We do use XSL that is run through a transform. And of course relevant values are retrieved from the back end too. So, in the back-end, would I have to essentially subclass org.apache.catalina.filters.CsrfPreventionFilter (since that

Re: Two Tomcat 7.0.11 installations in the same Linux instance, running both on port 80, without conflicts?

2011-04-12 Thread Mark Eggers
- Original Message (edited) Subject: Two Tomcat 7.0.11 installations in the same Linux instance, running both on port 80, without conflicts? I'm considering a parallel Tomcat installation in the same Linux VPS, both running at the same time. I perfectly know that it can be done,

[OT] servlet-specific error pages

2011-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I have a webapp where some of the servlets are expected to return XML all the time, even for error conditions. I'd like to be able to set an error page for those servlets so the response will be in XML instead of HTML like you'd get with the

RE: OT: Versioning in Javascript Files

2011-04-12 Thread George Sexton
Thanks to everyone that responded. I'll make a few comments. DOJO tends to make a million calls for images/scripts/css files. The ETag solution isn't going to optimize well because there will still be a ton of 304 requests which all take time to make happen. Also, I'm not using Apache in

Re: [OT] servlet-specific error pages

2011-04-12 Thread János Löbb
On Apr 12, 2011, at 4:38 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I have a webapp where some of the servlets are expected to return XML all the time, even for error conditions. I'd like to be able to set an error page for those servlets so the

Re: Two Tomcat 7.0.11 installations in the same Linux instance, running both on port 80, without conflicts?

2011-04-12 Thread Brian Braun
Thanks, I will read that. On Mon, Apr 11, 2011 at 7:19 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Brian Braun [mailto:brianbr...@gmail.com] Subject: Re: Two Tomcat 7.0.11 installations in the same Linux instance, running both on port 80, without conflicts? Is it so

Re: Two Tomcat 7.0.11 installations in the same Linux instance, running both on port 80, without conflicts?

2011-04-12 Thread Brian Braun
Hi Chris, I'm improving my apps frecuently, so everytime I do it I need to upload a new WAR file. When that happens, I face the leaking problem that so far I haven't solved. For that reason, I'm restarting Tomcat. My new app should not be hosted in the same Tomcat instance for that reason. I will

Re: [OT] servlet-specific error pages

2011-04-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 János, On 4/12/2011 4:56 PM, János Löbb wrote: Look the 10.9 Error Handling in the 3.0 specifications. It is maya to me but you might find what you are looking for. Being somewhat familiar with the servlet specification, I was hoping for

Re: Problem with Apache Portable Runtime (APR) based Native library for Tomcat

2011-04-12 Thread Jaroslav Fikker
Hi, Do you have somebody some tip where could be a problem? Thanks in advance. J. Fikker - Hello Konstantin, There is output of ls command: ls -la /opt/tomcat_6_0/lib/ total 9484