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
2
votes
0 answers

Tomcat 9 HTTP2 connection refused on port 8443

I am trying to set up HTTP2 through Tomcat 9. I installed the certificate keys using OpenSSL and I can successfully login to my Java webapp at https://localhost:8443/login. I can see the requests made using HTTP2 in the debugger window. Everything…
yonikawa
  • 581
  • 1
  • 9
  • 32
2
votes
1 answer

Cannot access tomcat manager or any other default tomcat app when running tomcat in docker

I am trying to access tomcat manager app from host. The port publishing is successfull but when trying to access tomcat manager I get 404 error. This is the command used to launch the tomcat : docker container run -p 8010:8080 --name mytomcat…
Michał Krzywański
  • 15,659
  • 4
  • 36
  • 63
2
votes
2 answers

Issue with Tomcat 9.0.31 & 9.0.33

We have installed Tomcat server where our web application is currently hosted and along with this we have Siteminder installed for SSO. The setup works perfectly fine with version 9.0.20 but lately we are having problems accessing the web…
user1194310
  • 129
  • 1
  • 4
  • 14
2
votes
1 answer

create symbolic link for access file using tomcat 9 - not working

I am migrating tomcat 7 to tomcat 9.0.33, below are the symbolic link access config for tomcat 7 but the link is not working on tomcat, can anyone pls suggest how to fix this
Mugeesh Husain
  • 394
  • 4
  • 13
2
votes
0 answers

Shall we use port 443 instead of tomcat default port 8443

By default tomcat use port 8443 and the same will update in tomcat default configuration files [server.xml,web.xml etc]. But in our requirement, I have to configure tomcat to use only port 443. Application is working as expected and I don't see any…
Sravan
  • 21
  • 1
2
votes
1 answer

What may be the reason of "Unexpected end-of-input in VALUE_STRING" error

I developed a software and it was running properly until my mysql server crashed. After crash, I formatted my server, then installed everything I needed same as good old days. After formatting all softwares seems running properly, but the software I…
a.akkus
  • 73
  • 1
  • 11
2
votes
2 answers

How do I get my tomcat server to print debug messages about the rewrite Valve?

I'm making use of the rewrite valve in Tomcat, but something isn't working right. I want to get debugging messages in my catalina log file so I can figure out the issue, but I'm not sure how. In my logging.properties I just tried putting a…
Aditya K
  • 173
  • 2
  • 9
2
votes
1 answer

Failed to process either the global, per-host or context-specific context.xml file therefore the [/AMWeb] Context cannot be started

guys when I am using JNDI in spring boot I have faced the following issues in Tomcat. Please Help me out this following Errors. java.lang.IllegalStateException: Error starting child at…
Karthick Raj
  • 191
  • 3
  • 11
2
votes
3 answers

Tomcat 9 does not allow to read file as string with 777 permission?

I have a java web application by Tomcat 9 servlet container which tries to read a file in /tmp folder with 777 permission on Ubuntu 18.04 ls -ltr /tmp/test.txt -rwxrwxrwx 1 vagrant vagrant 10 Jan 3 17:03 /tmp/test.txt The java code is: try { …
Bằng Rikimaru
  • 1,512
  • 2
  • 24
  • 50
2
votes
5 answers

FAIL - Failed to deploy application at context path

Before I explain the problem, I just want to point out that I am completely new to NetBeans and Tomcat and I am doing a school project. That being said, the problem is exactly what the title says. Here is the output when I try to run a simple Hello…
Long Nguyen
  • 73
  • 1
  • 6
2
votes
1 answer

Tomcat: How to programmatically define a Datasource Resource in GlobalNamingResources and link it to apps

I am using Tomcat9 to deploy multiple applications which share the same datasource connection pool(s). I have achieved the purpose by: Adding the datasource as Resource elements under GlobalNamingResources in conf/server.xml, Use ResourceLink…
Devadas
  • 83
  • 9
2
votes
1 answer

How to replace the static keystore with a dynamic one for a spring-boot-application

I want to add/replace SSL certificates dynamically to my spring boot (tomcat) application without the need to restart it. I have a long way to go still, but currently I am stuck with a javax.crypto.BadPaddingException and don't know why. So here is…
Tobias Neubert
  • 141
  • 1
  • 10
2
votes
0 answers

java.util.jar.jarfile.init() method takes too long to execute

Story: I am resolving some performance issues on my Web Application Application background: This Application is written in Java, with Velocity Template Engine, and front-end javaScript using Tomcat9 server. Problem: When i leave the application…
Dupinder Singh
  • 7,175
  • 6
  • 37
  • 61
2
votes
1 answer

How to configure fallback url in apache tomcat 9

I am trying to deply angular 8 app with routing in apache tomcat 9. I have use ng build --prod --base-href=/ng-app/ to build distributables. I am placing ng-app folder in webapps folder of tomcats. It renders localhost:8080/ng-app properly but…
Bopsi
  • 2,090
  • 5
  • 36
  • 58
2
votes
1 answer

How to analyse the memory consumed embedded H2 database which is running Tomcat?

H2 jar is placed in WEB-INF\lib folder of Tomcat. Embedded H2 DB is running inside Tomcat 9.0.14.I just wanted to analyse the memory usage by H2 DB. I am able to get the total heap memory usage by tomcat. But not able to find the memory usage by H2…