How to run an application with different user to TC container

2013-05-16 Thread Andrew Hunt
Hi We have a Tomcat 7.0.39 instance with several applications running within it, but all running as the same user as the Tomcat instance. We have a new application we are wanting to add, but this needs to run with a different user as it has different accesses it needs that cannot be granted to

Re: redirect request from 8080 to port 80

2013-05-16 Thread Ognjen Blagojevic
Chris, On 15.5.2013 16:47, Christopher Schultz wrote: I see that only the URI is being send in the first-line of the request, and not the protocol-qualified URL. Ognjen asserted that most user agents send the whole URL but I have not observed this -- neither today nor in the past. I think most

Re: How to run an application with different user to TC container

2013-05-16 Thread André Warnier
Andrew Hunt wrote: Hi We have a Tomcat 7.0.39 instance with several applications running within it, but all running as the same user as the Tomcat instance. We have a new application we are wanting to add, but this needs to run with a different user as it has different accesses it needs that

Re: redirect request from 8080 to port 80

2013-05-16 Thread Ognjen Blagojevic
André, On 15.5.2013 23:56, André Warnier wrote: Anyway, to get back to the OP's original issue, and considering the documentation only, I do understand a bit of confusion as to what is really being logged in the Access Log. Yes, I see. You are right, the documentation or the behavioir of

Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
Hi, Is it possible to have a default web.xml that will be loaded for all applications inside a Host? The doc states this is possible for context.xml which is computed from:  - $CATALINA_BASE/conf/context.xml  - $CATALINA_BASE/conf/[enginename]/[hostname]/context.xml.default  -

Re: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Mark Thomas
On 16/05/2013 09:40, Xavier Dury wrote: Hi, Is it possible to have a default web.xml that will be loaded for all applications inside a Host? The doc states this is possible for context.xml which is computed from: - $CATALINA_BASE/conf/context.xml -

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
Thanks, I didn't find any reference to web.xml.default in the doc. Maybe, I wasn't looking at the right place. Regards, Xavier Date: Thu, 16 May 2013 09:49:34 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Default web.xml for

Re: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Mark Thomas
On 16/05/2013 09:55, Xavier Dury wrote: Thanks, I didn't find any reference to web.xml.default in the doc. Maybe, I wasn't looking at the right place. It is only mentioned as a constant in the Javadocs so folks are going to find it there. Patches to improve the docs are welcome. Mark

Re: Embedded Tomcat 7 SSL Properties

2013-05-16 Thread Mark Thomas
On 16/05/2013 04:09, Chirag Dewan wrote: Sorry for the previous mail. Adding Subject. - Forwarded Message - From: Chirag Dewan chirag.dewa...@yahoo.in To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, 16 May 2013 8:37 AM Subject: Hi All, I am upgrading

Setting up two webapps directories for tomcat 7.x

2013-05-16 Thread Gautam R Singh (gautsing)
Hi, We are creating a small hosting environment for Tomcat 7.x, and we basically want to segregrate the webapps directory into two (systemapps, userapps). The dir userapps is where a user could deploy his apps, has correct perms to write to that dir. And systemapps is where certain monitoring

Re: Setting up two webapps directories for tomcat 7.x

2013-05-16 Thread Mark Thomas
On 16/05/2013 11:10, Gautam R Singh (gautsing) wrote: Hi, We are creating a small hosting environment for Tomcat 7.x, and we basically want to segregrate the webapps directory into two (systemapps, userapps). The dir userapps is where a user could deploy his apps, has correct perms to

Strange keep alive effect KeepAlive

2013-05-16 Thread killbulle
Hi the list, i recently encounter a problem where in some very rare case some request response time appear to include the keepAliveTimeout! ?!!!??? For example with an average 250ms per requests, i found some around 17250 ms or 27250 ms if my keepAliveTimout is 17000 or 27000. Or as I

Unable to deploy web service on Embedded Tomcat 7.0.30

2013-05-16 Thread Chirag Dewan
Hi, Another issue I am facing with Embedding tomcat 7. I am deploying a webservice with the war structure like: classes wsdl     One.wsdl web.xml My code looks like this : Context context = Tomcat.addContext( /service, somepath/one.war );   ( (StandardContext) context ).setUnpackWAR(

Running Thrift Server inside Tomcat.

2013-05-16 Thread Denuwanthi Hasanthika
Hi, I am using tomcat 6.0.29. I want to run a Thrift Server ,when Tomcat start up. So, I created a Thrift Server and called it inside a HttpServlets init(ServletConfig) method of a servlet deployed in tomcat server. *Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds.

Switching from APR to NIO connection on Tomcat 7.0.32

2013-05-16 Thread Michael Martin
Hello, We're looking at a known issue with Tomcat 7.0.32's APR connector (which users OpenSSL), as documented here - http://tomcat.apache.org/security-7.html#Not_a_vulnerability_in_Tomcat (TLS SSL Man in Middle). A solution this offers is switching to the NIO connector. From what iv'e read,

Re: Switching from APR to NIO connection on Tomcat 7.0.32

2013-05-16 Thread Mark Thomas
On 16/05/2013 14:23, Michael Martin wrote: Hello, We're looking at a known issue with Tomcat 7.0.32's APR connector (which users OpenSSL), as documented here - http://tomcat.apache.org/security-7.html#Not_a_vulnerability_in_Tomcat (TLS SSL Man in Middle). Are you sure there is a

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
I tried adding a $CATALINA_BASE/conf/[enginename]/[hostname]/web.xml.default and checked what was the resulting web.xml with logEffectiveWebXml=true. I noticed that the order of the various elements (filter, servlets...) appeared as:  1. conf/web.xml  2. WEB-INF/web.xml  3.

Re: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Mark Thomas
On 16/05/2013 14:47, Xavier Dury wrote: I tried adding a $CATALINA_BASE/conf/[enginename]/[hostname]/web.xml.default and checked what was the resulting web.xml with logEffectiveWebXml=true. I noticed that the order of the various elements (filter, servlets...) appeared as: 1.

Re: Running Thrift Server inside Tomcat.

2013-05-16 Thread Isuru Ranawaka
hi, Did you try to start thriftserver in a separate thread rather than start it directly in the init method. because i think execution on current thread is blocked due to start listening on perticular port .try it by creating a Runnable class and start Serversocket in run method and start thread

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
Ok, I checked with only listeners and filter-mappings (whose order matters) and the resulting order is the following (from top to bottom in effective web.xml): 1: main web.xml 2: global web.xml 3: host web.xml.default So is it possible to have them in order (2, 3, 1)... I guess not but there's

RE: Switching from APR to NIO connection on Tomcat 7.0.32

2013-05-16 Thread Michael Martin
Ah ok, that's a little clearer then. Here's the full stack trace: 2013-05-16 12:31:18,334 [main] ERROR org.apache.catalina.connector.Connector - Protocol handler instantiation failed java.lang.ClassNotFoundException: Http11NioProtocol at

Re: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Mark Thomas
On 16/05/2013 15:55, Xavier Dury wrote: Ok, I checked with only listeners and filter-mappings (whose order matters) and the resulting order is the following (from top to bottom in effective web.xml): 1: main web.xml 2: global web.xml 3: host web.xml.default So is it possible to have

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
Well, I tried to declare the per-host web.xml as a web-fragment like this but it does not work: web-fragment ordering before others / /before /ordering ... /web-frament Tomcat is expecting a web-app which can only contain absolute-ordering which must reference other fragments. I wanted the

RE: Default web.xml for all webapps of a specific Host

2013-05-16 Thread Xavier Dury
Nevermind my last mail, you responded while I was typing. I will look into ServletContextInitializer. Thanks, Xavier From: kal...@hotmail.com To: users@tomcat.apache.org Subject: RE: Default web.xml for all webapps of a specific Host Date: Thu, 16

Re: Switching from APR to NIO connection on Tomcat 7.0.32

2013-05-16 Thread Mark Thomas
On 16/05/2013 15:56, Michael Martin wrote: Ah ok, that's a little clearer then. Here's the full stack trace: 2013-05-16 12:31:18,334 [main] ERROR org.apache.catalina.connector.Connector - Protocol handler instantiation failed java.lang.ClassNotFoundException: Http11NioProtocol OK. There is

Re: Running Thrift Server inside Tomcat.

2013-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Isuru, On 5/16/13 10:36 AM, Isuru Ranawaka wrote: hi, Did you try to start thriftserver in a separate thread rather than start it directly in the init method. because i think execution on current thread is blocked due to start listening on

Re: How to run an application with different user to TC container

2013-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 5/16/13 3:23 AM, André Warnier wrote: Andrew Hunt wrote: Hi We have a Tomcat 7.0.39 instance with several applications running within it, but all running as the same user as the Tomcat instance. We have a new application we are

Re: Strange keep alive effect KeepAlive

2013-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Marc, On 5/16/13 6:40 AM, killbulle wrote: Hi the list, i recently encounter a problem where in some very rare case some request response time appear to include the keepAliveTimeout! ?!!!??? Response time as measured... where? By the client? In