Re: Deploying war from dependency with tomcat7-maven-plugin

2013-09-10 Thread Olivier Lamy
for 1) your jars must be in the plugin dependencies section (see jdbc driver here http://tomcat.apache.org/maven-plugin-trunk/run-mojo-features.html ) for 2) I understand you simply want to run a war (and maybe run unit tests) so unpacking with the dependency looks to be the solution. HTH

Re: solution - RE: how to access HTTP response from jsr-356 ServerEndpointConfig.Configurator.modifyHandshake?

2013-09-10 Thread André Warnier
Bob DeRemer wrote: -Original Message- From: Bob DeRemer [mailto:bob.dere...@thingworx.com] Sent: Monday, September 09, 2013 1:30 PM To: Tomcat Users List Subject: RE: how to access HTTP response from jsr-356 ServerEndpointConfig.Configurator.modifyHandshake? -Original

Re: [OT] Tunneling an arbitrary protocol via SSL/TLS

2013-09-10 Thread Konstantin Kolinko
Somewhat off-topic, but I was wondering if anyone knew of any package or technique that could be used to tunnel an arbitrary protocol via TLS? In this particular case, I need to wrap HTTP in TLS (to make HTTPS :) without modifying the source of the client -- and the client does not support

RE: solution - RE: how to access HTTP response from jsr-356 ServerEndpointConfig.Configurator.modifyHandshake?

2013-09-10 Thread Bob DeRemer
-Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Tuesday, September 10, 2013 6:12 AM To: Tomcat Users List Subject: Re: solution - RE: how to access HTTP response from jsr-356 ServerEndpointConfig.Configurator.modifyHandshake? Bob DeRemer wrote:

Re: Release a database connection from pool

2013-09-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 9/9/13 2:56 PM, Jose María Zaragoza wrote: Hello: I've got a simple question. I'm using Tomcat 6 DBCP library ( bit I've got the same question with Tomcat JDBC pool ) My question is: when DBCP wants to release a database

Re: [OT] Tunneling an arbitrary protocol via SSL/TLS

2013-09-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Konstantin, On 9/10/13 8:03 AM, Konstantin Kolinko wrote: Somewhat off-topic, but I was wondering if anyone knew of any package or technique that could be used to tunnel an arbitrary protocol via TLS? In this particular case, I need to wrap

Re: [OT] Tunneling an arbitrary protocol via SSL/TLS [resolved]

2013-09-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, On 9/9/13 2:50 PM, Christopher Schultz wrote: Somewhat off-topic, but I was wondering if anyone knew of any package or technique that could be used to tunnel an arbitrary protocol via TLS? In this particular case, I need to wrap HTTP in

can a Filter be used to pre-process calls to a websocket endpoint?

2013-09-10 Thread Bob DeRemer
Is it possible to programmatically add a Servlet Filter to Tomcat during the ContextInitialized call so that it filters requests going to a websocket endpoint? Thanks, Bob DeRemer Senior Director, Architecture and Development [Description: Description: Description: Description:

RE: solution - RE: how to access HTTP response from jsr-356 ServerEndpointConfig.Configurator.modifyHandshake?

2013-09-10 Thread Bob DeRemer
-Original Message- From: Bob DeRemer [mailto:bob.dere...@thingworx.com] Sent: Tuesday, September 10, 2013 8:56 AM To: Tomcat Users List Subject: RE: solution - RE: how to access HTTP response from jsr-356 ServerEndpointConfig.Configurator.modifyHandshake? -Original

Re: Deploying war from dependency with tomcat7-maven-plugin

2013-09-10 Thread Greg Amerson
Thanks Olivier, I was able to use your examples and specifying the dependencies manually and got it work nicely. So I just put Liferay portal web war package into my webapps section and also enumerated all the dependencies that need to be available to Embedded tomcat and it worked! For anyone

RE: can a Filter be used to pre-process calls to a websocket endpoint?

2013-09-10 Thread Bob DeRemer
From: Bob DeRemer [mailto:bob.dere...@thingworx.com] Sent: Tuesday, September 10, 2013 10:08 AM To: Tomcat Users List Subject: can a Filter be used to pre-process calls to a websocket endpoint? Is it possible to programmatically add a Servlet Filter to Tomcat during the

Re: solution - RE: how to access HTTP response from jsr-356 ServerEndpointConfig.Configurator.modifyHandshake?

2013-09-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Bob, On 9/10/13 10:35 AM, Bob DeRemer wrote: It appears I can call addFilter dynamically when my webapp starts up and front-end the websocket endpoint with a Filter - processing the initial HTTP request completely before any websocket

Using a P7B certificate file

2013-09-10 Thread James H. H. Lampert
We have a customer that wants to apply an existing multi-domain certificate to the tomcat server in our application. The only thing is, all we've seen is a P7B file, not a keystore, and we don't even know what sort of keystore they used to generate the original CSR. The only time a similar

RE: solution - RE: how to access HTTP response from jsr-356 ServerEndpointConfig.Configurator.modifyHandshake?

2013-09-10 Thread Bob DeRemer
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, September 10, 2013 12:07 PM To: Tomcat Users List Subject: Re: solution - RE: how to access HTTP response from jsr-356 ServerEndpointConfig.Configurator.modifyHandshake? -BEGIN

Tomcat async servlet performance

2013-09-10 Thread Eitan Yarden
I've been experimenting with Tomcat 7's async servlet support and comparing it to synchronous (plain) servlets on an EC2 m1.medium instance. I've configured Tomcat to use the APR connector, and the service does some (dummy) work for 80ms and returns an html response. I'm using Tomcat 7.0.42. When

Re: Release a database connection from pool

2013-09-10 Thread Jose María Zaragoza
2013/9/10 Christopher Schultz ch...@christopherschultz.net It can't: not all JDBC drivers use TCP/IP, so the only thing the DBCP can do is call Connection.close and hope the driver does something intelligent. It makes sense That's up to the database server. I can't imagine a db server

Re: Registering Plugins, e.g. javax.imageio...

2013-09-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 George, On 9/10/13 3:33 PM, George S. wrote: I've got an app that I'd like to register some plugins for. Some examples of the things I'd like to register are the levigo JBIG2 decoder (for PDFBOX), and the TwelveMonkeys JPEG plugin (for

Re: Using a P7B certificate file

2013-09-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 James, On 9/10/13 1:12 PM, James H. H. Lampert wrote: We have a customer that wants to apply an existing multi-domain certificate to the tomcat server in our application. The only thing is, all we've seen is a P7B file, not a keystore, and

Registering Plugins, e.g. javax.imageio...

2013-09-10 Thread George S.
I've got an app that I'd like to register some plugins for. Some examples of the things I'd like to register are the levigo JBIG2 decoder (for PDFBOX), and the TwelveMonkeys JPEG plugin (for CYMK/YCCK) image thumbnailing. I've tried just putting the jars in the $CATALINA_BASE/lib (6.0.37)

Re: Registering Plugins, e.g. javax.imageio...

2013-09-10 Thread George S.
On 9/10/13 3:14 PM, Christopher Schultz wrote: - Is there a way that I can specify something in the server.xml code that would register them? The only thing I can see is to create a org.apache.catalina.LifecycleListener and put the code to register the plugins in there. Is there some other

Re: Using a P7B certificate file

2013-09-10 Thread James H. H. Lampert
On 9/10/13 2:19 PM, Christopher Schultz wrote: P7B is otherwise known as a PKCS#7 file and usually contains a certificate. Does the file contain *only* a certificate, or does it also contain the key that was used to generate the CSR? If you have the cert but not the key, you won't be able to use

Re: Tomcat async servlet performance

2013-09-10 Thread Daniel Mikusa
On Sep 10, 2013, at 1:42 PM, Eitan Yarden ei...@paralleluniverse.co wrote: I've been experimenting with Tomcat 7's async servlet support and comparing it to synchronous (plain) servlets on an EC2 m1.medium instance. I've configured Tomcat to use the APR connector, and the service does some