Re: Determining parallely deployed versions of a webapp programmatically

2015-12-17 Thread l.pe...@senat.fr
On 16/12/2015 15:58, l.pe...@senat.fr wrote: Hi. I have in some of my apps cron-like tasks, scheduled by libs such as quartz. As I am also an happy user of the parallel deployment feature of tomcat, I was wondering whether, without special privileges such as those of the "admin" webapps, I

Re: [Tomcat-JDBC] RemovedAbandoned doesn't trigger JdbcInterceptors

2015-12-17 Thread Keiichi Fujino
2015-12-17 22:25 GMT+09:00 Robert Anderson : > Hi, > > When a connection is closed by "ResetAbandoned" the invoke() method from > JdbcInterceptor is not called. Is it the expected behaviour? > > Yes. The JdbcInterceptor.invoke() method is not called when removeAbandoned. The Connection(PooledConn

Re: 8.0.30 500 error - redirect

2015-12-17 Thread Konstantin Kolinko
2015-12-17 23:23 GMT+03:00 Anthony Biacco : > Background: > I run a jruby app under tomcat 8.0.29 in a context, namely /db. > I run Apache 2.4.17 in front of it, proxying my url to tomcat using BTW, it appears that Apache 2.4.18 was released several days ago. (Noted when visiting their site. Once

Re: Can server.xml Connector values be read from a servlet at runtime?

2015-12-17 Thread Jerry Lampi
The plan is to bypass the sign on page when tomcat is configured to use client authentication. So if my sign on servlet gets invoked, AND clientAuth=true, I won't display the sign on page, but take another path. I'll have more work to do to actually log the user in, but it'll be by using the

Re: Can server.xml Connector values be read from a servlet at runtime?

2015-12-17 Thread Mark Thomas
On 17/12/2015 21:32, Jerry Lampi wrote: > Specifically, I need to know if the value of clientAuth in the Connector > for port 443 is set to true. > > Here is my connector: > port="443" > clientAuth="true" > scheme="https" > secure="t

Can server.xml Connector values be read from a servlet at runtime?

2015-12-17 Thread Jerry Lampi
Specifically, I need to know if the value of clientAuth in the Connector for port 443 is set to true. Here is my connector: So at runtime, can I read the value of clientAuth? I tried: String clientAuth = System.getProperty("clientAuth"); and String clientAuthEnv = System.getenv("clientAuth");

Re: 8.0.30 500 error - redirect

2015-12-17 Thread Anthony Biacco
On Thu, Dec 17, 2015 at 1:53 PM, Mark Thomas wrote: > It looks like something isn't quite right in the AJP processing path. It > appears to be expecting a '/' to be inserted somewhere. That looks like > a bug. > > Not sure why things didn't work when you set them at the app level. They > should h

Re: 8.0.30 500 error - redirect

2015-12-17 Thread Mark Thomas
On 17/12/2015 20:23, Anthony Biacco wrote: > Background: > I run a jruby app under tomcat 8.0.29 in a context, namely /db. > I run Apache 2.4.17 in front of it, proxying my url to tomcat using > mod_proxy_balancer/ajp. For asthetics, i rewrite / for my URL (e.g. > https://dashboard.domain.com) to t

8.0.30 500 error - redirect

2015-12-17 Thread Anthony Biacco
Background: I run a jruby app under tomcat 8.0.29 in a context, namely /db. I run Apache 2.4.17 in front of it, proxying my url to tomcat using mod_proxy_balancer/ajp. For asthetics, i rewrite / for my URL (e.g. https://dashboard.domain.com) to the tomcat context uri /db, and then ProxyPass/ProxyPa

troughput difference

2015-12-17 Thread Rafael Oliveira de Mattos
Hello, I'm having different results in Tomcat performance using version 6.0.37 and 8.0.23. Using tomcat 6 we usually have 5000 ~ rpm with a response time of 80ms Using tomcat 8 the max that we can get is 2000 ~ rpm with a response time of 200ms We are using the same jdk version 1.7.0.80,

RewriteValve escaping $ to %24

2015-12-17 Thread Sunil Shah
Hi, I've been struggling with this bug for a little while now and was hoping you might provide some insight. We're running Jenkins inside Tomcat and using the RewriteValve to rewrite incoming URLs on / to /service/jenkins/. We notice that for requests for /$stapler/render..., the $ is escaped to

Re: Websocket client creates two threads per SSL client connection - intended or accidental?

2015-12-17 Thread Rémy Maucherat
2015-12-17 17:25 GMT+01:00 Barry Coughlan : > Each AsyncChannelWrapperSecure creates two threads, and > WsWebSocketContainer creates an AsyncChannelWrapperSecure for each secure > connection. > > Is this behaviour intended or is this a bug? > > I initially posted this as a bug because: > 1. The be

[Tomcat-JDBC] RemovedAbandoned doesn't trigger JdbcInterceptors

2015-12-17 Thread Robert Anderson
Hi, When a connection is closed by "ResetAbandoned" the invoke() method from JdbcInterceptor is not called. Is it the expected behaviour? -->server.xml --> pool.ExampleInterceptor public class ExampleInterceptor extends JdbcInterceptor { public Object invoke(Object proxy, Method

[Tomcat-JDBC] ResetAbandoned doesn't trigger JdbcInterceptors

2015-12-17 Thread Robert Anderson
Hi, When a connection is closed by "ResetAbandoned" the invoke() method from JdbcInterceptor is not called. Is it the expected behaviour? -->server.xml --> pool.ExampleInterceptor public class ExampleInterceptor extends JdbcInterceptor { public Object invoke(Object proxy, Method