Re: Tomcat 8.0.22 - Putting all Libraries in a Separate Folder to reduce War file size

2015-05-26 Thread Zoran Avtarovski
We use GIT for deployment. This way you are only uploading the delta. Have a look at how OpenShift does it for the mechanics. I wasn¹t involved in setting up the system we use but I know the team who did leaned heavily on what was done on OpenShift. I can tell you from experience deployments are

[ANN] Apache Tomcat 8.0.23 available

2015-05-26 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 8.0.23. Apache Tomcat 8 is an open source software implementation of the Java Servlet, JavaServer Pages, Java Unified Expression Language and Java WebSocket technologies. Apache Tomcat 8.0.23 includes numerous fixes for

RE: native API - to make Apache/Tomcat faster

2015-05-26 Thread Caldarale, Charles R
> From: Christoph P.U. Kukulies [mailto:k...@kukulies.org] > Subject: Re: native API - to make Apache/Tomcat faster > > That sounds like you have a resource leak of some kind, which is tying > > up server resources (memory, probably). > This sounds a bit like that but I'm not sure. Please stic

Re: native API - to make Apache/Tomcat faster

2015-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Christoph, On 5/26/15 10:36 AM, Christoph P.U. Kukulies wrote: > Am 26.05.2015 um 15:36 schrieb Christopher Schultz: >> >> So you are using either mod_proxy_ajp or mod_proxy? > > mod_proxy I meant to say mod_proxy_ajp or mod_proxy_http. I'm assum

How to configure a TrustManager in code?

2015-05-26 Thread Steffen Heil (Mailinglisten)
Hi I am creating several components for my web application in java code instead of the xml files. For this I am using a privileged servlet that (besides other things) creates a Connector and a Realm. That's working fine. As I can do context.setRealm(...) I can use a Realm that is loaded in my

Re: native API - to make Apache/Tomcat faster

2015-05-26 Thread Christoph P.U. Kukulies
Am 26.05.2015 um 17:41 schrieb David kerber: On 5/26/2015 11:26 AM, Christoph P.U. Kukulies wrote: Am 26.05.2015 um 17:18 schrieb André Warnier: Christoph P.U. Kukulies wrote: Am 26.05.2015 um 15:36 schrieb Christopher Schultz: So you are using either mod_proxy_ajp or mod_proxy? mod_proxy

RewriteCond

2015-05-26 Thread Frank Lehmann
Hi Dan, you are right, i have used this documentation for setting the rewrite rule. This doc has is mistake in placing the rewrite.config file, but i solved it. My problem is, that the test condition never works. Every test rule is ignored. So what is the reason why every test condition is ig

Re: native API - to make Apache/Tomcat faster

2015-05-26 Thread David kerber
On 5/26/2015 11:26 AM, Christoph P.U. Kukulies wrote: Am 26.05.2015 um 17:18 schrieb André Warnier: Christoph P.U. Kukulies wrote: Am 26.05.2015 um 15:36 schrieb Christopher Schultz: So you are using either mod_proxy_ajp or mod_proxy? mod_proxy I have not yet found the time to debug

Re: native API - to make Apache/Tomcat faster

2015-05-26 Thread Christoph P.U. Kukulies
Am 26.05.2015 um 17:18 schrieb André Warnier: Christoph P.U. Kukulies wrote: Am 26.05.2015 um 15:36 schrieb Christopher Schultz: So you are using either mod_proxy_ajp or mod_proxy? mod_proxy I have not yet found the time to debug the connection and to locate the actual missing pieces

Re: native API - to make Apache/Tomcat faster

2015-05-26 Thread André Warnier
Christoph P.U. Kukulies wrote: Am 26.05.2015 um 15:36 schrieb Christopher Schultz: So you are using either mod_proxy_ajp or mod_proxy? mod_proxy Are you using TLS anywhere in the mix? (I should hope so, since you are deploying a CMS). Does httpd terminate TLS? Do you encrypt the connectio

Re: native API - to make Apache/Tomcat faster

2015-05-26 Thread André Warnier
David kerber wrote: On 5/26/2015 9:36 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- ... The rebooting the server is a cure. That seems to be a popular cure with Microsoft Windows servers ;) But unfortunately, it's only treating the symptoms, not curing the disease

Re: native API - to make Apache/Tomcat faster

2015-05-26 Thread Christoph P.U. Kukulies
Am 26.05.2015 um 15:36 schrieb Christopher Schultz: So you are using either mod_proxy_ajp or mod_proxy? mod_proxy Are you using TLS anywhere in the mix? (I should hope so, since you are deploying a CMS). Does httpd terminate TLS? Do you encrypt the connection(s) between httpd and Tomcat us

Re: native API - to make Apache/Tomcat faster

2015-05-26 Thread David kerber
On 5/26/2015 9:36 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- ... The rebooting the server is a cure. That seems to be a popular cure with Microsoft Windows servers ;) But unfortunately, it's only treating the symptoms, not curing the disease... :-( --

Re: RewriteCond

2015-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Frank, On 5/25/15 11:30 AM, Frank Lehmann wrote: > i want to rewrite my url when a mobile user reaches my homepage. > > I found this condition on the web after several searchings. > > But it will not work. All other condition also not working, i h

Re: native API - to make Apache/Tomcat faster

2015-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Christoph, On 5/26/15 9:25 AM, Christoph P.U. Kukulies wrote: > Am 26.05.2015 um 15:06 schrieb Christopher Schultz: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> Christoph, >> >> On 5/26/15 6:45 AM, Christoph P.U. Kukulies wrote: >>> Th

Re: native API - to make Apache/Tomcat faster

2015-05-26 Thread Christoph P.U. Kukulies
Am 26.05.2015 um 15:06 schrieb Christopher Schultz: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Christoph, On 5/26/15 6:45 AM, Christoph P.U. Kukulies wrote: There is this native Apache API if I recall correctly to speed up Apache. Is there such for Tomcat too? If by "Apache" you mean "Ap

Re: Fwd: Fwd:

2015-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Yuval, On 5/25/15 8:58 AM, Yuval Schwartz wrote: > On Mon, May 25, 2015 at 3:18 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > > Yuval, > > On 5/24/15 5:06 PM, Yuval Schwartz wrote: Firstly, I'd like to clear something up

Re: native API - to make Apache/Tomcat faster

2015-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Christoph, On 5/26/15 6:45 AM, Christoph P.U. Kukulies wrote: > There is this native Apache API if I recall correctly to speed up > Apache. Is there such for Tomcat too? If by "Apache" you mean "Apache httpd", you need to understand that Apache ht

Re: Problem with APR library - Tomcat 7

2015-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dejan, On 5/26/15 6:45 AM, Dejan Stamenov wrote: > I just wanted to notify all that my problem with the APR library > has been finally solved. If anyone encounters this problem, please > follow the steps (assuming your Linux server already has APR >

Re: Tomcat HTTP response chunk size

2015-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Maxim, On 5/25/15 2:22 PM, Maxim Neshcheret wrote: > Thank you for reply! Any chance to manage buffer size in Tomcat? > Do you now if it is recommended approach? What is the problem you are trying to solve? You can affect the chunk size using eith

Re: org.apache.catalina.connector.CoyoteAdapter.checkRecycled Encountered a non-recycled request and recycled it forcedly

2015-05-26 Thread Rémy Maucherat
2015-05-26 14:32 GMT+02:00 Konstantin Kolinko : > The "forced recycling" message is not a problem per se, but an > indicator of a problem. In the same way as "or even on one virtual > host appeared a page from another virtual host" that you. It signals > that a request/response object was not empt

Re: org.apache.catalina.connector.CoyoteAdapter.checkRecycled Encountered a non-recycled request and recycled it forcedly

2015-05-26 Thread Konstantin Kolinko
2015-05-26 14:25 GMT+03:00 Sergiusz Brzeziński : > Hi, > > I get this error in my logs: > > CoyoteAdapter.checkRecycled Encountered a non-recycled request and recycled > it forcedly. > > It happen some hours or even some days ater Tomcat ist starting. I can't > reproduce this error and I don't >

Re: Tomcat 8.0.22 - Putting all Libraries in a Separate Folder to reduce War file size

2015-05-26 Thread Daniel Mikusa
On Tue, May 26, 2015 at 6:21 AM, Aditya Chopra wrote: > The reason i am trying to reduce the war file size is because its size has > gone upto 55MB and time taken for copying it to the server for deployments > has increased. > What you're trying to do may seem like a good idea, but in practice i

Re: RewriteCond

2015-05-26 Thread Daniel Mikusa
On Mon, May 25, 2015 at 11:30 AM, Frank Lehmann wrote: > Hi helpers, > > i want to rewrite my url when a mobile user reaches my homepage. > > I found this condition on the web after several searchings. > > But it will not work. > All other condition also not working, i have tested many conditions

Re: Fwd: Fwd:

2015-05-26 Thread André Warnier
Hello Yuval. As a kind of generic answer to your previous enquiries : Tomcat is a "Servlet Container", and the developers who write Tomcat strive to have it behave in accordance with the applicable "Java Servlet Specification". Refer to this page to find out which version of Tomcat matches whic

org.apache.catalina.connector.CoyoteAdapter.checkRecycled Encountered a non-recycled request and recycled it forcedly

2015-05-26 Thread Sergiusz Brzeziński
Hi, I get this error in my logs: CoyoteAdapter.checkRecycled Encountered a non-recycled request and recycled it forcedly. It happen some hours or even some days ater Tomcat ist starting. I can't reproduce this error and I don't know when it starts to appear. But if it starts, it appears more

native API - to make Apache/Tomcat faster

2015-05-26 Thread Christoph P.U. Kukulies
There is this native Apache API if I recall correctly to speed up Apache. Is there such for Tomcat too? And should this be established at any rate for production servers? -- Christoph Kukulies - To unsubscribe, e-mail: users-u

RE: Problem with APR library - Tomcat 7

2015-05-26 Thread Dejan Stamenov
Hello Chris, I just wanted to notify all that my problem with the APR library has been finally solved. If anyone encounters this problem, please follow the steps (assuming your Linux server already has APR library preinstalled): 1. Install libapr1-dev, libssl-dev, java openjdk and openjre. 2. D

Re: Tomcat 8.0.22 - Putting all Libraries in a Separate Folder to reduce War file size

2015-05-26 Thread Aditya Chopra
The reason i am trying to reduce the war file size is because its size has gone upto 55MB and time taken for copying it to the server for deployments has increased. Is there any best practice around this that we should be following? Anyways, i will also check Spring usage to see why the threat

Re: Tomcat 8.0.22 - Putting all Libraries in a Separate Folder to reduce War file size

2015-05-26 Thread Mark Thomas
On 26/05/2015 10:53, Aditya Chopra wrote: This thread does beg the question *why* do you want to reduce the size of your WAR. Doing so creates problems as you have found. > In WEB-INF/lib i only have 2 JARs, which are my application JAR’s. All other > dependent JAR’s i have moved to /mylibs. >

Re: Tomcat 8.0.22 - Putting all Libraries in a Separate Folder to reduce War file size

2015-05-26 Thread Aditya Chopra
In WEB-INF/lib i only have 2 JARs, which are my application JAR’s. All other dependent JAR’s i have moved to /mylibs. Below mentioned com.myapp.CustomGrantedAuth class is part of my application JAR present under WEB-INF/lib. Here is the stack trace: DEBUG [http-nio-8080-exec-3] (DefaultExcepti

Re: Tomcat 8.0.22 - Putting all Libraries in a Separate Folder to reduce War file size

2015-05-26 Thread Mark Thomas
On 26/05/2015 10:44, Aditya Chopra wrote: > Thanks for quick response Mark. > > JARs in /mylib are not dependent on JARs in web app. In fact its the other > way round. /mylib is having all Spring, hibernate jar’s, other common libs > and WEB-INF/lib is containing jar of one of my application mod

Re: Tomcat 8.0.22 - Putting all Libraries in a Separate Folder to reduce War file size

2015-05-26 Thread Aditya Chopra
Thanks for quick response Mark. JARs in /mylib are not dependent on JARs in web app. In fact its the other way round. /mylib is having all Spring, hibernate jar’s, other common libs and WEB-INF/lib is containing jar of one of my application modules. The class for which i am getting ClassNotFound

Re: Tomcat 8.0.22 - Putting all Libraries in a Separate Folder to reduce War file size

2015-05-26 Thread Mark Thomas
On 26/05/2015 08:36, Aditya Chopra wrote: > Hi, > > To reduce the size of my war file, i am trying to put all the jar files being > used by my web app in a separate folder /mylibs. I added path to /mylibs > folder under shared.loader property in catalina.properties but on runtime i > am getting

Tomcat 8.0.22 - Putting all Libraries in a Separate Folder to reduce War file size

2015-05-26 Thread Aditya Chopra
Hi, To reduce the size of my war file, i am trying to put all the jar files being used by my web app in a separate folder /mylibs. I added path to /mylibs folder under shared.loader property in catalina.properties but on runtime i am getting a ClassNotFoundException for one of the classes that