Monitoring and Tuning Tomcat

2024-04-30 Thread Jerry Malcolm
I'm trying to optimize my instance, CPU, tuning, and size requirements for Tomcat.  It's easy to see CPU usage.  But this TC instance is running a lot of microservices that are often in and out fairly quickly.  So there can be a huge number of requests coming in.  I'm not sure that CPU

Re: Admin password for Tomcat

2023-12-29 Thread Jerry Malcolm
Chris, On 12/29/2023 11:22 AM, Christopher Schultz wrote: Jerry, On 12/28/23 18:33, Jerry Malcolm wrote: Chris, On 12/28/2023 3:38 PM, Christopher Schultz wrote: Jerry. On 12/27/23 02:13, Jerry Malcolm wrote: I implemented the filter as you suggested.  But I guess I'm going to need some

Re: Admin password for Tomcat

2023-12-28 Thread Jerry Malcolm
Chris, On 12/28/2023 3:38 PM, Christopher Schultz wrote: Jerry. On 12/27/23 02:13, Jerry Malcolm wrote: I implemented the filter as you suggested.  But I guess I'm going to need some education on sessions.  Down in a user profile web page I have a button to "Impersonate". I'm w

Re: Admin password for Tomcat

2023-12-26 Thread Jerry Malcolm
Chris, On 12/26/2023 11:35 AM, Christopher Schultz wrote: Jerry, On 12/24/23 19:18, Jerry Malcolm wrote: Chris, On 11/8/2023 2:43 PM, Christopher Schultz wrote: Jerry, On 11/6/23 23:22, Jerry Malcolm wrote: On 11/5/2023 11:54 AM, Jerry Malcolm wrote: On 11/5/2023 9:26 AM, Christopher

Re: Admin password for Tomcat

2023-12-24 Thread Jerry Malcolm
Chris, On 11/8/2023 2:43 PM, Christopher Schultz wrote: Jerry, On 11/6/23 23:22, Jerry Malcolm wrote: On 11/5/2023 11:54 AM, Jerry Malcolm wrote: On 11/5/2023 9:26 AM, Christopher Schultz wrote: Jerry, On 11/4/23 20:17, Jerry Malcolm wrote: My support team needs to be able to log

Re: Admin password for Tomcat

2023-11-06 Thread Jerry Malcolm
On 11/5/2023 11:54 AM, Jerry Malcolm wrote: On 11/5/2023 9:26 AM, Christopher Schultz wrote: Jerry, On 11/4/23 20:17, Jerry Malcolm wrote: My support team needs to be able to log in to our site as various users (on behalf of...) to be able to see exactly what they are seeing since roles

Re: Admin password for Tomcat

2023-11-05 Thread Jerry Malcolm
On 11/5/2023 9:26 AM, Christopher Schultz wrote: Jerry, On 11/4/23 20:17, Jerry Malcolm wrote: My support team needs to be able to log in to our site as various users (on behalf of...) to be able to see exactly what they are seeing since roles, access groups, history is different

Admin password for Tomcat

2023-11-04 Thread Jerry Malcolm
My support team needs to be able to log in to our site as various users (on behalf of...) to be able to see exactly what they are seeing since roles, access groups, history is different for different users.  I would like to implement an admin password where I can log in as any userId with this

Re: Unable to find [jdbc].

2023-06-27 Thread Jerry Malcolm
solved. (At least THIS one was solved :-) ) Jerry On 6/27/2023 3:41 PM, Jerry Malcolm wrote: All of a sudden I started getting a NameNotFoundException when I'm trying to resolve a dataSource name.   But it comes and goes on all of my dataSource names.  The log below was from about a minute

Unable to find [jdbc].

2023-06-27 Thread Jerry Malcolm
All of a sudden I started getting a NameNotFoundException when I'm trying to resolve a dataSource name.   But it comes and goes on all of my dataSource names.  The log below was from about a minute.  The only thing I could find in a google search for "Unable to find [jdbc]"  says my

Conclusion - Re: Crypto Randomly Not Getting Initialized

2023-06-14 Thread Jerry Malcolm
On 6/13/2023 3:46 PM, Jerry Malcolm wrote: On 6/13/2023 12:39 PM, Jerry Malcolm wrote: Rob, On 6/13/2023 11:34 AM, Rob Sargent wrote: In /etc/rc.local I have: -- sleep 120s systemctl start tomcat9 - I put the sleep in back a couple of years ago

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
On 6/13/2023 12:39 PM, Jerry Malcolm wrote: Rob, On 6/13/2023 11:34 AM, Rob Sargent wrote: In /etc/rc.local I have: -- sleep 120s systemctl start tomcat9 - I put the sleep in back a couple of years ago that for some reason 'fixed' this same random

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
Rob, On 6/13/2023 11:34 AM, Rob Sargent wrote: In /etc/rc.local I have: -- sleep 120s systemctl start tomcat9 - I put the sleep in back a couple of years ago that for some reason 'fixed' this same random, intermittent crypto file exception. You

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
chris On 6/13/2023 11:03 AM, Christopher Schultz wrote: Jerry, On 6/13/23 11:51, Jerry Malcolm wrote: Reg, On 6/13/2023 2:57 AM, r.barc...@habmalnefrage.de wrote: Hey Jerry, Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism       at java.base

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
Chris, On 6/13/2023 11:03 AM, Christopher Schultz wrote: Jerry, On 6/13/23 11:51, Jerry Malcolm wrote: Reg, On 6/13/2023 2:57 AM, r.barc...@habmalnefrage.de wrote: Hey Jerry, Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism       at java.base

Re: AW: AW: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
Thomas, On 6/13/2023 10:45 AM, Thomas Hoffmann (Speed4Trade GmbH) wrote: Hello Jerry, -Ursprüngliche Nachricht- Von: Jerry Malcolm Gesendet: Dienstag, 13. Juni 2023 17:35 An: users@tomcat.apache.org Betreff: Re: AW: Crypto Randomly Not Getting Initialized Hi Thomas, On 6/13/2023 2

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
Reg, On 6/13/2023 2:57 AM, r.barc...@habmalnefrage.de wrote: Hey Jerry, Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism     at java.base/javax.crypto.JceSecurity.(JceSecurity.java:120) ... 86 mo Caused by: java.lang.SecurityException: Can't read

Re: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
Simon, On 6/13/2023 2:20 AM, Simon Matter wrote: Hi, I am running Tomcat 9.0.56 in multiple AWS EC2 instances with Amazon Linux2 in a production environment.  A couple of years ago, we started getting weird errors that the "Crypto Mechanism" failed to initialize. Through a lot of trial and

Re: AW: Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
Hi Thomas, On 6/13/2023 2:08 AM, Thomas Hoffmann (Speed4Trade GmbH) wrote: Hello Jerry, -Ursprüngliche Nachricht- Von: Jerry Malcolm Gesendet: Dienstag, 13. Juni 2023 08:50 An: users@tomcat.apache.org Betreff: Crypto Randomly Not Getting Initialized I am running Tomcat 9.0.56

Crypto Randomly Not Getting Initialized

2023-06-13 Thread Jerry Malcolm
I am running Tomcat 9.0.56 in multiple AWS EC2 instances with Amazon Linux2 in a production environment.  A couple of years ago, we started getting weird errors that the "Crypto Mechanism" failed to initialize.  Through a lot of trial and error, and reasons I don't quite remember, we put a

Re: SSO Token not found with RewriteRules

2023-01-17 Thread Jerry Malcolm
On 1/17/2023 12:30 PM, Jerry Malcolm wrote: On 1/17/2023 3:43 AM, Mark Thomas wrote: On 16/01/2023 23:07, Jerry Malcolm wrote: Well, after downloading and installing the Tomcat source in my Eclipse environment and tracking through a bunch of breakpoints, I figured out what was happening

Re: SSO Token not found with RewriteRules

2023-01-17 Thread Jerry Malcolm
On 1/17/2023 3:43 AM, Mark Thomas wrote: On 16/01/2023 23:07, Jerry Malcolm wrote: Well, after downloading and installing the Tomcat source in my Eclipse environment and tracking through a bunch of breakpoints, I figured out what was happening. SingleSignOn.invoke() was querying

Re: SSO Token not found with RewriteRules

2023-01-16 Thread Jerry Malcolm
in that host for a ROOT context. This one was painful.  Just out of curiosity, is this restriction intended?  If so, error messages and/or documentation of it might need a review. Thanks. Jerry On 1/16/2023 12:40 AM, Jerry Malcolm wrote: I have one virtual host working fine on a Windows 11

SSO Token not found with RewriteRules

2023-01-15 Thread Jerry Malcolm
I have one virtual host working fine on a Windows 11 TC 9 install.  I am adding a 2nd virtual host to that same running installation.  This TC is standalone, handling http requests directly (not via httpd).   Both virtual hosts have a rewrite.config.   On the new domain, I go to a page that

Re: AW: Slow startup first time after reboot

2022-09-30 Thread Jerry Malcolm
Object[]) line: 43     Method.invoke(Object, Object...) line: 566     Bootstrap.start() line: 345     Bootstrap.main(String[]) line: 476 On 9/29/2022 4:29 AM, Mark Thomas wrote: On 29/09/2022 04:05, Jerry Malcolm wrote: Hi, Mark, Thanks for the info. Getting several thread dumps is not g

Re: AW: Slow startup first time after reboot

2022-09-28 Thread Jerry Malcolm
to figure out the thread-dump on system boot procedure. Thanks again. Jerry On 9/28/2022 11:33 AM, Mark Thomas wrote: Lots of ways. I'd try starting with the jstack tool which should be provided as part of the JDK you are using. Mark On 28/09/2022 17:16, Jerry Malcolm wrote: Thanks, Mark, I'm

Re: AW: Slow startup first time after reboot

2022-09-28 Thread Jerry Malcolm
: Jerry Malcolm Gesendet: Mittwoch, 28. September 2022 04:54 An: users@tomcat.apache.org Betreff: Re: Slow startup first time after reboot Neil, Sadly, that line doesn't appear either with or without the java.security.egd option.   That appears to be a lump sum  of 4-5 minutes for the SecureRandom

Re: Slow startup first time after reboot

2022-09-27 Thread Jerry Malcolm
Neil, Sadly, that line doesn't appear either with or without the java.security.egd option.   That appears to be a lump sum  of 4-5 minutes for the SecureRandom seed thing.  I'm getting a total accumulation of ~5 minutes.  But it's made up of a bunch of ~15-sec web starts.  See example below. 

Re: Slow startup first time after reboot

2022-09-27 Thread Jerry Malcolm
/./urandom Thank you, Neil -- Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com We offer 30 year loans on single family houses! -Original Message- From: Jerry Malcolm [mailto:techst...@malcolms.com] Sent: Tuesday, September 27, 2022 4:43 PM To: users@tomcat.apache.org Subject

Slow startup first time after reboot

2022-09-27 Thread Jerry Malcolm
I'm running Tomcat 9.0.56 in a production environment on AWS Linux2.  My environment is 4 virtual hosts with about 9-10 web applications on each.  The web apps are already expanded in the webapps folder.  So there are no war file expansions involved. The first time after I reboot the server

Re: Critical Random "Can't read cryptographic policy directory: unlimited"

2021-12-21 Thread Jerry Malcolm
specifically with the crypto file.  That's just likely the first file needed that wasn't ready yet. Moving on the next fire that needs to be put out... Thx Jerry On 12/20/2021 5:22 AM, Mark Thomas wrote: On 20/12/2021 06:59, Jerry Malcolm wrote: I'm adding a slight variation to the error I get

Re: Critical Random "Can't read cryptographic policy directory: unlimited"

2021-12-19 Thread Jerry Malcolm
I'm adding a slight variation to the error I get at times (see bottom of stack trace below) On 12/19/2021 11:55 PM, Jerry Malcolm wrote: I have a production environment of 10+ AWS EC2 servers all built from a single EC2 snapshot image.  The master EC2 works fine.  But when we propagated

Critical Random "Can't read cryptographic policy directory: unlimited"

2021-12-19 Thread Jerry Malcolm
I have a production environment of 10+ AWS EC2 servers all built from a single EC2 snapshot image.  The master EC2 works fine.  But when we propagated the image to all of the production servers, we started getting  "Can't read cryptographic policy directory: unlimited" errors when I try to get

Re: BasicDataSource restart()

2021-12-08 Thread Jerry Malcolm
On 12/1/2021 10:38 AM, Jerry Malcolm wrote: Mark, On 12/1/2021 12:21 AM, Mark Eggers wrote: Jerry, On 11/30/2021 10:06 PM, Jerry Malcolm wrote: I'm circling back to this after a few months.  I am building on a Windows 10 box with 9.0.52 TC. But I'm running on an AWS Linux2 with 8.5.72

Re: RemoveAbandoned Problems

2021-12-08 Thread Jerry Malcolm
, Jerry Malcolm wrote: Chris, The way I thought it worked was if I configured 'RemoveAbandonedOnBorrow' and RemoveAbandonedTimeout="15" was that each time I requested a new connection from the pool, any connections that had been idle for >15 minutes and had not been returne

Re: RemoveAbandoned Problems

2021-12-07 Thread Jerry Malcolm
ent.  But I'd like to figure out where my understanding is wrong for future situations. Thanks Jerry On 12/7/2021 2:31 PM, Christopher Schultz wrote: Jerry, On 12/4/21 23:06, Jerry Malcolm wrote: I had a db connection leak in my code where an error condition would throw an exception and bypass t

Re: RemoveAbandoned Problems

2021-12-05 Thread Jerry Malcolm
  You need to set the value of timeBetweenEvictionRunsMillis to a positive number. Phil On 12/4/21 9:06 PM, Jerry Malcolm wrote: I had a db connection leak in my code where an error condition would throw an exception and bypass the connection cleanup code. I found that and fixed it.  But befo

RemoveAbandoned Problems

2021-12-04 Thread Jerry Malcolm
I had a db connection leak in my code where an error condition would throw an exception and bypass the connection cleanup code. I found that and fixed it.  But before I found the problem, my program was overrunning the max connections and locking out.  It would take sometimes 12 hours after a

Re: NPE in request.getRequestURL()

2021-12-01 Thread Jerry Malcolm
Chris, On 11/30/2021 11:41 PM, Jerry Malcolm wrote: On 11/30/2021 1:58 PM, Christopher Schultz wrote: Jerry, On 11/30/21 14:17, Jerry Malcolm wrote: Chris, Thanks for the response. Sorry... forgot to include the TC ver -- 8.5.69. I had a situation a while back where I spun a longrunning

Re: BasicDataSource restart()

2021-12-01 Thread Jerry Malcolm
Mark, On 12/1/2021 12:21 AM, Mark Eggers wrote: Jerry, On 11/30/2021 10:06 PM, Jerry Malcolm wrote: I'm circling back to this after a few months.  I am building on a Windows 10 box with 9.0.52 TC.  But I'm running on an AWS Linux2 with 8.5.72.  This has never caused any problems so far

Re: BasicDataSource restart()

2021-11-30 Thread Jerry Malcolm
telling me the restart() method doesn't exist? Thx as always. Jerry On 9/7/2021 2:49 PM, Jerry Malcolm wrote: On 9/7/2021 2:35 PM, Christopher Schultz wrote: Jerry, Rémy, On 9/3/21 07:15, Rémy Maucherat wrote: On Fri, Sep 3, 2021 at 2:46 AM Jerry Malcolm wrote: I have a requirement

Re: NPE in request.getRequestURL()

2021-11-30 Thread Jerry Malcolm
On 11/30/2021 1:58 PM, Christopher Schultz wrote: Jerry, On 11/30/21 14:17, Jerry Malcolm wrote: Chris, Thanks for the response. Sorry... forgot to include the TC ver -- 8.5.69. I had a situation a while back where I spun a longrunning thread and held the request object after the main

Re: NPE in request.getRequestURL()

2021-11-30 Thread Jerry Malcolm
/response thread.  Is there any situation where the request object could be recycled before the associated response is returned? Thx Jerry On 11/29/2021 7:42 PM, Christopher Schultz wrote: Jerry, On 11/29/21 19:33, Jerry Malcolm wrote: Can anyone tell me what I might be doing that would cause

NPE in request.getRequestURL()

2021-11-29 Thread Jerry Malcolm
Can anyone tell me what I might be doing that would cause an NPE inside the request object on getRequestURL()?  The NPE only happens about 10% of the time.  I can't figure out what is happening differently in that 10% of the calls to this code.  Thx java.lang.NullPointerException at

Host-wide Singleton Instance

2021-11-02 Thread Jerry Malcolm
I am adding a redis implementation  (jedis) to my application.  I have a jedis implementation class that holds the connection pool and interfaces with jedis.  That class needs to be instantiated once per host and then referenced from that point on by all of the webapps in the host.  Is there

Re: [OT] Specifying a Custom Authenticator Class

2021-10-06 Thread Jerry Malcolm
C for many years.  But this is an area I've never dealt with until now. On 10/5/2021 1:54 PM, Christopher Schultz wrote: Jerry, On 10/5/21 12:23, Jerry Malcolm wrote: hi Chris, thanks for the feedback. I'm not using JWTs.  I'm just sending a base64 token made up of "a:b:c:d:e".  

Re: [OT] Specifying a Custom Authenticator Class

2021-10-05 Thread Jerry Malcolm
s? Thx On 10/5/2021 9:50 AM, Christopher Schultz wrote: Jerry, On 10/4/21 22:40, Jerry Malcolm wrote: I really don't care whether it's called Basic, Malcolm, RollYourOwn, or whatever.  I was just emulating techniques I've had to implement as a client for credit card gateways and other services i

Re: Specifying a Custom Authenticator Class

2021-10-04 Thread Jerry Malcolm
ame result if my authorization header prefix is now "Malcolm" instead of "Basic"? Just exploring my options. Thanks for the discussion.  It's helping me a lot. Jerry On 10/4/2021 8:49 AM, Christopher Schultz wrote: Michael, On 10/3/21 11:58, Michael Osipov wrote: Am 2021-10-02 u

Specifying a Custom Authenticator Class

2021-10-01 Thread Jerry Malcolm
I need to write a custom BasicAuthenticator class to decode a specialized encoding of the authToken.  I have been scouring google for info.  I found one post where the answer included the statement: "Extending from AuthenticatorBase is a great idea, and you can avoid Tomcat's standard

Re: BasicDataSource restart()

2021-09-07 Thread Jerry Malcolm
On 9/7/2021 2:35 PM, Christopher Schultz wrote: Jerry, Rémy, On 9/3/21 07:15, Rémy Maucherat wrote: On Fri, Sep 3, 2021 at 2:46 AM Jerry Malcolm wrote: I have a requirement to start a new log database on the first of every month.  I still need to have access to older monthly log databases

BasicDataSource restart()

2021-09-02 Thread Jerry Malcolm
I have a requirement to start a new log database on the first of every month.  I still need to have access to older monthly log databases.   I do not want to create a bunch of hardcoded manually configured individual datasources, one for each month.  I have a dynamic datasource solution that

Re: Timestamp Error

2021-08-27 Thread Jerry Malcolm
On 8/27/2021 1:30 PM, Mark Eggers wrote: On 8/27/2021 11:16 AM, Jerry Malcolm wrote: On 8/27/2021 11:55 AM, Christopher Schultz wrote: Mark and Jerry, On 8/26/21 22:03, Mark Eggers wrote: Jerry, On 8/26/2021 6:35 PM, Jerry Malcolm wrote: I am encountering a weird problem. I'm getting

Re: Timestamp Error

2021-08-27 Thread Jerry Malcolm
On 8/27/2021 11:55 AM, Christopher Schultz wrote: Mark and Jerry, On 8/26/21 22:03, Mark Eggers wrote: Jerry, On 8/26/2021 6:35 PM, Jerry Malcolm wrote: I am encountering a weird problem. I'm getting the following SQL error on an INSERT command

Timestamp Error

2021-08-26 Thread Jerry Malcolm
I am encountering a weird problem. I'm getting the following SQL error on an INSERT command. com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime value: '1969-12-31 18:00:00.0' for column... The column is a TIMESTAMP in mySQL. I pasted the SQL statement

request.getPathInfo() Question

2021-07-19 Thread Jerry Malcolm
I have a servlet in the ROOT context mapped to "/".  I'm using request.getPathInfo() to get everything after the ".com/" in the URL.  But no matter what is added to the url after .com/, getPathInfo() always returns null.  I printed out getRequestURL(), and it shows everything.  I can parse the

Re: Mixing Root Context webapp with other webapps

2021-07-09 Thread Jerry Malcolm
On 7/9/2021 2:23 AM, Olaf Kock wrote: On 09.07.21 07:58, Jerry Malcolm wrote: I have one webapp that processes REST-style url paths and therefore needs to run in the ROOT context.  Is it possible to run other webapps in the same host with other non-root contexts?   In other words, when

Mixing Root Context webapp with other webapps

2021-07-08 Thread Jerry Malcolm
I have one webapp that processes REST-style url paths and therefore needs to run in the ROOT context.  Is it possible to run other webapps in the same host with other non-root contexts?   In other words, when resolving a URL to a web app, does it try to map the url to the defined context

DB Connection Pool Error Handling

2021-06-25 Thread Jerry Malcolm
Periodically, in an otherwise normal running system, I get one simple mySQL query/create/update that takes 25+ seconds.  I'm pursuing this with mySQL logs and other steps on the mySQL end. But I have a couple of questions related to the TC side.  I start and end a timer on each side of a

DB Max Connections with Auto-Scaling Group

2021-06-21 Thread Jerry Malcolm
I have a TC instance running on an EC2 in an AWS Autoscaling group.  I have a database with 500 max connections.  The default EC2 count is 2 instances in the autoscaling group.  I guess that means that I should set the Tomcat resource config for this datasource to be maxTotal = 250, so if both

Forcing Single Session Cookie for SingleSignOn Across Webapps

2021-04-15 Thread Jerry Malcolm
I have a web site that is made up of several individual webapps all tied together with SingleSignOn.   We are using Amazon's Load Balancer with session affinity.  However each webapp is generating it's own session cookie, so the load balancer is routing to different server instances for each

Memory vs. Heap Space

2021-04-12 Thread Jerry Malcolm
I'm getting TC crashes (ver 8.5) with "out of memory" errors.  I understand heap space and the parameters to set it.  But I need a bit of help with "out of memory", not "out of heap space".   This is running in an EC2 on AWS.  It's a development server, so activity is minimal compared to

Determining My Own IP address?

2021-04-01 Thread Jerry Malcolm
I am running several clustered Tomcat EC2 instances in an Amazon autoscaling group.  These instances come and go based on load and failure/restart.  IP addresses are assigned dynamically.  As far I can figure, the only determinable difference between the instances is the IP address that is

Re: Keeping a session active with ajax

2021-03-15 Thread Jerry Malcolm
On 3/15/2021 2:42 AM, Martin Grigorov wrote: Hi, Which version of Tomcat ? I'm running Tomcat 8.5.30 on AWS Linux 2. On Mon, Mar 15, 2021 at 8:25 AM Jerry Malcolm wrote: In my app a logged in user will access a page. But then all of the interaction on the page is done back and forth

Keeping a session active with ajax

2021-03-15 Thread Jerry Malcolm
In my app a logged in user will access a page.  But then all of the interaction on the page is done back and forth with ajax calls to the server.  The ajax activities within the page could last well over the 30 minute session timeout. Even though the user has been actively working for 30-45

[OT] Linux EC2 Java Gremlin

2021-03-11 Thread Jerry Malcolm
Not directly a tomcat question... but since TC runs on java, maybe someone here has some suggestions.  I am running a development/sandbox server on AWS EC2, Linux 2.  Only I and one other person have access to it.  Yesterday I was browsing through some pages on my site when all of a sudden I

Dynamic Configuration on TC startup

2021-02-23 Thread Jerry Malcolm
The server solution I am developing is split across multiple Amazon Web Services EC2 instances.  They all use the same TC WAR images.  But each server handles a different portion of the functionality aaa.mydomain.com is called for one set of function, and bbb.mydomain.com is called for

Re: Tomcat Displaying Login Page before redirecting to https

2021-01-12 Thread Jerry Malcolm
with and resolve over the years.  I really appreciate all of the help you and your team have been to me as I attempt to get everything working. Jerry On 1/12/2021 1:49 AM, Mark Thomas wrote: On 12/01/2021 00:45, Jerry Malcolm wrote: On 1/11/2021 6:11 PM, Mark Thomas wrote: On 12/01/2021 00:00, Jerry

Re: [OT] Join tables from different databases with tomcat datasource

2021-01-12 Thread Jerry Malcolm
Cheshire wrote: 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 need

Re: Tomcat Displaying Login Page before redirecting to https

2021-01-11 Thread Jerry Malcolm
On 1/11/2021 6:11 PM, Mark Thomas wrote: On 12/01/2021 00:00, Jerry Malcolm wrote: I have a standalone tomcat. TC is configured to redirect any port 80 requests to https/443.  It works fine on pages that aren't protected by web.xml security constraints.  However, if a page is protected

Tomcat Displaying Login Page before redirecting to https

2021-01-11 Thread Jerry Malcolm
I have a standalone tomcat. TC is configured to redirect any port 80 requests to https/443.  It works fine on pages that aren't protected by web.xml security constraints.  However, if a page is protected, the login page appears while still in non-ssl http mode. For years, I've had httpd

Join tables from different databases with tomcat datasource

2021-01-11 Thread Jerry Malcolm
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 need to 'join' two datasources for one sql call. I found info on

Re: Recognizing Certificate Updates

2020-12-28 Thread Jerry Malcolm
djust the port to your SSL-Connector. Add a to tomcat-users.xml Beware not to open the Manager App to the public - just localhost. HTH Peter Am 26.12.2020 um 18:42 schrieb Jerry Malcolm : We have a production environment where we rarely reboot Tomcat. LetsEncrypt auto-updates the certifica

Recognizing Certificate Updates

2020-12-26 Thread Jerry Malcolm
We have a production environment where we rarely reboot Tomcat. LetsEncrypt auto-updates the certificates every couple of months. But the new certificates are not loaded into Tomcat.  So when the original expiration date of the certs arrives, users get "certificate expired" even though new

Re: Timeout waiting to read data from client

2020-11-11 Thread Jerry Malcolm
On 11/9/2020 11:05 AM, Jerry Malcolm wrote: On 11/9/2020 3:10 AM, Mark Thomas wrote: On 08/11/2020 01:33, Jerry Malcolm wrote: On 11/7/2020 6:56 PM, Christopher Schultz wrote: Jerry, On 11/6/20 19:49, Jerry Malcolm wrote: I have a relatively new environment with a standalone tomcat (8.5

Re: Timeout waiting to read data from client

2020-11-09 Thread Jerry Malcolm
On 11/9/2020 3:10 AM, Mark Thomas wrote: On 08/11/2020 01:33, Jerry Malcolm wrote: On 11/7/2020 6:56 PM, Christopher Schultz wrote: Jerry, On 11/6/20 19:49, Jerry Malcolm wrote: I have a relatively new environment with a standalone tomcat (8.5) running on an AWS Linux2 EC2.  I'm not using

Re: Timeout waiting to read data from client

2020-11-07 Thread Jerry Malcolm
On 11/7/2020 6:56 PM, Christopher Schultz wrote: Jerry, On 11/6/20 19:49, Jerry Malcolm wrote: I have a relatively new environment with a standalone tomcat (8.5) running on an AWS Linux2 EC2.  I'm not using HTTPD/AJP.  Its a direct connection to port 443.  (Well technically, I have

Timeout waiting to read data from client

2020-11-06 Thread Jerry Malcolm
I have a relatively new environment with a standalone tomcat (8.5) running on an AWS Linux2 EC2.  I'm not using HTTPD/AJP.  Its a direct connection to port 443.  (Well technically, I have firewallD in the flow in order to route the protected port 80 to port 8080 and 443 to 8443 for TC). I am

Tomcat and CLoudWatch

2020-08-19 Thread Jerry Malcolm
Is anyone successfully monitoring Tomcat JMX beans on Amazon CloudWatch?  This shouldn't be that difficult.  But we are hitting a brick wall.  Can't get anything to work that is recommended on forums. Thx - To unsubscribe,

Logging Rewrite Activity

2020-08-06 Thread Jerry Malcolm
How do configure TC to log the activities of the RewriteValve?  I added org.apache.catalina.valves.rewrite.RewriteValve.level = FINE to logging.properties.  But I'm not seeing any output related to rewrite. Do I have the logging config wrong?  Am I looking in the wrong place for the log data?

Re: Rewrite Valve Problem

2020-07-20 Thread Jerry Malcolm
On 7/20/2020 5:00 PM, Mark Thomas wrote: On 20/07/2020 22:43, Jerry Malcolm wrote: Do you have a ROOT web application deployed? If not, this could be https://bz.apache.org/bugzilla/show_bug.cgi?id=64593 Mark, I do not have a root context.  So that very likely is the problem.  Not 100

Re: Rewrite Valve Problem

2020-07-20 Thread Jerry Malcolm
On 7/20/2020 3:42 PM, Mark Thomas wrote: On 20/07/2020 19:24, Jerry Malcolm wrote: My next step in moving httd/mod_jk out of the chain is to move my rewrite rules to Tomcat.  The instructions are pretty straightforward. I added the rewrite value to the host in server.xml, and I created

Rewrite Valve Problem

2020-07-20 Thread Jerry Malcolm
My next step in moving httd/mod_jk out of the chain is to move my rewrite rules to Tomcat.  The instructions are pretty straightforward.  I added the rewrite value to the host in server.xml, and I created rewrite.index in the host's folder in Catalina directory. The rewrite itself seems to

request.getLocatHost() Different with port 80 vs mod_jk

2020-07-18 Thread Jerry Malcolm
I'm taking Christopher's advice to remove httpd and mod_jk out of my process and go straight to Tomcat on port 80.  At this point the only thing I've done is stop the httpd service and change the Connector port to 80.  I'm running on my local machine.  I have a hosts entry set to

Re: Monitoring Connections and Limits Thru HTTPD/mod_jk/Tomcat

2020-07-07 Thread Jerry Malcolm
- Hash: SHA256 Jerry, On 7/7/20 16:50, Jerry Malcolm wrote: I'm setting up an environment that has the potential for a large number of simultaneous requests coming in. I have a basic Apache HTTPD with mod_jk talking to Tomcat, all on the same Amazon EC2 instance. From my understanding, I have

Monitoring Connections and Limits Thru HTTPD/mod_jk/Tomcat

2020-07-07 Thread Jerry Malcolm
I'm setting up an environment that has the potential for a large number of simultaneous requests coming in.   I have a basic Apache HTTPD with mod_jk talking to Tomcat, all on the same Amazon EC2 instance.  From my understanding, I have the potential of maxing out connections at httpd, at

Re: Setting up Tomcat behind an existing Apache httpd server (on Amazon Linux 2)

2020-04-06 Thread Jerry Malcolm
Hi James, I've been using this precise setup for years, first on a dedicated hosted server and recently on EC2/Linux2.  I use mod_jk. The first step is to make sure httpd recognizes all of the domain names and subdomains.  That includes the vhost definitions of all of the domains and

Re: jarsToSkip/jarsToScan

2020-04-05 Thread Jerry Malcolm
On 4/5/2020 2:20 AM, Mark Thomas wrote: On 05/04/2020 05:10, Jerry Malcolm wrote: This is on a 8.5.x.  I did a yum update.  So I assume it's close to the latest point release of 8.5.  Maybe I'll have a clearer mind tomorrow and see something obvious. Did you look in the changelog? Hint

jarsToSkip/jarsToScan

2020-04-04 Thread Jerry Malcolm
I've encountered some very strange behavior in a new TC instance.  It's not actually 'new'.  I cloned an Amazon EC2 that had a fully functional ApacheHTTPD/Tomcat.  I replaced the domain on the clone with a new domain.  Otherwise, nothing was changed. I use JSTL extensively on both the

catalina.out on AWS Linux 2 (resolved) (was: stdout / stderr on AWS Linux)

2020-03-09 Thread Jerry Malcolm
On 3/9/2020 4:58 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jerry, On 3/9/20 16:35, Jerry Malcolm wrote: On 3/3/2020 2:45 PM, Christopher Schultz wrote: Jerry, On 3/3/20 11:46, Jerry Malcolm wrote: Where are the stdout and stderr log files written for tomcat in

Re: stdout / stderr on AWS Linux

2020-03-09 Thread Jerry Malcolm
On 3/3/2020 2:45 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jerry, On 3/3/20 11:46, Jerry Malcolm wrote: Where are the stdout and stderr log files written for tomcat in AWS Linux? Are you talking about a Tomcat installed from the package-manager (yum

stdout / stderr on AWS Linux

2020-03-03 Thread Jerry Malcolm
Where are the stdout and stderr log files written for tomcat in AWS Linux?  On windows, they are just part of the logs folder. But in AWS Linux /var/log/Tomcat I get all of the other log files.  But no stdout/stderr.  Most of the info is also in Catalina.out.  But just curious where stdout and

Re: Cross-session Persistent Object?

2020-02-11 Thread Jerry Malcolm
On 2/11/2020 4:32 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jerry, On 2/11/20 3:11 PM, Jerry Malcolm wrote: I need some advice.  I need to maintain a set of long-running threads. When a request comes in, I need to determine if I have a thread started

Cross-session Persistent Object?

2020-02-11 Thread Jerry Malcolm
I need some advice.  I need to maintain a set of long-running threads.  When a request comes in, I need to determine if I have a thread started for a particular id found in the request.  So I need to have a hashmap of threads keyed by the ids.  That part is simple enough.  But I'm struggling

Re: Datasource Connections Problem

2020-01-24 Thread Jerry Malcolm
On 1/24/2020 12:07 AM, Felix Schumacher wrote: Am 24. Januar 2020 06:22:49 MEZ schrieb Jerry Malcolm : On 1/23/2020 11:04 PM, Jerry Malcolm wrote: Sorry... forgot the version.  You are correct.  It's 8.5.x running on AWS Linux EC2.  I didn't intentionally configure anything special

Re: Datasource Connections Problem

2020-01-23 Thread Jerry Malcolm
On 1/23/2020 11:04 PM, Jerry Malcolm wrote: Sorry... forgot the version.  You are correct.  It's 8.5.x running on AWS Linux EC2.  I didn't intentionally configure anything special for the pool.  So I assume it's dbcp 2.0.  Here is my resource config:     url="jdbc:mysql://xx

Re: Datasource Connections Problem

2020-01-23 Thread Jerry Malcolm
to be sure. - -chris On 19/01/2020 05:43, Jerry Malcolm wrote: I have a web page that makes a couple of hundred ajax calls when it loads. But the calls are recursive. The response from one call generates a couple of more calls. The responses from those calls generate others, etc. So

Datasource Connections Problem

2020-01-18 Thread Jerry Malcolm
I have a web page that makes a couple of hundred ajax calls when it loads.  But the calls are recursive.  The response from one call generates a couple of more calls.  The responses from those calls generate others, etc.  So this is not a blast of 200 simultaneous calls to the server.   In

Re: Dates on Linux vs. Windows - Resolved

2020-01-08 Thread Jerry Malcolm
ezone" and "timestamp" So moving the database or moving the client (app server) with existing data is very tricky. If the client always adjusts both ways, there shouldn't be any problems. Ignorant clients will always cause confusion. - -chris On Wed, 8 Jan 2020 at 06:05, Jerry Malcolm w

Re: Dates on Linux vs. Windows - Resolved

2020-01-07 Thread Jerry Malcolm
First of all, a big thank you to everyone who responded to this one.  I doubt I'd have figured it out for days without your guidance and help. And the winner is the JVM timezone.  But the problem was NOT that the JVM wasn't set to US Central time.  The problem was that it WAS set to US

Re: Dates on Linux vs. Windows

2020-01-07 Thread Jerry Malcolm
>> If your systems always use the same time zone to read and write the data, it isn't a problem. Terrance, thanks for the info.  In my case I do only have one timezone (or at least I want to...).  Using the string for dates is a good idea.  But this is a massive application that's been in

  1   2   3   >