Re: Application crash after Migrate to different ESX

2011-05-20 Thread André Warnier
הילה wrote: ... So, if you are using that pool, I basically do not understand why you would need any additional mechanism to overcome the loss of a db connection when your VM is migrated. Particularly that smart keep alive you keep talking about, but never telling us where it comes from and

Re: [SECURITY] CVE-2011-1582 Apache Tomcat security constraint bypass

2011-05-20 Thread Michael McCutcheon
On 5/17/2011 5:46 AM, Mark Thomas wrote: CVE-2011-1582 Apache Tomcat security constraint bypass Description: An error in the fixes for CVE-2011-1088/CVE-2011-1183 meant that security constraints configured via annotations were ignored on the first request to a Servlet. Subsequent requests were

Re: Tomcat download stream gets broken

2011-05-20 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob, On 5/19/2011 12:29 PM, Rob GB wrote: Someone suggested commons IO could provide some cool stream APIs, I'll try all recommendations, including asynchronous writes. Why not just let the DefaulsServlet serve the

Tomcat7 + socketserver and contextListener

2011-05-20 Thread Micka
Hi, * Informations :* System : Ubuntu 10.04 Server Tomcat : Using CATALINA_BASE: /usr/local/tomcat7 Using CATALINA_HOME: /usr/local/tomcat7 Using CATALINA_TMPDIR: /usr/local/tomcat7/temp Using JRE_HOME:/usr/lib/jvm/java-6-sun Using CLASSPATH: /usr/local/tomcat7/bin/

Re: Tomcat7 + socketserver and contextListener

2011-05-20 Thread André Warnier
Micka, Unless specifically asked otherwise, just send your messages to the list, do not copy other people. We are all subscribed to the list and get all messages that way. If in addition you send it directly, we get it twice, which is annyoing. Thanks.

Re: Tomcat7 + socketserver and contextListener

2011-05-20 Thread André Warnier
Micka wrote: ... *Problem 2 :* After sudo /etc/init.d/tomcat stop , I try again to start the server, but i got : May 19, 2011 4:28:22 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production

ClassNotFoundException WSServlet with Tomcat 7.0.11 on Windows Server 2008 R2 using METRO 2.1

2011-05-20 Thread Howard Smalley
Hi I'm trying to create a simple webservice using Tomcat 7.0.11 on Windows Server 2008 R2 (64bit) using Metro 2.1. I'm coming from a C#/WCF background trying to get a better understanding on web service interopability. I'm actually following an example from Martin Kalin's book Java Web

How to dynamically create JNDI Context Resources

2011-05-20 Thread John Fletcher
In my application I'm using a library which uses JNDI to locate JMS topics and then operates with them. I successfully configured JNDI references to the JMS topics like this in Context.xml, and everything works nicely: Resource name=jms/flex/TopicConnectionFactory

Re: Tomcat7 + socketserver and contextListener

2011-05-20 Thread Micka
If it was that simple, I would not ask your help ^^. An example : Tomcat was stopped before, and the commands : sockstat -p 8080 give nothing. And when I start tomcat, I got : SEVERE: Failed to initialize end point associated with ProtocolHandler [http-bio-8080] java.net.BindException:

Re: Tomcat7 + socketserver and contextListener

2011-05-20 Thread André Warnier
Micka wrote: If it was that simple, I would not ask your help ^^. An example : Tomcat was stopped before, and the commands : sockstat -p 8080 give nothing. Where does this sockstat command come from ? I do not seem to have that on either Windows or Linux systems. And all I can tell you

RE: ClassNotFoundException WSServlet with Tomcat 7.0.11 on Windows Server 2008 R2 using METRO 2.1

2011-05-20 Thread Caldarale, Charles R
From: Howard Smalley [mailto:howardsmal...@hotmail.com] Subject: ClassNotFoundException WSServlet with Tomcat 7.0.11 on Windows Server 2008 R2 using METRO 2.1 I originally tried using the metro-on-tomcat.xml ant file but it doesn't seem to have been updated for tomcat 7.*) That's a bit

Re: Tomcat7 + socketserver and contextListener

2011-05-20 Thread André Warnier
André Warnier wrote: Micka wrote: If it was that simple, I would not ask your help ^^. An example : Tomcat was stopped before, and the commands : sockstat -p 8080 give nothing. Where does this sockstat command come from ? I do not seem to have that on either Windows or Linux systems.

Re: Tomcat download stream gets broken

2011-05-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/20/2011 3:05 AM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob, On 5/19/2011 12:29 PM, Rob GB wrote: Someone suggested commons IO could provide some cool stream APIs, I'll try

Re: ClassNotFoundException WSServlet with Tomcat 7.0.11 on Windows Server 2008 R2 using METRO 2.1

2011-05-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 5/20/2011 9:43 AM, Caldarale, Charles R wrote: From: Howard Smalley [mailto:howardsmal...@hotmail.com] Subject: ClassNotFoundException WSServlet with Tomcat 7.0.11 on Windows Server 2008 R2 using METRO 2.1 I originally tried using

RE: ClassNotFoundException WSServlet with Tomcat 7.0.11 on Windows Server 2008 R2 using METRO 2.1

2011-05-20 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: ClassNotFoundException WSServlet with Tomcat 7.0.11 on Windows Server 2008 R2 using METRO 2.1 are you sure that you need to put your libraries into Tomcat's lib directories, etc. instead of just putting them all

Regular expression for the Crawler Session Manager Valve?

2011-05-20 Thread Brian Braun
Hi Mark Thomas and everybody else, I just discovered the new valve, the *Crawler Session Manager Valve*. It deals with the search engine bots, making them use just one session among their requests (one session for each bot). I see that it includes a default regular expression for detecting the

Re: ClassNotFoundException WSServlet with Tomcat 7.0.11 on Windows Server 2008 R2 using METRO 2.1

2011-05-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 5/20/2011 10:51 AM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: ClassNotFoundException WSServlet with Tomcat 7.0.11 on Windows Server 2008 R2 using METRO 2.1 are you sure

Re: Regular expression for the Crawler Session Manager Valve?

2011-05-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 5/20/2011 11:03 AM, Brian Braun wrote: I just discovered the new valve, the *Crawler Session Manager Valve*. It deals with the search engine bots, making them use just one session among their requests (one session for each bot). I see

Control character in cookie value or attribute

2011-05-20 Thread Dan Checkoway
Recently, after updating to tomcat 7.0.14 (from 6.0.29), I started seeing these pop up in catalina.out from time to time. I honestly have no idea if it's related to the tomcat version or some legitimately wacked out Set-Cookie header coming in. I didn't see it prior to the 7.0.14 upgrade, but

RE: Control character in cookie value or attribute

2011-05-20 Thread Caldarale, Charles R
From: Dan Checkoway [mailto:dchecko...@gmail.com] Subject: Control character in cookie value or attribute I honestly have no idea if it's related to the tomcat version or some legitimately wacked out Set-Cookie header coming in. Both, actually. Tomcat 7 is bit more picky about what it

Re: Tomcat download stream gets broken

2011-05-20 Thread Pid
Oh dear. On 19/05/2011 17:09, Rob GB wrote: Hi,I sent it from gmail in the right format some minutes ago, you should had already received it.Here it goes again. Thanks. public void service(HttpServletRequest request, HttpServletResponse response) throws IOException {byte

Re: New Birthday Calendar

2011-05-20 Thread Pid
On 19/05/2011 15:43, Mark Thomas wrote: Way ahead of you. The unsubscribe command went out about 30s after the original message arrived in my inbox. Mark PS Rather than re-post messages like this to the list (which just repeats the URL and further annoys the other subscribes) just forward

Re: Control character in cookie value or attribute

2011-05-20 Thread Dan Checkoway
Ah, thanks! To be honest I'm not sure which of those properties would work around the Control character in cookie value or attribute exception. Maybe org.apache.tomcat.util.http. ServerCookie.FWD_SLASH_IS_SEPARATOR? I can't tell if Control character means a literal non-printable character (i.e.

JK Connector failure after IIS recycle - version 1.2.30

2011-05-20 Thread Nick Williams
Environment: Windows Server 2008 IIS 7.0 Tomcat 6.0.29 ISAPI Redirect JK Connector 1.2.30 At 14:06:57 this afternoon, IIS performed a recycle (it does this ever 29 hours and has for years without causing us problems): “A worker process with process id of '10536' serving application pool

Re: Autodeploy and clear work directory

2011-05-20 Thread Kaushal Shriyan
On Thu, May 19, 2011 at 6:04 AM, Kaushal Shriyan kaushalshri...@gmail.com wrote: 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

Clarification on --JvmXX windows service installer parameters

2011-05-20 Thread space monkey
Tomcat 7.0.14 Windows XP+ Hello Tomcat users, I am trying to understand how the *--JvmMs*, *--JvmMx*, and *JvmSs* windows service install paramerters differ from setting the JVM memory values explicitly with *--JvmOptions*? Please see this forum post that described my initial problem: