Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Sam
Hi Chris, I'm creating the audio file dynamically from DB and I check if the file exists using File.exists() method. Before returning the html code with audio tag, I'm verifying that file exists on File System. Thanks! On Mon, Mar 11, 2024 at 2:36 PM Christopher Schultz < ch...@christopherschu

Re: When does Tomcat add and remove threads?

2024-03-11 Thread John.E.Gregg
Chris, From: Christopher Schultz Sent: Monday, March 11, 2024 5:09 PM To: users@tomcat.apache.org Subject: Re: When does Tomcat add and remove threads? John, On 3/11/24 17:47, john.e.gr...@wellsfargo.com.INVALID wrote: > I am using Tomcat 9.x. > > When does Tom

Re: When does Tomcat add and remove threads?

2024-03-11 Thread Christopher Schultz
John, On 3/11/24 17:47, john.e.gr...@wellsfargo.com.INVALID wrote: I am using Tomcat 9.x. When does Tomcat add and remove threads from its internal thread pool? I'm talking about the threads with names like http-nio-8080-exec-1. It appears the thread pool is Tomcat's own ThreadPoolExecutor bu

Re: how to reload SSL certificates without restarting Tomcat

2024-03-11 Thread Christopher Schultz
Jerry, On 3/11/24 14:51, Jerry Lin wrote: Hi Chris, There is also this: https://tomcat.apache.org/presentations.html#latest-lets-encrypt It's very LE-focused, but it shows you how to programmatically trigger a reload. Thanks for your presentation and script. We are using Let's Encrypt, so

When does Tomcat add and remove threads?

2024-03-11 Thread John.E.Gregg
I am using Tomcat 9.x. When does Tomcat add and remove threads from its internal thread pool? I'm talking about the threads with names like http-nio-8080-exec-1. It appears the thread pool is Tomcat's own ThreadPoolExecutor but I don't see the exact behavior documented. I'm familiar with how

Re: how to reload SSL certificates without restarting Tomcat

2024-03-11 Thread Jerry Lin
Hi Chris, There is also this: > https://tomcat.apache.org/presentations.html#latest-lets-encrypt > > It's very LE-focused, but it shows you how to programmatically trigger a > reload. > Thanks for your presentation and script. We are using Let's Encrypt, so your material is quite relevant. Jerry

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Christopher Schultz
Sam, On 3/11/24 13:04, Sam wrote: On the server side, I'm checking that file exists before returning the file path to the browser. We are also dynamically creating pdf files this way and no issues with accessing them. How are you checking to see if the file exists? It's possible that your che

RE: [OT] Tomcat SMPT TLS1.2

2024-03-11 Thread Brandie Nickey
Update! The fix was indeed to replace the out of date java mail jar (1.5) with the newest Jakarta mail jar file. Thanks everyone for the help! Brandie -Original Message- From: Christopher Schultz Sent: Monday, March 11, 2024 11:29 AM To: users@tomcat.apache.org Subject: Re: [OT] Tomc

Re: [OT] Tomcat SMPT TLS1.2

2024-03-11 Thread Christopher Schultz
Brandie, (Marking this [OT] as it's not really a Tomcat question.) On 3/11/24 12:34, Brandie Nickey wrote: I have a COTS webapp using Tomcat 8.0.43 and Java 1.8.0_121. I have been trying to find out where to configure outbound smtp messages to use only TLS1.2. I've found plenty of info on the

Re: how to reload SSL certificates without restarting Tomcat

2024-03-11 Thread Christopher Schultz
Jerry, On 3/10/24 16:00, Jerry Lin wrote: Hi Chuck, Presumably, you mean “not behind https", since “Apache” refers to the organization that develops and maintains a plethora of software products. Yes, “not behind https" (I meant not behind an Apache HTTP server) you can configure the TLS

Re: reloading context with manager-script

2024-03-11 Thread Christopher Schultz
Mark, On 3/10/24 08:49, Mark Thomas wrote: On 10/03/2024 10:50, Greg Huber wrote: Hello, Using http://tomcat/manager-app/text/reload?path=/ When I reload an application (in java), I get a reply OK - Reloaded application at context path [/] but when the application is not present I get this

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Sam
Service is running on Windows, I've verified no access issues! Issue occurs only the first time, Subsequently audio loads properly. Thank you! On Mon, Mar 11, 2024 at 12:43 PM Ivano Luberti wrote: > Could it be the file is created with incorrect access rights? > > Il 11/03/2024 16:46, Mark Tho

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Sam
On the server side, I'm checking that file exists before returning the file path to the browser. We are also dynamically creating pdf files this way and no issues with accessing them. I found something interesting: https://tomcat.apache.org/tomcat-9.0-doc/config/resources.html From this link: *Res

Re: Tomcat SMPT TLS1.2

2024-03-11 Thread Robert Turner
You can define Java properties in one of the Tomcat files (catalina.properties I believe), albeit it may depend on the OS / deployment for your specific instance as some use different loaders -- the default scripts "catalina.sh/bat" will use that file, but some distributions load Tomcat differently

Re: AW: Tomcat SMPT TLS1.2

2024-03-11 Thread Ivano Luberti
LOL but to be honest we encountered the issue after moving from JDK 1.7 to JDK 1.8 without changing the  SMTP server Il 11/03/2024 17:49, Jost Richstein ha scritto: Yes, of course. Mail-1.4.jar is from May 2006. I'm not even sure if TLS existed back then. -Ursprüngliche Nachricht--

AW: Tomcat SMPT TLS1.2

2024-03-11 Thread Jost Richstein
Yes, of course. Mail-1.4.jar is from May 2006. I'm not even sure if TLS existed back then. -Ursprüngliche Nachricht- Von: Ivano Luberti Gesendet: Montag, 11. März 2024 17:46 An: users@tomcat.apache.org Betreff: Re: Tomcat SMPT TLS1.2 I had issues in the past connectin to mailserver us

RE: Tomcat SMPT TLS1.2

2024-03-11 Thread Brandie Nickey
That makes sense, I did see a file in our java mail jar called SocketFetcher that has a line to the extent saying 'if properties not set, use TLS 1.0 for smtp' . My hope was to find where the heck to set the mail properties, but sounds like that's in another sun file. -Original Message-

RE: Tomcat SMPT TLS1.2

2024-03-11 Thread Brandie Nickey
Thanks so much for the guidance. Have a call with the vendor in about an hour to discuss - my fear is that the TLS 1.0 was hard coded somewhere but will take the info provided and see what they say. Cheers! -Original Message- From: Robert Turner Sent: Monday, March 11, 2024 9:42 AM

Re: Tomcat SMPT TLS1.2

2024-03-11 Thread Ivano Luberti
I had issues in the past connectin to mailserver using TLS and solved them upgrading the webapplicatio library from mail-1.4.jar to javax.mail-1.6.2.jar Il 11/03/2024 17:41, Robert Turner ha scritto: AFAIK, there is nothing in Tomcat for SMTP. This would be part of the application you are runn

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Ivano Luberti
Could it be the file is created with incorrect access rights? Il 11/03/2024 16:46, Mark Thomas ha scritto: On 11/03/2024 11:31, Sam wrote: Thanks for replying!! Yes audio files are generated dynamically from DB.in a Servlet. I've verified that audio file exists on file system before returning

Re: Tomcat SMPT TLS1.2

2024-03-11 Thread Robert Turner
AFAIK, there is nothing in Tomcat for SMTP. This would be part of the application you are running typically. It's possible (but not guaranteed) that the web application is using the standard Java libraries for SMTP, and as such, you may (but again not guaranteed) be able to configure some of the ma

AW: Tomcat SMPT TLS1.2

2024-03-11 Thread Jost Richstein
Hi, this is definitely not a Tomcat problem - take a look at: https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary .html -Ursprüngliche Nachricht- Von: Brandie Nickey Gesendet: Montag, 11. März 2024 17:35 An: users@tomcat.apache.org Betreff: Tomcat SMPT TLS1.2

Tomcat SMPT TLS1.2

2024-03-11 Thread Brandie Nickey
Hi all, I have a COTS webapp using Tomcat 8.0.43 and Java 1.8.0_121. I have been trying to find out where to configure outbound smtp messages to use only TLS1.2. I've found plenty of info on the https using TLS1.2 and have configured that just fine in server.xml file and in the Java tab of th

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Mark Thomas
On 11/03/2024 11:31, Sam wrote: Thanks for replying!! Yes audio files are generated dynamically from DB.in a Servlet. I've verified that audio file exists on file system before returning the html code that contains audo control. Is there any chance of an attempt to access the file before it i

Re: [EXTERNAL] Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Robert Turner
It's also possible you may need to support the "Range" HTTP header for fetching parts of the audio file for playback. IIRC, we had to do that to support the HTML 5 audio control properly. On Mon, Mar 11, 2024 at 9:15 AM Joey Cochran wrote: > Thanks for replying!! > > Yes audio files are generate

Re: [EXTERNAL] Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Joey Cochran
Thanks for replying!! Yes audio files are generated dynamically from DB.in a Servlet. I've verified that audio file exists on file system before returning the html code that contains audo control. I do NOT see this as a server side issue. This reads like a client/DOM cache of resource issue with

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Sam
Thanks for replying!! Yes audio files are generated dynamically from DB.in a Servlet. I've verified that audio file exists on file system before returning the html code that contains audo control. On Mon, Mar 11, 2024, 5:22 a.m. Mark Thomas wrote: > On 11/03/2024 02:21, Sam wrote: > > I just

Re: contextVersion NullPointerException due to race condition

2024-03-11 Thread Mark Thomas
On 29/02/2024 13:32, FRANTS Patrick wrote: Not sure this is the right mailing list or that it should go to dev. users@ is fine. Generally, if you aren't sure use users@. One of our unit tests will occasionally have a null pointer exception durin= g shutdown. Unfortunately I have not been abl

Re: Tomcat not syncing existing sessions on restart

2024-03-11 Thread Mark Thomas
On 10/03/2024 16:59, Manak Bisht wrote: On Fri, Feb 9, 2024 at 4:45 PM Mark Thomas wrote: Using 0.0.0.0 as the address for the receiver is going to cause problems. I see similar issues with 11.0.x as 8.5.x. I haven't dug too deeply into things as a) I am short of time and b) I'm not convinced

Re: Tomcat 9 returning 404 for audio files

2024-03-11 Thread Mark Thomas
On 11/03/2024 02:21, Sam wrote: I just upgraded a legacy application from Tomcat 7 to Tomcat 9. It's deployed as a war file. I'm facing a weird issue with audio files playback. When loading a page that contains an audio file. First time Tomcat returns 404 error but if reloading the page, audio f