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
1 answer

Tomcat Service not starting with elastic APM java agent

I am trying to start tomcat service in linux with elastic APM agent (java). But every time I start the service, getting these errors SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component…
2
votes
1 answer

Tomcat 9 server: javax.net.ssl.SSLHandshakeException: Empty server certificate chain

I am trying to establish ssl connection to tomact server which I ve installed at my local machine. The server.xml has following entries:
Jeet
  • 85
  • 3
  • 8
2
votes
0 answers

SQL DB sessions leakage issue on tomcat 9.0.43

we are upgrading our application from tomcat 9.0.22 to 9.0.43 version. but we are struggling with session leakage issue on tomcat 9.0.43. we have same configuration for JDBC connection but no idea why database sessions not releasing on tomcat…
2
votes
2 answers

Commands like jps, jstat, jstack, etc show " not found"

I am running Tomcat 9 on an Ubuntu 20.04 OS using OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode). When I try to gather diagnostics info using jstat, jstack, etc, I see PID not found. jps also cannot identify the Tomcat process id. I have…
Shobhana Sriram
  • 394
  • 1
  • 2
  • 14
2
votes
1 answer

How to define UserDatabase in Tomcat within a Context xml file?

I have been experimenting with setting up authentication with Tomcat config by only setting a context file. Given the following webapp context file conf/Catalina/localhost/myapp.xml:
kazza
  • 365
  • 3
  • 11
2
votes
1 answer

webapps folder in Tomcat9 - Ubuntu

I've just installed tomcat9 in ubuntu, upload a war using the manager webapp , but I am not able to locate the webapps folder in the system
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301
2
votes
2 answers

Deployment of war is failing in tomcat because of Cannot initialize context because there is already a root application context present

I have been banging my head on this since few days. And I really don't understand from where this error is coming from. I already followed few threads regarding this on SO, this and this one 26-Dec-2020 12:48:18.633 SEVERE [main]…
Lokesh Pandey
  • 1,739
  • 23
  • 50
2
votes
0 answers

Application logging with log4j 1 or log4j 2 and Tomcat 9 not working

I am migrating an existing web application from Tomcat 8.5 to Tomcat 9. The webapp uses Log4j 1 with Commons-Logging. While everything used to work fine in Tomcat 8.5 I don't get any log output in Tomcat 9. Trying to get to the bottom of this, I…
jens7
  • 21
  • 1
  • 3
2
votes
0 answers

ShiroFilter invalidRequest HTTP 400 errors

We use Shiro (v1.7) and have recently begun seeing lots of /ShiroFilter 'InvalidRequest' Http 400 errors on our NewRelic monitoring. We're not seeing exceptions in the application log though and it doesn't appear to impact the application or…
Fred
  • 335
  • 1
  • 6
  • 22
2
votes
2 answers

Error copying configuration files from Tomcat to Project directory: Directory is invalid /opt/tomcat/conf/Catalina

Have a newly installed Tomcat-9, I'm trying to run a project with IntelliJ IDEA, It throws an error Directory is invalid saying: Error running 'Tomcat 9.0.40': Error copying configuration files from /opt/apache-tomcat-9/conf to…
zyydoosh
  • 387
  • 2
  • 14
2
votes
3 answers

Threads getting into blocked state while doing a host name look up using java.net.InetAddress.getLocalHost

Please find below the application/environment details where the problem is seen. Java Web application deployed on Tomcat 9.0.35 with JRE Version 1.8.0_231-b11 The application is running in a docker container deployed on Open shift Kubernetes…
Sharath
  • 21
  • 2
2
votes
1 answer

Cannot load static file in tomcat

Firstly, I build the vuejs project in springboot by adding the following plugin: com.github.eirslett frontend-maven-plugin
Tuhalang
  • 91
  • 1
  • 1
  • 6
2
votes
1 answer

How To Upgrade Tomcat In XAMPP

I couldn't find any definitive and organized resources on upgrading Tomcat in XAMPP but found many people are asking, so I thought it best to share the steps I took. For this guide, I will be using XAMPP 7.4.8 on Windows 10, which comes packaged…
Oliver
  • 405
  • 6
  • 15
2
votes
2 answers

installing tomcat 9 on WSL

After installing tomcat 9 on WSL, it isn't recognized by system. Since systemctl command doesn't work on WSL, I used below command: sudo service tomcat9 start returning tomcat9: unrecognized service I followed 2 ways to install, but the same…
2
votes
1 answer

How to configure Tomcat 9 with CDI and JAX-RS, Java EE7?

I am trying to implement simple java Rest application and deploy it to Tomcat server. (Tomcat is required, so Tomee is not an option) This is structure of my project: Content of Root pom.xml:
carpics
  • 2,272
  • 4
  • 28
  • 56