[OT] Re: DBAs?

2023-04-02 Thread Chris Cheshire
On Apr 2, 2023, at 4:41 PM, Kevin Huntly wrote:Are there any DBAs in here? If so, are you aware of a MySQL user mailinglist? I'm having an issue with some stored procedures and need some helpHave you tried the forums?MySQL Forumsforums.mysql.com

Re: Conditional access logs

2022-04-25 Thread Chris Cheshire
ches_and_enhancement_requests > > -Tim Good to know. I’m going to try the logback route first - if that fails I’ll look at an enhancement request or patch. Chris > > >> On Thu, Apr 21, 2022 at 5:08 PM Chris Cheshire wrote: >> >> Tomcat 9. >> >> I

Re: Conditional access logs

2022-04-25 Thread Chris Cheshire
> On Apr 22, 2022, at 7:21 PM, Aleks wrote: > > Hi. > >> On Thu, 21 Apr 2022 17:07:27 -0400 >> Chris Cheshire wrote: >> >> Tomcat 9. >> >> I wanted to separate out access logs for external api calls to log different >> info than the s

Conditional access logs

2022-04-21 Thread Chris Cheshire
Tomcat 9. I wanted to separate out access logs for external api calls to log different info than the standard access log line. For example, the api key used which is set as a request header. Adding that to the pattern was easy. However the conditional logging was clunky. I found the

Re: Checksum Validation of Release 9.0.53 on a Mac

2021-09-23 Thread Chris Cheshire
> On Sep 23, 2021, at 10:48 AM, Darryl Philip Baker > wrote: > > I am trying to download and validate the binary release 53 file name is > apache-tomcat-9.0.53.tar.gz using openssl and the SHA256 checksum from the > link on the download web page. The target system for the installation is

Reload rewrite rules

2021-05-19 Thread Chris Cheshire
Tomcat 9.0.45 - is there a way to reload the config for the rewrite valve at runtime without reloading the web app entirely? JMX operation perhaps? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

Re: [OT] visualvm time stamps

2021-04-12 Thread Chris Cheshire
> On Apr 12, 2021, at 5:00 PM, Christopher Schultz > wrote: > > Chris, > > On 4/12/21 12:50, Chris Cheshire wrote: >>>> On Apr 9, 2021, at 3:02 PM, Chris Cheshire wrote: >>> My googlefu is failing me here. >>> I am trying to figure out s

Re: [OT] visualvm time stamps

2021-04-12 Thread Chris Cheshire
> On Apr 9, 2021, at 3:02 PM, Chris Cheshire wrote: > > My googlefu is failing me here. > > I am trying to figure out some anomalous database connection behavior in my > tomcat web app. I have enabled JMX/RMI and have visualvm running on my local > machine. >

Re: [OT] visualvm time stamps

2021-04-12 Thread Chris Cheshire
> On Apr 11, 2021, at 12:24 PM, Suvendu Sekhar Mondal wrote: > > Hi Chris, > >> On Sat, Apr 10, 2021 at 12:33 AM Chris Cheshire wrote: >> >> My googlefu is failing me here. >> >> I am trying to figure out some anomalous database connection

[OT] visualvm time stamps

2021-04-09 Thread Chris Cheshire
My googlefu is failing me here. I am trying to figure out some anomalous database connection behavior in my tomcat web app. I have enabled JMX/RMI and have visualvm running on my local machine. I found the ability to monitor the active connections as a live chart, and it has an export data

Re: Join tables from different databases with tomcat datasource

2021-01-11 Thread Chris Cheshire
> On Jan 11, 2021, at 1:19 PM, Jerry Malcolm wrote: > > I have a query that needs to access tables in two different databases on the > same mysql instance. I see how that can be done with the JOIN syntax in > mysql. But datasource pools reference a single database, correct? I really >

Re: File "catalina.out" not being created/populated when using Tomcat 9.0.31 + Ubuntu 20.04, and content goes to the Ubuntu syslog instead?

2020-06-22 Thread Chris Cheshire
> On Jun 22, 2020, at 4:44 AM, calder wrote: > > On Mon, Jun 22, 2020, 01:04 Brian wrote > > [ snip ] > > - For some reason, the people at Ubuntu/Debian/Linux decided that Tomcat's >> log should be found inside syslog, instead of staying independent inside >> "catalina.out". Why is that?

Re: ajp connector, nio vs nio2

2020-03-13 Thread Chris Cheshire
On Fri, Mar 13, 2020 at 10:09 AM Mark Thomas wrote: > > On 13/03/2020 13:54, Chris Cheshire wrote: > > Using 9.0.31 on Java 8, I have my AJP connector configured as > > > > > secretRequired="false" /> > > > > According to the logs,

ajp connector, nio vs nio2

2020-03-13 Thread Chris Cheshire
Using 9.0.31 on Java 8, I have my AJP connector configured as According to the logs, this is defaulting to the NIO protocol. The connector comparison chart [1] implies that NIO2 is used for 8.5x onwards. Shouldn't the AJP/1.3 protocol alias be using NIO2 by default (I don't have APR/native

Re: CrawlerSessionManagerValve

2020-02-28 Thread Chris Cheshire
On Fri, Feb 28, 2020 at 12:51 PM Christopher Schultz wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris and Mark, > > On 2/28/20 11:51, Mark Thomas wrote: > > On 28/02/2020 14:51, Chris Cheshire wrote: > >> (9.0.31) > >> > >

CrawlerSessionManagerValve

2020-02-28 Thread Chris Cheshire
(9.0.31) What is the reason why the pattern isn't compiled with the case insensitive flag? Is it due to performance? Chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: At wits end: Difficulties with IIS ISAPI connector and Tomcat

2020-02-24 Thread Chris Cheshire
On Mon, Feb 24, 2020 at 3:19 PM Ellen Meiselman wrote: > > Hi, > > I’m having a lot of trouble configuring the isapi_redirect connector between > IIS and Tomcat. I am running out of ideas so it’s time to ask for help from > the experts. I think the problems remaining are in the tomcat

Re: lower/uppercase rewrite maps

2020-01-09 Thread Chris Cheshire
On Thu, Jan 9, 2020 at 11:15 AM Felix Schumacher wrote: > > > Am 09.01.20 um 17:01 schrieb Chris Cheshire: > > Looking through the documentation for the rewrite valve [1], I see > > there is an example of how to write and use a rewrite map to convert a > > value to uppe

lower/uppercase rewrite maps

2020-01-09 Thread Chris Cheshire
Looking through the documentation for the rewrite valve [1], I see there is an example of how to write and use a rewrite map to convert a value to upper case. This is the inverse of what I want (lowercase), so great, easy enough to implement. This seems like something that could be included by

Re: remote jmx monitoring through ssh tunnel

2019-12-13 Thread Chris Cheshire
On Thu, Dec 12, 2019 at 10:05 AM Christopher Schultz wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 12/11/19 15:52, Chris Cheshire wrote: > > On Wed, Dec 11, 2019 at 12:24 PM Christopher Schultz > > wrote: > >> > >&

Re: remote jmx monitoring through ssh tunnel

2019-12-13 Thread Chris Cheshire
On Fri, Dec 13, 2019 at 3:52 AM Jäkel, Guido wrote: > > Dear all, > > some time ago, I also need to pass JXM through a tunneled connection (using > STunnel). The Problem with JMX via RMI is that here is more than one > connection and involved in the handshake is an IP address that is different

Re: remote jmx monitoring through ssh tunnel

2019-12-11 Thread Chris Cheshire
On Wed, Dec 11, 2019 at 12:24 PM Christopher Schultz wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > > On 12/10/19 12:59, Chris Cheshire wrote: > > On Tue, Dec 10, 2019 at 11:58 AM Chris Cheshire > > wrote: > >> > >>

Re: remote jmx monitoring through ssh tunnel

2019-12-11 Thread Chris Cheshire
Peter, On Wed, Dec 11, 2019 at 2:38 AM Peter Kreuser wrote: > > Chris‘, > > > Am 10.12.2019 um 18:59 schrieb Chris Cheshire : > > > > On Tue, Dec 10, 2019 at 11:58 AM Chris Cheshire > > wrote: > >> > >>> On Tue, Dec 10, 2019 at 9:42 AM Ch

Re: remote jmx monitoring through ssh tunnel

2019-12-10 Thread Chris Cheshire
On Tue, Dec 10, 2019 at 11:58 AM Chris Cheshire wrote: > > On Tue, Dec 10, 2019 at 9:42 AM Christopher Schultz > wrote: > > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA256 > > > > Chris, > > > > On 12/9/19 17:10, Chris Cheshire

Re: remote jmx monitoring through ssh tunnel

2019-12-10 Thread Chris Cheshire
On Tue, Dec 10, 2019 at 9:42 AM Christopher Schultz wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 12/9/19 17:10, Chris Cheshire wrote: > > In CATALINA_BASE/bin/setenv.sh I have the following : > > > > CATALI

remote jmx monitoring through ssh tunnel

2019-12-09 Thread Chris Cheshire
Server : Debian 8, Tomcat 9.0.29, OpenJDK 1.8 Client : MacOS Mojave After reading a recent thread here on monitoring database connections via JMX I am trying to set it up on a sandbox. I would prefer to use an SSH tunnel to connect than open up ports on the firewall if possible. In

Re: problem running digest.sh

2019-12-02 Thread Chris Cheshire
> On Dec 2, 2019, at 4:21 PM, Mark Thomas wrote: > > On 02/12/2019 21:07, Chris Cheshire wrote: > > > >> File on bugzilla? > > No need. It is https://bz.apache.org/bugzilla/show_bug.cgi?id=63815 > > It is fixed as far as we can until the jdg issu

problem running digest.sh

2019-12-02 Thread Chris Cheshire
tomcat 9.0.29, Debian 8, openjdk 1.8.0_232-b09 Trying to run digest.sh : $ cd /opt/apache-tomcat/9.0.29/bin $ ./digest.sh Error: Could not find or load main class -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager $ CATALINA_HOME=/opt/apache-tomcat-9.0.29 ./digest.sh Error: Could

Re: catalina_out env var

2019-11-01 Thread Chris Cheshire
On Fri, Nov 1, 2019 at 1:59 PM Mark Thomas wrote: > > On November 1, 2019 3:25:36 PM UTC, Chris Cheshire > wrote: > >(Tomcat 9, Debian & Centos Unix) > > > >I use systemd to start tomcat with base and home separated using > >catalina.sh. For the

catalina_out env var

2019-11-01 Thread Chris Cheshire
(Tomcat 9, Debian & Centos Unix) I use systemd to start tomcat with base and home separated using catalina.sh. For the service script, values for JAVA_HOME, CATALINA_HOME, CATALINA_BASE and CATALINA_OUT are defined there. Inside catalina.sh it says this about CATALINA_OUT # CATALINA_OUT

Re: Redirecting a naked domain to sub domain

2019-08-15 Thread Chris Cheshire
On Thu, Aug 15, 2019 at 2:54 PM Simon Funnell wrote: > > On Thu, 15 Aug 2019 at 01:00, Chris Cheshire wrote: > > > On Wed, Aug 14, 2019 at 5:18 PM Simon Funnell > > wrote: > > > > > > On Tue, 6 Aug 2019 at 14:33, John Larsen > > wrote

Re: Redirecting a naked domain to sub domain

2019-08-14 Thread Chris Cheshire
On Wed, Aug 14, 2019 at 5:18 PM Simon Funnell wrote: > > On Tue, 6 Aug 2019 at 14:33, John Larsen wrote: > > > I usually handle the redirect on the webserver side and set the alias in > > server.xml to the subdomain. > > > > John Larsen > > > > > > > I have now successfully loaded the rewrite

rewritevalve logging

2019-01-21 Thread Chris Cheshire
I am trying to convert some url rewriting rules from tuckey rewrite filter to tomcat's rewrite valve. In my context.xml I have In my WEB-INF directory I have a rewrite.config file with a couple of rules. In tomcat's logging.properties I have

Re: lingering mysql connections

2018-12-27 Thread Chris Cheshire
e ContextFinalizer to cleanup on shut down. > > Also, I had loads of strange sql issues which were resolved by switching to > maria db. > > Cheers Greg > > On Thu, 13 Dec 2018 at 20:51, Chris Cheshire wrote: > > > Tomcat 9.0.12, Debian, MySQL Server 5.7.23, Connector/J 5.1.46

lingering mysql connections

2018-12-13 Thread Chris Cheshire
Tomcat 9.0.12, Debian, MySQL Server 5.7.23, Connector/J 5.1.46 I am trying to fix a lingering database connection problem. When I reload a context via the tomcat manager, connections to the datasources are not being released in mysql. They are still on the 30 second activity cycle from the

Re: Connection pool and parallel deployment problem

2018-11-26 Thread Chris Cheshire
leave it up to the gurus to decide :) > -Message d'origine- > De : Chris Cheshire [mailto:yahoono...@gmail.com] > Envoyé : lundi 26 novembre 2018 15:27 > À : Tomcat Users List > Objet : Re: Connection pool and parallel deployment problem > > I'm interested in what so

Re: Connection pool and parallel deployment problem

2018-11-26 Thread Chris Cheshire
I'm interested in what solution there is for this because I have the exact same problem but without parallel deployment. [snip] On Mon, Nov 26, 2018 at 3:54 AM Gilles SCHLIENGER wrote: > > Hi Christopher, > > Thanks for your email. > > About connection pools not being closed, maybe the

Re: best practice for temporary file

2018-07-17 Thread Chris Cheshire
James, this can be done using something like the following configuration in your META-INF/context.xml (I use tomcat 8.5) I use this to serve files at /images because they are dynamic content and not part of the war itself. Make sure the directory specified by "base" has read and write

Re: tomcat connection pool not closing properly

2018-04-26 Thread Chris Cheshire
On Thu, Apr 26, 2018 at 10:23 AM, Chris Cheshire <yahoono...@gmail.com> wrote: [snip] I've done some more testing with older and newer versions of tomcat, and also swapping to use commons dbcp. All of them exhibit the same behaviour. So the question becomes is this expected behaviour (pr

tomcat connection pool not closing properly

2018-04-26 Thread Chris Cheshire
[ tomcat 8.5.30, mysql server 5.7.22, connector/j 5.1.46, centos 6, debian 8. ] I recently upgraded my sandboxes from 8.5.24 to 8.5.28 and now .30 and I have noticed that when a webapp is reloaded via the host manager, the associated connection pool is not getting closed down properly in the

Re: using default cacerts AND custom keystore

2018-02-19 Thread Chris Cheshire
On Fri, Feb 16, 2018 at 2:11 PM, Christopher Schultz <ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 2/14/18 3:34 PM, Chris Cheshire wrote: >> On Wed, Feb 14, 2018 at 12:30 PM, Mark Thomas <ma...@apache.

Re: using default cacerts AND custom keystore

2018-02-14 Thread Chris Cheshire
On Wed, Feb 14, 2018 at 12:30 PM, Mark Thomas <ma...@apache.org> wrote: > On 14/02/18 17:17, Chris Cheshire wrote: >> I am trying to set up my webapp to connect to an external database via >> ssl. The database uses a self-signed certificate. I have created a >> keyst

using default cacerts AND custom keystore

2018-02-14 Thread Chris Cheshire
I am trying to set up my webapp to connect to an external database via ssl. The database uses a self-signed certificate. I have created a keystore with the self-signed CA and the client key & cert. This keystore is configured via JAVA_OPTS in setenv.sh

Re: file permission problem SOLVED

2017-12-19 Thread Chris Cheshire
On Mon, Dec 18, 2017 at 1:11 PM, Chris Cheshire <yahoono...@gmail.com> wrote: > Since moving from a yum controlled installation of tomcat and starting > tomcat via jsvc I have a problem with permissions of uploaded files. > > Now all files that are written by tomcat have p

file permission problem

2017-12-18 Thread Chris Cheshire
Since moving from a yum controlled installation of tomcat and starting tomcat via jsvc I have a problem with permissions of uploaded files. Now all files that are written by tomcat have permissions of 0600, where they used to be 0644. I need the to be group readable, world readable is not

Re: context resources, replacement parameters

2017-12-11 Thread Chris Cheshire
get around to figuring ant out and building them dynamically. On Sat, Dec 9, 2017 at 11:19 AM, Mark Thomas <ma...@apache.org> wrote: > On 08/12/17 22:13, Chris Cheshire wrote: >> On Fri, Dec 8, 2017 at 3:36 PM, Mark Thomas <ma...@apache.org> wrote: >>> On 08/12/17 18:49, Chris

Re: context resources, replacement parameters

2017-12-08 Thread Chris Cheshire
On Fri, Dec 8, 2017 at 3:36 PM, Mark Thomas <ma...@apache.org> wrote: > On 08/12/17 18:49, Chris Cheshire wrote: >> I have a directory resource set defined in my context.xml to handle images : >> >> >> > base="${catalina.base}/cdn

Re: 8.5 - multiple host configuration question

2017-12-08 Thread Chris Cheshire
On Fri, Dec 8, 2017 at 11:25 AM, Christopher Schultz <ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 12/7/17 2:08 PM, Chris Cheshire wrote: >> On Thu, Sep 7, 2017 at 5:30 PM, Christopher Schultz >>

context resources, replacement parameters

2017-12-08 Thread Chris Cheshire
I have a directory resource set defined in my context.xml to handle images : The /p in there actually represents the context path - a given sandbox might have the same webapp deployed at different context paths representing different development branches. Is it possible to use a replacement

Re: daemon.sh and multiple tomcat instances

2017-12-08 Thread Chris Cheshire
On Fri, Dec 8, 2017 at 11:33 AM, Christopher Schultz <ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 12/7/17 3:47 PM, Chris Cheshire wrote: >> Apologies in advance for semi-OT sysadmin question. >> >

daemon.sh and multiple tomcat instances

2017-12-07 Thread Chris Cheshire
Apologies in advance for semi-OT sysadmin question. Tomcat 8.5.24, running on Centos 6. I have built jsvc according to instructions in distribution. I have two tomcat instances under different users (sandbox1, sandbox2) that have their own CATALINA_BASE. I can start these manually from the

Re: 8.5 - multiple host configuration question

2017-12-07 Thread Chris Cheshire
On Thu, Sep 7, 2017 at 5:30 PM, Christopher Schultz wrote: >> >> What should the permissions, owner & group be set to for >> CATALINA_HOME if I am running separate instances per user? > > It doesn't really matter. You just need to make sure that your "users" > can

Re: [ANN] Apache Tomcat 9.0.2 available

2017-12-01 Thread Chris Cheshire
AM, Olaf Kock <tom...@olafkock.de> wrote: > > On 01.12.2017 15:54, Chris Cheshire wrote: >> >> Has 9 had an official release yet, or is it still almost there? >> >> On Fri, Dec 1, 2017 at 9:05 AM, Mark Thomas <ma...@apache.org> wrote: >>>

SSL connectors

2017-12-01 Thread Chris Cheshire
I see in the changelog for 8.5.24 60762: Add the ability to make changes to the TLS configuration of a connector at runtime without having to restart the Connector. (markt) Does this mean we can now update SSL certificates without bouncing the connector?

Re: [ANN] Apache Tomcat 9.0.2 available

2017-12-01 Thread Chris Cheshire
Has 9 had an official release yet, or is it still almost there? On Fri, Dec 1, 2017 at 9:05 AM, Mark Thomas wrote: > The Apache Tomcat team announces the immediate availability of Apache > Tomcat 9.0.2 (beta). > > Apache Tomcat 9 is an open source software implementation of the

Re: stopping scanning of TLDs

2017-11-08 Thread Chris Cheshire
On Wed, Nov 8, 2017 at 11:24 AM, Ray Holme wrote: > In a prior post, I asked if there was a way to see if a jar uses a tag > library. > Chris responded - look for ".tld" in the files. > So I looked (turns out ecj.. has no ".tld": > $ grep "tld" *.jarBinary file

Re: configuring jarscanner in 8.5 to ignore entire directory

2017-10-31 Thread Chris Cheshire
PS JarScannerFilter above is a copypasta error, I do have the correct tag in my config with the same result On Tue, Oct 31, 2017 at 3:03 PM, Chris Cheshire <yahoono...@gmail.com> wrote: > How do I tell the jar scanner to ignore my entire WEB-INF/lib > directory for the pluggability

configuring jarscanner in 8.5 to ignore entire directory

2017-10-31 Thread Chris Cheshire
How do I tell the jar scanner to ignore my entire WEB-INF/lib directory for the pluggability scan and tld scan? I have in my context.xml the JarScanner completely ignores it as evidenced by the 20+ log messages along the lines of

Re: [OT] classloader issue with bouncycastle

2017-10-26 Thread Chris Cheshire
On Thu, Oct 26, 2017 at 9:42 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > Just curious... why are you using BC and not the JVM-provided crypto > provider? What JVM are you using? > When I first starting looking

Re: tomcat 8.5.23 dbcp not honoring autocommit = false?

2017-10-26 Thread Chris Cheshire
On Thu, Oct 26, 2017 at 3:00 PM, Christopher Schultz <ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 10/16/17 9:43 AM, Chris Cheshire wrote: >> On Fri, Oct 13, 2017 at 5:00 PM, Christopher Schultz >>

Re: classloader issue with bouncycastle

2017-10-18 Thread Chris Cheshire
On Wed, Oct 18, 2017 at 11:31 AM, Konstantin Kolinko <knst.koli...@gmail.com> wrote: > 2017-10-18 17:56 GMT+03:00 Chris Cheshire <yahoono...@gmail.com>: >> Using bouncy castle v1.58, Tomcat 8.5, java 1.8. >> >> I have the unlimited security policy files installed,

classloader issue with bouncycastle

2017-10-18 Thread Chris Cheshire
Using bouncy castle v1.58, Tomcat 8.5, java 1.8. I have the unlimited security policy files installed, the BC jars in my WEB-INF/lib directory and in order to register the BC provider, I do static { Security.addProvider(new BouncyCastleProvider()); } in a utility class that handles the

Re: tomcat 8.5.23 dbcp not honoring autocommit = false?

2017-10-17 Thread Chris Cheshire
On Tue, Oct 17, 2017 at 3:44 AM, Keiichi Fujino wrote: > Hi > > You have set factory="org.apache.tomcat.jdbc.pool.DataSourceFactory". > In other words, you do not use (tomcat)DBCP, you are using Tomcat jdbc-pool. That's what I meant sorry. Was comparing to commons-dbcp and

Re: tomcat 8.5.23 dbcp not honoring autocommit = false?

2017-10-16 Thread Chris Cheshire
autocommit off as a default for all connections. I need this at a minimum for the mysql client, but in the absence of any other configuration it should be the default for a connection from any client. > On 10/13/17 10:17 AM, Chris Cheshire wrote: >> >> >> As a further test I just

Re: tomcat 8.5.23 dbcp not honoring autocommit = false?

2017-10-13 Thread Chris Cheshire
As a further test I just took out my explicit rollback in my DAOFactory close() method, and swapped back to commons dbcp. Added an update that wasn't explicitly committed, and it correctly did not get committed when the connection was closed. Swapped back to tomcat dbcp and repeated, it got

Re: tomcat 8.5.23 dbcp not honoring autocommit = false?

2017-10-13 Thread Chris Cheshire
On Thu, Oct 12, 2017 at 11:16 PM, Christopher Schultz <ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 10/11/17 5:21 PM, Chris Cheshire wrote: >> Working on a migration from 7 to 8.5, and in it I am now usin

tomcat 8.5.23 dbcp not honoring autocommit = false?

2017-10-11 Thread Chris Cheshire
Working on a migration from 7 to 8.5, and in it I am now using the tomcat dbcp, instead of apache commons dbcp. I have found that with no other changes to the db code (except the factory param for the resource), it is working fine other than there is an implicit commit happening when I close a

Re: mod_alias equivalent for tomcat 8?

2017-09-11 Thread Chris Cheshire
On Mon, Sep 11, 2017 at 9:40 AM, Mark Thomas <ma...@apache.org> wrote: > On 08/09/17 23:00, Chris Cheshire wrote: >> In tomcat8, how do I go about configuring a Resources element to >> replace mod_alias directives in httpd? > > > >>

Re: 8.5 - multiple host configuration question

2017-09-08 Thread Chris Cheshire
On Thu, Sep 7, 2017 at 5:29 PM, Christopher Schultz <ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 9/5/17 3:39 PM, Chris Cheshire wrote: >> On Tue, Sep 5, 2017 at 2:07 PM, Christopher Schultz >>>

Re: 8.5 - multiple host configuration question

2017-09-08 Thread Chris Cheshire
On Thu, Sep 7, 2017 at 5:30 PM, Christopher Schultz <ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 9/5/17 4:42 PM, Chris Cheshire wrote: >> On Tue, Sep 5, 2017 at 2:07 PM, Christopher Schultz >>

mod_alias equivalent for tomcat 8?

2017-09-08 Thread Chris Cheshire
In tomcat8, how do I go about configuring a Resources element to replace mod_alias directives in httpd? Currently my mod_alias config for httpd has AliasMatch ^/images/(.*)$ /var/cdn/sandbox1/images/$1 AliasMatch ^/(.*)/images/(.*)$ /var/cdn/sandbox1-$1/images/$2 Order

Re: 8.5 - multiple host configuration question

2017-09-05 Thread Chris Cheshire
On Tue, Sep 5, 2017 at 2:07 PM, Christopher Schultz wrote: > If I were king, I'd set things up like this: > > 1. Tomcat is installed in /usr/local/tomcat (or > /usr/local/tomcat-x.y.z, or /opt/whatever, etc.). Looks like I do need to adjust default permissions on

Re: 8.5 - multiple host configuration question

2017-09-05 Thread Chris Cheshire
On Tue, Sep 5, 2017 at 2:07 PM, Christopher Schultz <ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 9/5/17 10:54 AM, Chris Cheshire wrote: >> I am migrating from 7 (yum repo installation) to 8.5 (dire

8.5 - multiple host configuration question

2017-09-05 Thread Chris Cheshire
I am migrating from 7 (yum repo installation) to 8.5 (direct from apache) and looking to improve configuration where possible. Currently (on *nix) I have a machine that runs sandboxes for my domain, call them sb1.dom.com and sb2.dom.com. They each have their own (system) user and in tomcat's

Re: letsencrypt integration?

2017-08-24 Thread Chris Cheshire
On Thu, Aug 24, 2017 at 4:29 PM, Christopher Schultz <ch...@christopherschultz.net> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 8/24/17 4:03 PM, Chris Cheshire wrote: > > Cheers :) > > > > On Thu, Aug 24, 2017 at 3:35

Re: letsencrypt integration?

2017-08-24 Thread Chris Cheshire
Cheers :) On Thu, Aug 24, 2017 at 3:35 PM, Mark Thomas <ma...@apache.org> wrote: > On 24/08/17 19:50, Chris Cheshire wrote: > > Currently I am using httpd to handle SSL (because my certs are generated > > via LE) with all content being passed off to Tomcat 7 (investig

letsencrypt integration?

2017-08-24 Thread Chris Cheshire
Currently I am using httpd to handle SSL (because my certs are generated via LE) with all content being passed off to Tomcat 7 (investigating 8.5 upgrade). I had a poke around on the archives and found mention of a talk on it in a conference in Miami.

Re: tomcat 7, null tag attributes

2017-06-14 Thread Chris Cheshire
On Tue, Jun 13, 2017 at 6:06 PM, Mark Thomas <ma...@apache.org> wrote: > On 13/06/17 22:01, Mark Thomas wrote: > > On 13/06/17 15:27, Chris Cheshire wrote: > > > > >> I'm bewildered at why tomcat operates this way when it comes to Numbers > and > >>

Re: tomcat 7, null tag attributes

2017-06-13 Thread Chris Cheshire
On Tue, Jun 6, 2017 at 2:29 PM, Mark Thomas <ma...@apache.org> wrote: > On 31/05/17 23:31, Chris Cheshire wrote: > > I am using tomcat 7 on CentOS 7 and I need to pass a null value to tag > > attributes of type Long/Integer/Float, however it is *always* coerced to > >

Re: tomcat 7, null tag attributes

2017-06-01 Thread Chris Cheshire
7.0.77 (latest version in EPEL repository) On Thu, Jun 1, 2017 at 10:27 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris, > > On 5/31/17 6:31 PM, Chris Cheshire wrote: > > I am using t

tomcat 7, null tag attributes

2017-05-31 Thread Chris Cheshire
I am using tomcat 7 on CentOS 7 and I need to pass a null value to tag attributes of type Long/Integer/Float, however it is *always* coerced to zero. <%@attribute name="parentId" required="true" rtexprvalue="true" type="java.lang.Long" %> Changing required to false does nothing. I tried setting

Re: tomcat7 tldScanJar warning

2013-07-15 Thread Chris Cheshire
On Fri, Jul 12, 2013 at 9:38 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 7/11/13 2:51 PM, Chris Cheshire wrote: I am working on migrating from TC6 to 7, and noticed in the log file the info messages about jars

tomcat7 tldScanJar warning

2013-07-11 Thread Chris Cheshire
I am working on migrating from TC6 to 7, and noticed in the log file the info messages about jars being needlessly scanned. Did all my googling and stuff and added all the jars mentioned to the catalina.properties file. All the warnings are gone, but it has done absolutely nothing to improve

environment variables for hostname and context name

2009-09-18 Thread Chris Cheshire
I'm reconfiguring the logging for my tomcat installation (6.0.20) to use logback (instead of log4j) for the server logging so I can split out error messages on a per host basis. I see that catalina.home is exposed as an environment var and usable in the logging configuration file - what about the

Re: environment variables for hostname and context name

2009-09-18 Thread Chris Cheshire
I forced that error specifically for this example. That's not the issue. That is an example of what I am trying to log, and it illustrates that the information I need is available at the logging level. On Fri, Sep 18, 2009 at 7:01 PM, Martin Gainty mgai...@hotmail.com wrote:

Re: environment variables for hostname and context name

2009-09-18 Thread Chris Cheshire
they are/can be exposed. Those values are generated internally by tomcat when it dumps that stack trace, they weren't part of the original logging message. On Fri, Sep 18, 2009 at 8:30 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 19.09.2009 02:18, Chris Cheshire wrote: I'm reconfiguring the logging

reconfiguring tomcat logging

2009-09-02 Thread Chris Cheshire
Whenever tomat compiles a JSP page and there is an error in it (for instance trying to reference a property on a bean that doesn't exist), it is throwing (and obscuring) an exception and logging it to catalina.out and then returning whatever html it has built to the browser, as in : Sep 2, 2009

Re: processing precedence for mod_jk config?

2009-08-26 Thread Chris Cheshire
know what to expect if I have to change something later :) Chris On Tue, Aug 25, 2009 at 7:12 PM, Christopher Schultzch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 8/25/2009 9:37 PM, Chris Cheshire wrote: However, even with a directory deny rule

processing precedence for mod_jk config?

2009-08-25 Thread Chris Cheshire
Hi, I have been working on a web-app that has been running under tomcat 6 alone for a while. I am now configuring Apache to do some rewrite rules with domains and then forward on to tomcat, which is working. However, even with a directory deny rule in apache conf to block the web-inf and

virtual hosts and tomcat-users.xml

2009-04-28 Thread Chris Cheshire
I am setting up a handful of virtual hosts on a server, and I have the manager app configured as per the docs. How do I configure the security for the manager app such that each virtual host has its own tomcat-users.xml though, so that the credentials of one virtual host can't be used log on to