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

How can I get tomcat to auto-deploy WAR files from a directory, but still using the original appBase directory

I need to deploy my application in an embedded solution (running on a raspberry pi zero). As such, I only really can deploy things on localhost. I am not too familiar with virtual hosts, so I may be wrong on this. My problem is that I want tomcat to…
MoustacheSpy
  • 743
  • 1
  • 6
  • 27
5
votes
1 answer

Unable to trap signals in docker entrypoint script

I have a docker entrypoint script that is supposed to trap signals sent to processes in the container. The main application is tomcat - java process embedded in the docker-entrypoint.sh which is passed to dumb-init. The process mapping in the…
IPlato
  • 191
  • 2
  • 7
5
votes
4 answers

Accessing context path(root folder) does not show login page in Spring Boot Application

In my Spring Boot(2.0) application, I have set the context path in my application.properties file as below server.servlet.context-path=/myApp Also, I have the following security configurations class extending WebSecurityConfigurerAdapter …
Sangeet Menon
  • 9,555
  • 8
  • 40
  • 58
5
votes
1 answer

RESTEASY003940: Unable to instantiate MessageBodyReader [RestEasy 4.5.0.Final]

My dev stack : OpenJDK12, Eclipse december 2019, Tomcat 9.0.31. I updating my webservice from RestEasy 4.4.1.Final to 4.5.0.Final in my pom.xml and now i have an error RESTEASY003940: Unable to instantiate MessageBodyReader in bootstrap…
Guildi
  • 91
  • 1
  • 7
5
votes
1 answer

lmax RingBuffer with log4j takes up a lot of memory

I'm running a Tomcat web application in debug mode and, looking through the biggest objects with YourKit profiler, I see that by far the largest is a single instance of com.lmax.disruptor.RingBuffer. I assume this has something with log4j, which…
Johnny
  • 7,073
  • 9
  • 46
  • 72
5
votes
1 answer

How to run embedded Tomcat 9 inside Maven 3 for integration testing purposes?

I am trying to run embedded Tomcat 9 inside Maven 3 for integration testing purposes. I was led to cargo-maven2-plugin by other SO answers. So, attempting to follow the instructions found…
Alex R
  • 11,364
  • 15
  • 100
  • 180
5
votes
2 answers

CORS enable in servlet

I used this header method in my servlet doPost method for enable CORS. Though I get CORS error in my reactjs application at the time of fetching api. reactjs error is here (error: has been blocked by CORS policy: Response to preflight request…
Arif Rafsan
  • 91
  • 1
  • 1
  • 8
5
votes
1 answer

How to enable http2 using spring boot and tomcat without SSL configuration

I have enabled HTTP 2.0 in Spring boot 2.1.2 and Tomcat with SSL using below configuration in application.property file…
Sanjeev
  • 71
  • 1
  • 3
5
votes
3 answers

Unable To Create the file [META-INF/war-tracker] Tomcat 9 linux

Tomcat logs: java.io.IOException: Unable to create the file [/usr/local/tomcat/webapps/mywebapp/META-INF/war-tracker] at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:180) at…
Lior A
  • 61
  • 1
  • 9
5
votes
2 answers

Can't solve this issue UnsatisfiedDependencyException: There was no object available for injection at SystemInjecteeImpl

i've tried alot to fix this issue but couldn't. I find, if we use "abstractBinder" then this could be fix but once i've my Binder in place, i start having 404 error. UnsatisfiedDependencyException: There was no object available for injection at…
Nitin Gupta
  • 143
  • 4
  • 13
5
votes
0 answers

CORS OPTIONS request with Spring boot on Tomcat and Apache2

I'm trying to configure CORS on my Spring boot application. I added the CrossOrigin annotation to my controller class. @CrossOrigin @RestController @RequestMapping("api/user") public class UserApiController { ... } When I run this on my local…
Bart
  • 496
  • 10
  • 23
5
votes
4 answers

Standalone tomcat 9 spikes CPU to 50% every 10 seconds while my web application is idle

I am using Tomcat 9.0.0.M22 with jdk1.8.0_131 on Windows Server 2012 R2 and I have a Spring Boot web application deployed on it, the issue is that every 10 seconds the commons daemon service runner spikes the cpu to 50% although my deployed web…
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
4
votes
0 answers

catalina.out daily rolling in Tomcat9

I have a default tomcat 9.0.37 installation. The catalina.out file in the server logs does not roll on a daily basis due to which its size has grown to several GBs. However I observed that a file with the name pattern catalina.yyyy-mm-dd.log keeps…
Bhagyesh Jain
  • 323
  • 2
  • 10
4
votes
1 answer

upgrade tomcat7-maven-plugin to cargo-maven3-plugin with contianer Id tomcat9x

please help , configuring cargo-maven3-plugin and facing the problem below , thank you and appreciate those who have experience on the cargo and tomcat 9 plugin . thank you very much pom.xml file configuration for cargo-maven3-plugin
4
votes
1 answer

java: cannot access javax.servlet.ServletException class file for javax.servlet.ServletException not found

Description When I develop my java project I use: Java version: 1.8, Apache Tomcat version 9.0.x Then, I use Tomcat 10.0.x to run my project (with few modifications in my project). I had to change javax package related imports to jakarta package…
Dhanusha_Perera07
  • 3,347
  • 5
  • 14
  • 22
1 2
3
77 78