Re: Zero downtime deployments

2015-12-03 Thread Neill Lima
Hello Jason, This approach of using httpd in front of 2+ Tomcats via AJP works well in my company. There is a bit of config necessary at httpd level so httpd is aware of all the Tomcats and also Tomcat config needs to be set to listen to AJP port instead of default port but it is not rocket

Re: Understanding how to controlling what data is written to log4j appenders

2015-12-03 Thread Joleen Barker
Konstantin, The information you gave me for the additivity was PERFECT! It did exactly what I was looking for. This also really allowed me to understand what processes were writing to which log. I have the settings in place in my test environment now and if all goes well the changes will be added

Re: Tomcat log files - Strict permissions - setuid

2015-12-03 Thread Mark H. Wood
On Thu, Dec 03, 2015 at 10:42:40AM -0300, Andres Riancho wrote: > List, > > I'm trying to secure my tomcat instances. One of the steps I took > was to run the tomcat process using the non-privileged "tomcat" user, > and set the file system permissions as restrictive as possible. It all >

Re: Tomcat log files - Strict permissions - setuid

2015-12-03 Thread Christopher Schultz
Andres, On 12/3/15 8:42 AM, Andres Riancho wrote: > List, > > I'm trying to secure my tomcat instances. One of the steps I took > was to run the tomcat process using the non-privileged "tomcat" user, > and set the file system permissions as restrictive as possible. It all > works well, but

Tomcat log files - Strict permissions - setuid

2015-12-03 Thread Andres Riancho
List, I'm trying to secure my tomcat instances. One of the steps I took was to run the tomcat process using the non-privileged "tomcat" user, and set the file system permissions as restrictive as possible. It all works well, but there is something missing: "The tomcat user is able to read the

Re: Tomcat 8 JAX-WS javax.xml.ws.WebServiceException: java.io.IOException: Error writing to server

2015-12-03 Thread Mark Thomas
On 03/12/2015 15:27, Bill Wolosek wrote: > We have also tried different combinations of Java and Tomcat: * > Tomcat 7/Java 7 = Works * Tomcat 7/Java 8 = Works * > Tomcat 8/Java 7 = Doesn't Work * Tomcat 8/Java 8 = Doesn't > Work Assuming Tomcat 7 == 7.0.39 and Tomcat 8 == 8.0.28

RE: Tomcat 8 JAX-WS javax.xml.ws.WebServiceException: java.io.IOException: Error writing to server

2015-12-03 Thread Bill Wolosek
Hi Chris, Thank you very much for your help. It appears that maxSwallowSize in the configuration has fixed the issue. Your help is greatly appreciated. Thank you, Bill -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, December 3,

RE: Tomcat 8 JAX-WS javax.xml.ws.WebServiceException: java.io.IOException: Error writing to server

2015-12-03 Thread Bill Wolosek
Hi Mark, Your point of assuming Tomcat 7.0.39 = Tomcat 7 and Tomcat 8.0.28 = Tomcat 8 and not taking all other versions in-between into account was a bad on my part. Thanks for clarifying this for me. It appears that maxSwallowSize in the configuration has fixed the issue. I set it to -1

Re: URL based redirection working partially with Apache tomcat

2015-12-03 Thread Christopher Schultz
To whom it may concern, On 12/3/15 10:54 AM, Kernel freak wrote: > Hello friends, > > I would like to deploy multiple webapps(as of now 2,waiting for domain name > for 3rd) on a single Apache Tomcat instance. I have been partially > successful as one URL is working properly, other is not. > >

Tomcat 8 JAX-WS javax.xml.ws.WebServiceException: java.io.IOException: Error writing to server

2015-12-03 Thread Bill Wolosek
We have recently updated the tech stack of a JAX-WS webservice running on JRE 1.7.0_17/Tomcat7.0.39 to JRE 1.8.0_66/Tomcat 8.0.28. The web app runs on Windows Server 2012. The web service uses a Metro implementation for JAX-WS. The clients run on various windows versions using JRE 7 and the

Re: Tomcat 8 JAX-WS javax.xml.ws.WebServiceException: java.io.IOException: Error writing to server

2015-12-03 Thread David kerber
On 12/3/2015 10:48 AM, Christopher Schultz wrote: ... We have also tried different combinations of Java and Tomcat: * Tomcat 7/Java 7 = Works * Tomcat 7/Java 8 = Works * Tomcat 8/Java 7 = Doesn't Work * Tomcat 8/Java 8 = Doesn't Work This leads us to think that

URL based redirection working partially with Apache tomcat

2015-12-03 Thread Kernel freak
Hello friends, I would like to deploy multiple webapps(as of now 2,waiting for domain name for 3rd) on a single Apache Tomcat instance. I have been partially successful as one URL is working properly, other is not. Situation : 1) I have created two folders called domain1_webapps and

Re: Tomcat 8 JAX-WS javax.xml.ws.WebServiceException: java.io.IOException: Error writing to server

2015-12-03 Thread Christopher Schultz
Bill, On 12/3/15 10:27 AM, Bill Wolosek wrote: > We have recently updated the tech stack of a JAX-WS webservice > running on JRE 1.7.0_17/Tomcat7.0.39 to JRE 1.8.0_66/Tomcat 8.0.28. > The web app runs on Windows Server 2012. The web service uses a Metro > implementation for JAX-WS. The clients

Re: Zero downtime deployments

2015-12-03 Thread Kevin Hale Boyes
Thanks for this link to the presentation. How do you all deal with some of the other dependencies that the web application has? For example, if v2 of my application needs new database columns or worse, a change to an existing column how can I have v1 and v2 running at the same time? We use

Re: Zero downtime deployments

2015-12-03 Thread jieryn
Use http://flywaydb.org/ to perform database migrations. You will need at least 3 versions in order to perform an incompatible database change. v1 is existing behavior, v2 is a shim that bridges v1 and v3, and then v3 cleans up the shim and removes all the unnecessary hacks. When you have v1

Re: Tomcat FIPS with FIPS capable OpenSSL

2015-12-03 Thread Nithesh Kb
Wow Amazing worked!!! 04-Dec-2015 00:45:30.500 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.2. 04-Dec-2015 00:45:30.500 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent

RE: Zero downtime deployments

2015-12-03 Thread Tauzell, Dave
If you cannot use a tool like flyway you can do it by hand, too. The key is that all database changes need to be backwards compatible. For example: So, if you want to drop a column: 1. Deploy new version of app that doesn't require column X 2. Shutdown version which does 3. drop column X If

Tomcat FIPS with FIPS capable OpenSSL

2015-12-03 Thread Nithesh Kb
HI Tomcat Experts, I'm trying to enable fips mode in tomcat but i get these exception, *04-Dec-2015 00:00:34.787 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL Initializing FIPS mode...* *04-Dec-2015 00:00:34.791 SEVERE [main]

Re: Tomcat FIPS with FIPS capable OpenSSL

2015-12-03 Thread Nithesh Kb
*HI Tomcat Experts,* *I'm trying to enable fips mode in tomcat but i get these exception,* *04-Dec-2015 00:00:34.787 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL Initializing FIPS mode...* *04-Dec-2015 00:00:34.791 SEVERE [main]

Understanding how to controlling what data is written to log4j appenders

2015-12-03 Thread Joleen Barker
I want to have more control over what data is written to the various appenders in the log4j.properties files. I have played around with the various configurations in the log4j.properties file but I am not understanding how they are working in order to grasp how to have more control. I don't know

Apache httpd / mod_proxy_ajp logging

2015-12-03 Thread tomcat
Hi. Although the above module is a httpd-level, this might still be the right place to ask : I am usually using mod_jk as an Apache httpd / Tomcat connector. With mod_jk, there is a separate JkLogLevel directive to set the log level, and also a separate logfile. Would anyone here know what

Re: Understanding how to controlling what data is written to log4j appenders

2015-12-03 Thread Konstantin Kolinko
2015-12-04 2:05 GMT+03:00 Joleen Barker : > I want to have more control over what data is written to the various > appenders in the log4j.properties files. I have played around with the > various configurations in the log4j.properties file but I am not > understanding how

Re: Understanding how to controlling what data is written to log4j appenders

2015-12-03 Thread Joleen Barker
Hello Konstantin, Thank you for pointing out the typo. The line is actually correct in my log4j.properties file and the typo happened when I typed the line in for my settings. I don't know what additivity flag is so I will take a look. I'll let you know how it goes. -Joleen On Thu, Dec 3,