Questions tagged [tomcat9]

Version 9.x (August 2017 onwards) of the Apache Tomcat servlet container. Use only if your question is specifically related to features of this version.

Version 9.x (August 2017 onwards) of the Apache Tomcat servlet container.

Apache Tomcat is an open source servlet container developed by the Apache Software Foundation (ASF). It supports the 3.1, 2.3, 3.0, and 1.0 specifications1. Questions here should relate only to Tomcat Version 9.x.

Use only if your question is specifically related to features of this version. Just because you are using this version, doesn't mean you need this tag. Use in addition to or instead of this tag.

See for more information.

1170 questions
8
votes
1 answer

Tomcat 9.0.16 : Failed to initialize component [Connector[HTTP/1.1-8080]]

Recently I have downloaded JDK 11.0.2 & Tomcat 9.0.16 and set the environment variables, but whenever I am starting the tomcat it is showing the following exception in the console and http://localhost:8080/ is not accessible. Please help. …
Anoop
  • 81
  • 1
  • 1
  • 4
8
votes
1 answer

Tomcat 9 invalid keystore password

Trying to setup SSL in Tomcat 9 using JDK10 in Windows 10. When I follow an online tutorial to create a Java keystore using the default password of 'changeit' everything works fine and Tomcat starts with no errors. But if I create a keystore using…
Marquinio
  • 4,601
  • 13
  • 45
  • 68
7
votes
1 answer

Geoserver advice please - HTTP Status 400 – Bad Request

I am really hoping someone can help point me in the right direction. I have Geoserver deployed within Tomcat 9 on an Ubuntu 18.04 server. All was working absolutely fine until I added SSL to the Apache virtual host. I have no problem with logging in…
Jake
  • 121
  • 1
  • 4
7
votes
1 answer

New warning "Site cannot be installed: Page does not work offline. Starting in Chrome 93..." after Chrome update in Angular 10 PWA

Angular 10.2.4 Progressive Web App is served on Apache Tomcat 9.0.41 over HTTPS and can work offline. After an update to Google Chrome Version 89.0.4389.72 (64-Bit) we get a warning in DevTools on first load: Site cannot be installed: Page does not…
7
votes
0 answers

Can web application worked both in Tomcat 10 and Tomcat 9

From tomcat's migration documentation, we know there is a big change from Tomcat 9 to Tomcat 10 which is the specification APIs has changed from javax... to jakarta.... So I using Tomcat migration tool to change a web application from javax.* to…
7
votes
4 answers

Tomcat9 File Permissions Change

I have found that the file permissions have changed between Tomcat 8 and Tomcat 9 and I can't figure out how to get around it. I had code like this where inputStream is something I feed this routine and redirectStream is a function that simply uses…
crowmagnumb
  • 6,621
  • 9
  • 33
  • 42
6
votes
0 answers

mod_jk unable to connect with tomcat9

After unzip the tomcat9 package available on tomcat.apache.org, and have the mod_jk configured to…
Kleber Mota
  • 8,521
  • 31
  • 94
  • 188
6
votes
4 answers

How resolve problem with tomcat ? Spring-Boot " Failed to scan"

this is my first spring-boot project and i have problem with tomcat. Server don't wan't to start. Glass fish is not used in the project, the more I am surprised by this message. The project was created in Maven. I have sitting about this problem…
6
votes
2 answers

How-To: Configure Tomcat 9 to log via Log4j2

How can you redirect Tomcat 9's internal logging (catalina and localhost) to Log4j2? While there are many guides available for older versions of Tomcat and Log4j, I couldn't find anything "complete" regarding Tomcat 9 and Log4j2; the Apache Tomcat 9…
Christoph
  • 712
  • 1
  • 6
  • 17
6
votes
1 answer

Tomcat 9.0 with security manager reports access denied on Windows

I started my Tomcat 9.0 on Windows 10 with: -Djava.security.manager -Djava.security.policy==C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\catalina.policy -Djava.security.debug=access,failure using a Connector of type…
PowerStat
  • 3,757
  • 8
  • 32
  • 57
5
votes
0 answers

NioEndpoint never timing out in Spring Boot integration test

I am trying to provoke a server timeout in an integration test, by placing a sleep loop in my Controller. I do appreciate people wanting to help out, but please don't ask why I am doing this, or suggest better ways of doing what you think I am…
Luis Muñiz
  • 4,649
  • 1
  • 27
  • 43
5
votes
1 answer

Configure DataSource Using JNDI Using external Tomcat 9 Server: Spring Boot

I have a SpringBootApplication, packaged as war file: @SpringBootApplication(exclude = {SecurityAutoConfiguration.class}) public class Application extends SpringBootServletInitializer { public static void main(String[] args) { …
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301
5
votes
1 answer

How to add multiple rewrite rules for multiple angular projects in the rewrite.config file in Tomcat 9

Below is the issue that I am facing and needs some help. Initial problem: I have a tomcat server where I have deployed three angular projects (inside the web apps folder). When I start the Tomcat server, the angular apps come up. Once I login to the…
5
votes
2 answers

Could not create Java virtual machine and it says that endorsed is not supported

-Djava.endorsed.dirs=C:\Apache\apache-tomcat-9.0.37\endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules.
5
votes
2 answers

How to make sure that environment variable placeholders are substituted in a Spring Boot application running in Apache Tomcat?

I have a Spring Boot application, which runs in an Apache Tomcat server. In application.yaml I have, among others, following entries: mail: pop3Host: ${MAIL_HOSTNAME} inboxFolder: ${MAIL_INBOX} hostName: ${MAIL_HOSTNAME} port: ${MAIL_PORT} …
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
1
2
3
77 78