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

why a project that contain spring data dependency doesn't work on tomcat9?

I am trying to deploy a small springboot app on tomcat9 , the tomcat9 is on ubuntu 20 on my account in digital ocean . the problem when i am adding the spring data dependency in the pom file :spring-boot-starter-data-jpa and then convert the jar…
2
votes
1 answer

Tomcat 9: cookie attack?

From Tomcat9 catalina log: org.apache.tomcat.util.http.parser.Cookie.logInvalidHeader A cookie header was received…
eastwater
  • 4,624
  • 9
  • 49
  • 118
2
votes
1 answer

API endpoint using Spring REST controller returns 404 after it is invoked

We have an eCommerce webapp with the front-end server and the API server being in separate EC2 Ubuntus. The API server exposes 168 API RESTFul endpoints using Spring MVC. Each class has the @RestController annotation. We have a problem with one of…
Dimitrios Efthymiou
  • 535
  • 1
  • 5
  • 17
2
votes
0 answers

Duplicate API calls to Spring REST endpoint

We have an eCommerce webapp with the front-end server and the API server being in separate EC2 Ubuntus. The API server exposes 168 API RESTFul endpoints using Spring MVC. Each class has the @RestController annotation. Now, 166 endpoints are called…
Dimitrios Efthymiou
  • 535
  • 1
  • 5
  • 17
2
votes
1 answer

HSTS header with Tomcat 9 for 400 Errors

Using a Tomcat v9.0.30, I was able to successfully configure HSTS headers for all responses (when served over HTTPS) for my Spring-based app using the built-in Tomcat filter…
2
votes
1 answer

How to remotely deploy a secure websocket service on Tomcat10 through Maven

I have burned myself trying to set up a secure WebSocket service using my remote Tomcat10 server but without any success. I keep on getting from Postman "Unexpected server response: 404" after hitting "wss://mydomain.org:4123/ws". I attach the most…
Gouz
  • 336
  • 1
  • 6
  • 19
2
votes
0 answers

Class not found when Importing java libraries into a .jsp file in Apache Tomcat 9

I'm new to Apache Tomcat and JSP. I am possibly taking a strange approach to hosting a simple jsp form on a Tomcat server, but it is only for testing purposes. How can I properly import the Log4J library? I'm not asking the syntax to import the…
raw-bin hood
  • 5,839
  • 6
  • 31
  • 45
2
votes
0 answers

Jersy IllegalArgumentException jersey.repackaged.org.objectweb.asm.ClassReader exception thrown with JDK17 and tomcat 9

I am upgrading servlet based web application from JDK1.8 to openjdk17. after updating the jdk and supported with java module info. Tomcat9 failed to run the web application. I tried with different repackage version but the results are same. I cannot…
Sajid Hussain
  • 400
  • 3
  • 10
2
votes
0 answers

Tomcat 9 and Spring 5 Mail libraries issue

I am trying to send emails using spring 5.1.3.RELEASE and Tomcat 9.0.43 but having the below exception. I can see in Tomcat lib folder the libraries mail-1.4.7.jar and javax.mail-api-1.6.2.jar but due to some reasons the exception below is showing…
armada1750
  • 21
  • 1
2
votes
1 answer

"processAxisFault() found a null HTTP status" and the program execution stops

After a launching a service on Apache Tomcat 9.0.52 and Axis2 1.8.0 I've got the following error. After this error, nothing happens, just full stop. Where to dig to find the roots of the problem? How to fix it? ERROR…
Marat
  • 39
  • 5
2
votes
4 answers

PID file found but either no matching process was found or the current user does not have permission to stop the process

I'm facing a problem with Apache Tomcat 9.0.50, Ubuntu Server 18.04 LTS and Java JDK 8. I am not able to start Tomcat9 as a service, because if I check its status after started, it shows the error: PID file found but either no matching process was…
Roberto Milani
  • 760
  • 4
  • 20
  • 40
2
votes
0 answers

where are tomcat9 logs and how to view them

I have a tomcat9 server but when trying to deploy I cannot. I would like to view the logs but I am confused about where and how to look. After searching I came across sites writing about Tomcat's stdout and stderr to syslog, or about …
nick
  • 229
  • 2
  • 9
2
votes
2 answers

Increase Tomcat shutdown timeout

I need to increase Tomcat shutdown timeout to 45 seconds in Windows. When I stop Tomcat in the services. It takes almost 35-40 seconds. How could I increase shutdown timeout in Tomcat configuration?
GccGUY
  • 341
  • 1
  • 3
  • 12
2
votes
2 answers

How can I build my object via 'setResultTransformer' and 'addScalar' directly from query in hibernate?

My goal is to create my Contact object directly from query and hibernate, the peculiarities are mainly three: The contact object has another custom object inside that is the Company. The contact object contains many more fields and I just want to…
G. Ciardini
  • 1,210
  • 1
  • 17
  • 32
2
votes
1 answer

Embedded tomcat running as windows service takes long time to stop the service

I've an executable jar file that uses embedded tomcat(9.0.44). And its running as windows service (named "MyApp Test Service") with the apache prunsrv utility. But when I try to stop the service it takes some time (more than one minute) to stop the…
Master Po
  • 1,497
  • 1
  • 23
  • 42